Sum Data By Entering Date Range

Feb 2, 2014

I have a spreadsheet that records water consumption in L/s at 5 minute intervals. I've attached an example of the data collected during January 2012.

Is there any formula that will calculate the total amount of water consumed between a user-entered date range? For example:

From: 01/01/12 00:00 (User enters 'from date and time' in an allocated cell)
To: 20/01/12 23:55 (User enters 'to date and time' in an allocated cell)
Consumption: ______ (Formula generated result in Litres)

View 3 Replies


ADVERTISEMENT

Entering Date/time Data As Xvalue For Scatterplot With Vba Arrays

Mar 31, 2007

I am trying to create/modify an XY scatterplot using VBA.

I declare local variables and point them to the chart and a new data series for the chart, such as:

Dim chartone As Chart
Dim chartseries As Series

Set chartone = ThisWorkbook.Charts("Chart1")
chartone.ChartType = xlXYScatterLines
Set chartseries = chartone.SeriesCollection.NewSeries()

I set the series data, using an array, such as:

chartseries.Values = Array(1, 3, 5, 7, 9, 11)

I can set the Xvalues to a set of dates by setting .Xvalues to a woksheet range that includes date-formatted data. (like this):

chartseries.XValues = Worksheets("sheet3").Range("m9:m14")
(where m9:m14) contains dates...

View 4 Replies View Related

Last Row Sum Update After Entering New Date

Apr 11, 2009

I have few sheets in a workbook and last sheet named report, I update each sheet date wise except report, problem is that the report sheet contains formulas of last rows sum, if I update today date report then I should change all formulas in reports. Kindly see attached file.

View 5 Replies View Related

Entering A Date Value Then Incrementing It In VBA

Jul 29, 2008

I am currently working on a button which does the following:

User wants to create a new sheet

Clicks button

Input box prompts user to enter sheet name

User enters the sheet name

The sheet is created and copies over formats and values from another sheet

I then want the user to also enter a date.

The date must then be places (always in "C2") then each second column after that the date entered + one day.

E.g. C2 = 01/08/2008 then C4 will have 02/08/2008
I want this entered for the whole month.

The code is below:

Sub copyformula()
Dim vsheet As String
Dim vdate As Date
vsheet = InputBox("Enter a sheet name:")

View 9 Replies View Related

Type Mismatch 13 Entering A Date

Mar 12, 2007

i want to let a user enter a date and then chk if the user entered the right format.

It is not working....In order to see if works i press entered without entering any value and a TYPE MISMATCH error msg appears.

here is my

NumberEntry = InputBox("Enter Start Date", "Start Date", "dd/mm/yyyy")
Do While Not IsDate(NumberEntry)
MsgBox "The FROM date is not a valid date."
NumberEntry = InputBox("Enter Start Date", "Start Date", "dd/mm/yyyy")
'NumberEntry = InputBox("Please enter the date (dd/mm/yyyy) FROM to work with.")
Loop

View 5 Replies View Related

Formula For Highlighting Whole Row After Entering A Date In One Of The Columns?

May 21, 2014

how to do the formula for highlighting whole row after entering a date in one of the columns.this spread sheet had over 300 rows so I can't do the conditional formatting, I need a formula for whole spreadsheet.

View 11 Replies View Related

Excel 2007 :: Use Of Month Names In Entering Date Through VBA

Jun 26, 2013

In the workbook the sheet names are month names e.g. july,august,September etc and 1st of each month is to be entered in a cell in each the sheets. By some trial and error I wrote this macro

VB:
Sub test()
Dim j As Integer, monthnr As Long, monthname As String
For j = 1 To Worksheets.Count

[Code]....

This worked in July sheet it is written as 7/1/2013 and in august sheet it is 8/1/2013 etc Then I shortened the macro like thlis

VB:
Sub test()
Dim dte As Date
dte = "july" & "/1/2013"
Range("A1") = dte
End Sub

It worked. Even if I use shortened 3 letter form of month like "Jul" or "aug" then also it works

But if type on the spreadsheet itself
="july"/1/2013
It Gives value error.

Perhaps it works only in vba and not spreadsheet.

I accept nobody is going to use "july" & "/1/2013" instead of 7/1/2013 But this will be useful if sheet names are month names so that when we write the date we can use sheet names Mine excel 2007 and windows 7.

View 2 Replies View Related

Colour Cells After Entering Range?

Sep 3, 2013

I want the user of my excel sheet to define a certain area For example range 1:

In cell A1 he enters = 5
In cell B1 he enters 10

Beginning with C1 excel should colour the cells C1, D1,...,H1, because the area has the lenght of 6. Colour could be yellow.

For range 2:
The same in the cells A2, B2, ...

View 9 Replies View Related

Set Default Month And Year In A Cell For Entering Date Fields

Jul 26, 2013

I am entering data for ships arrived every month. There are about 200 records to be entered and for every record there are 4 date fields.

My question is : Is it possible to set default month (for ex = July) and year ( for ex = 2013 ) in these 4 cells so that

If I just type 16 it should be 16/07/2013. Because all my dates will be within that month July 2013.

View 2 Replies View Related

First Code In VBA: Use A Inputbox For Entering The First Date For Monday Of The Month Each Time I Use The Worksheet

Jun 23, 2006

I am writing a module which have a different test based on for each of the previous 2 column cells. It calculate the days passed or in simple way calculate the date difference for the 2 columns and puts them in third. But i need to use a inputbox for entering the first date for monday of the month each time i use the worksheet.
When i try using the module for each cell of the column it display the input box for each cell. is there any way so that i just enter the value in input box and it can be used in rest of the module.Without using it again and again.

View 8 Replies View Related

Use Current Cell And Column As Range Without Entering It Manually?

Jan 6, 2013

I have a vba script that matches a date on two sheets then copies a formula based on the location of the date, the problem I am having is how can I refer to the activecell and active column without typing them manually as the range will change each day. See vba script below:

VB:
Sub find_date()
Dim FindString As String
Dim Rng As Range

[Code]......

View 2 Replies View Related

Selecting Data From A Date Range Based On The Current Date

Jun 20, 2013

I created a basic excel weekly budget and would like to know how much money I have as of todays date. on the top row I have a date range from Sunday to Saturday, so it looks like this:

09-15 16-22 23-29

with the month manually put in above it.

then below I have income and expenses with a Overall below that, so basically what I want to is see the Overall value based on todays date, not sure how to do this with the weekly range and automatic current date(which is =TODAY() as far as I know) I have attached a photo as a reference.

Budget Picture.jpg

View 12 Replies View Related

Sorting Data By Date Within A Date Range

Dec 31, 2009

Hello, I have a question about sorting information using dates but using a range. I need this to sort when I enter a date range into the spreadsheet (the blue blocks on the attached spreadsheet). The factors in colum G need to be sorted by month and input into the yellow highlighted area in column B. There may be an easier way of pulling the data from the "Data" sheet but this was the best I could figure out. Overall, January (or any of the months)needs to have the January (or appropriate) factor that fits within the date range that was input but sorted properly based on the months listed in Column A.

View 6 Replies View Related

Entering Data Into Cells

Aug 19, 2009

I'm building a database which I intend to upload to an ecommerce website. I am retrieving information on some of our products from the manufacturer's website. The information appears on the manufacturer's website as follows:

Part No : DP9970

* Description : Disc Pads
* Manufacturer : Trupart
* Unit Of Sale : Boxed Set
* Width (mm): 130
* Height (mm): 62
* Thickness (mm): 19
* Note: 4 pads with top clip

When I copy and paste this info into excel, it gives each individual line of information a separate cell. I need the information to appear in one cell in order for it to display properly on my website.

View 4 Replies View Related

Entering List Of Data Using VBA?

Aug 1, 2014

I have a list of number I want VBA to add to a sheet. right now i have a VBA to add it one by one but was wondering if there was an easier way.

EX.Range("A1").Select
ActiveCell.FormulaR1C1 = "78"
Range("A2").Select
ActiveCell.FormulaR1C1 = "275"
Range("A3").Select
ActiveCell.FormulaR1C1 = "280"
Range("A4").Select
ActiveCell.FormulaR1C1 = "765"

View 1 Replies View Related

VBA Userform For Entering Data?

Mar 22, 2014

I am a beginner in VBA programming and I have to make a Userform for entering data in the specific places(in a table) in the worksheet. But when I enter a number, it changes all the cells to that number. I can't find my error.

View 7 Replies View Related

Entering Data Automatically

May 19, 2009

I have two files which are attached.

One is the main report file "ops report.xls" and other is the raw file (Air.xlsx) from which data is to be added to this file. i manually take the data and enter it into the ops report everyday. This i want to automate as there are many such sheets to be completed (i have mentioned just "Air" sheet here in ops report).

Now what exactly i want to do is?

take data from Air.xlsx workbook as per the columns in the Air sheet in Ops report and paste it on that particular date row. this i will have to do everyday so the nest day the data will be pasted on next row against the date. The yellow columns which i have marked have formula so you need not touch that columns.

I nee to paste the average of Air sales and Air service. so we have to take average of row 43 and row 89 for first two columns in ops report. and then average of row 44 and row 90 for column L,N,O,P,Q in the ops report.

Afterwards the average of column J must be pasted in "Interval" sheet in ops report.

This is a bit tough but i know there are many genius people out there who can easily solve this.

View 10 Replies View Related

Entering Data In A Cell

Jan 5, 2007

Earlier this morning I had a telephone call from a customer who uses a spreadsheet I created.

She explained that once she'd entered information into a cell [and clicked elsewhere] she couldn't then add to the former; rather, she had to click on the cell and type it all out again.

I assumed that, as an inexperienced excel user, she was unware of either double-clicking the cell, or selecting and pressing F2. I explained these methods to her.

She later emailed me with this:

"Further to our phone conv this morning I have just tried double-clicking on cells but it deletes everything in the cell rather than lets you edit what is there – F2 does the same thing. This applies to any cell, whether it is text, date or number."

I've been using excel for a while now, and I've never come across such a thing before.

Has anyone else? Could it be to do with her own excel settings? (other customers have had no such problem)

View 9 Replies View Related

Entering Data In Next Row On Same Column

Sep 24, 2007

I have the bellow code, I'd like enter the input on the next available row on column "A" instead than on "A2"



Dim strResponse1 As String
strResponse1 = InputBox("First Name", "Hey you !")
If strResponse1 = "" Then
MsgBox "You have chosen not to participate!", vbInformation, "What happened?"
Exit Sub
End If
Range("A2").Value = strResponse1

View 9 Replies View Related

Entering Data On Websites

Jul 14, 2006

I have a basic script in VBA set up to enter standard information (street address in one block and city in another) on a website that has no fees or password requirements. If I step through the code using F8, this works great and the website returns the data for the address that was input from my excel sheet. However, when I assign this same macro to a control button on the excel sheet to get the code to run automatically, the website comes up to the default screen with nothing entered in either of the blanks. Again, when I just step through this, I get all the way to the output page on the website with the resulting data from my input data. For some reason, this does not happen using the same code connected to a button for automation purposes.

View 9 Replies View Related

Entering Data In Calendar

Aug 29, 2006

I have data pertaining to our fleet of trucks in 8 (1 for each plant)worksheets, sorted by truck number. I would like to enter a date (usually a monday) next to a truck number and then have the corresponding date plus 4 colored and/or have the truck # inserted on a calendar I have formatted in another worksheet with 31 columns and 12 rows.

View 2 Replies View Related

Shade Line While Entering Data

Jan 12, 2013

As I input data down a column in a wide Excel spreadsheet I would like to have highlighted the line I am working on as a check that I am in the correct place. I know that I can hit 'shift', 'space' for a single line, but is there a way to do it without having to hit those keystrokes each time?

View 2 Replies View Related

Entering Data To Two Files Same Time

Jan 25, 2013

I have two excel file name as A.xlsx and B.xlsx. Avoiding double work if I entering the production data in A.xlsx , need to automatically display the same data in B.xlsx. Let me know how the entered data in A.xlsx automatically display in another excel file B.xlsx.

View 1 Replies View Related

How To Protect Formulas When Others Are Entering Data

Feb 27, 2014

I have a spreadsheet with multiple formulas in several columns - my staff will be using this spreadsheet to enter data throughout the year so it will be constantly touched by several users. Some of the columns are hidden, but I worry about someone sorting something funky or deleting or adding a row. Any way to protect the columns I have formulas in while still allowing them to enter data in the rest of the spreadsheet?

View 2 Replies View Related

Lock Data In Cell After Entering Value?

Feb 2, 2014

0: i have a sheet 1 protected and few edit range (Col A,B,C,D,E and F).

1: I have a validation on multiple adjacent columns (like Col A, Col C, Col E).
2: I need a code where if i select value in col a (cell A2) cell B2 should get current date and Time and both the cells (A2 and B2) should be locked. when i select data in cell C2 , D2 should get current date and time(Cell C2 and D2 should be protected).
3: User can enter data in A3 and B3 will get current date and Time (now A3 and B3) should be locked.
4: I need a function where user can call it and unlock the locked cells and edit the data and re-lock the cells again.

apart from the Col A,B,C,D,E and F, other columns and cells remain locked.

View 2 Replies View Related

Preventing Duplicates When Entering Data

Jan 1, 1970

THis looks close to what I have been trying to find for months but what if I want to delete duplicates after pasting instead of making an error code? For instance, I have a list of names and addresses and I want to delete any entire row with a duplicate address.

View 9 Replies View Related

Entering Data From Top / Beginning Of List

Feb 10, 2012

I am trying to create a list of customer credits for my store. I have the person's name, the date of their credit, and the amount of the credit. This list will eventually be substantial and I would like to know how I can set it up so that when I open the worksheet I can enter new names from the top of the list and have the rest of the list shift downwards. This would stop me from having to scroll to the very bottom to add new info every time.

I would like to have it set up this way so that eventually I could put a search query at the top of the page (i'm thinking of rigging something up using vlookup) so that when my employees want to access the data base they can easily search a name and have the relevant info brought up, or can easily type in new store credits.

View 2 Replies View Related

Cell Protection After Entering Data

Mar 1, 2012

Having the cell protected after entering the data. From the below table, i need when a date is entered and moved to next cell, the cell which contains the data should be protected. I need to this for the comments column as well.

Number
DateStart timeEnd TimeActual Time takenComments
123459132546132156135469654814846543

View 1 Replies View Related

Mark Cells For Entering Data

Oct 4, 2007

Can I add something to a cell and have it so it does not print?

I need to mark certian cells to have data filled in, in those cells. However if data is not put in those cells I need them to be blank when printed.

Example:
I can put text in B7:
Enter Name Here

Then the user knows to put the name in that spot. If there is no name to be entered then I want to be sure that is not printed when I print the list.

Is any of this a possibility without putting 33 different labels on the page, which is one way. Or 33 different comments on the page, another way.

View 9 Replies View Related

Prevent Entering In Wrong Data

Aug 6, 2008

[code]...

Above is what I hav already, I was thinking it would help if each card had an additional field added that told you if the contents were valid. This could also say empty if all fields were blank. This field could for example use an if statement to check that you have entered a VS, a start date a project name. It could also check that if you have entered a completion date you also enter review loops. This could be in large red text so it is obvious to someone completing a card that they have not yet filled in all necessary data.

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved