Why won't Excel autofill the DATE() function?

Special K

Board Regular
Joined
Jun 20, 2011
Messages
83
Office Version
  1. 2010
Platform
  1. Windows
I am using the DATE() function inside of a larger function, but I notice the following problem even if I just do the following in separate cells:

=DATE(2011,1,1)
=DATE(2011,2,1)
=DATE(2011,3,1)

If I hilight those 3 cells and drag the autofill down to the next cell, it fills it with 1/1/2011 instead of 4/1/2011. Why is this? Why isn't Excel recognizing an obvious pattern here?
 
Hi

As you appear to be using Excel 2003 or earlier I would be inclined to stick with the absolute ranges.

However, are you really sure you need 65536 as your final row? Is it possible to determine the maximum number of rows and would 5,000 or 10,000 be a more realistic limit?

One other point, if the data being processed is going to be just for one year, say 2011, then the formula could be -

Code:
=SUM((Start2011:End2011!$E3:$E5000)*(Start2011:End2011!$H3:$H5000=$A$2)*(Start2011:End2011!$I3:$I5000=$A7)*(Month(Start2011:End2011!$A3:$A5000)=COLUMNS($B$1:B1)))

nb when I suggested a similar formula in an earlier post I am afraid the "=" was missing and there were extraneous "!", apologies.

hth
 
Upvote 0

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Hi

As you appear to be using Excel 2003 or earlier I would be inclined to stick with the absolute ranges.

However, are you really sure you need 65536 as your final row? Is it possible to determine the maximum number of rows and would 5,000 or 10,000 be a more realistic limit?

One other point, if the data being processed is going to be just for one year, say 2011, then the formula could be -

Code:
=SUM((Start2011:End2011!$E3:$E5000)*(Start2011:End2011!$H3:$H5000=$A$2)*(Start2011:End2011!$I3:$I5000=$A7)*(Month(Start2011:End2011!$A3:$A5000)=COLUMNS($B$1:B1)))

nb when I suggested a similar formula in an earlier post I am afraid the "=" was missing and there were extraneous "!", apologies.

hth

My intention was that this personal finance spreadsheet could be continued indefinitely into future years. However I am finding that for some reason, whenever I change the category of one of the transactions in any of my account tabs, it takes an eternity to update the spreadsheet (like 2-3 minutes). That seems excessive to me, but I'm not sure why it's taking so long. Any thoughts?
 
Upvote 0
Hi

Only speculating, I suspect that the 65536 rows is having an adverse affect on calculations as well as the array formulas.

It may be wiser to progress with SUMPRODUCT which is not an array formula eg. -
Code:
=SUMPRODUCT(--(Start2011:End2011!$E3:$E5000),--(Start2011:End2011!$H3:$H5000=$A$2),--(Start2011:End2011!$I3:$I5000=$A7),--(Month(Start2011:End2011!$A3:$A5000)=COLUMNS($B$1:B1)))

If you provide a sample of your data using one of the utilities in my signature you will have the opportunity of displaying more than a subset of your formulas which should give other members the chance to comment.

Also, just because I have suggested a method of handling the current year it doesn't preclude you from adopting a similar approach for future years.


hth
 
Last edited:
Upvote 0
Hi

Only speculating, I suspect that the 65536 rows is having an adverse affect on calculations as well as the array formulas.

It may be wiser to progress with SUMPRODUCT which is not an array formula eg. -
Code:
=SUMPRODUCT(--(Start2011:End2011!$E3:$E5000),--(Start2011:End2011!$H3:$H5000=$A$2),--(Start2011:End2011!$I3:$I5000=$A7),--(Month(Start2011:End2011!$A3:$A5000)=COLUMNS($B$1:B1)))

If you provide a sample of your data using one of the utilities in my signature you will have the opportunity of displaying more than a subset of your formulas which should give other members the chance to comment.

Also, just because I have suggested a method of handling the current year it doesn't preclude you from adopting a similar approach for future years.


hth

Thanks for the suggestion. I tried that formula and got a #NAME error. When I did some more searching, it seems you can't use the SUMPRODUCT formula across multiple sheets:

http://www.mrexcel.com/forum/showthread.php?t=522894

Apparently there some way around this using the INDIRECT function? I saw it mentioned in some of the links I found, but the explanation wasn't clear to me.

Argh, maybe I should just give up on this project and use Quicken.
 
Last edited:
Upvote 0
Hi

Apologies.

Your solution appears to be in either of the threads quoted in post 5 (Andrew Poulsom) of the thread you mentioned.

Sitting on this side of the fence it is very difficult to put the hypothetical from two screen shots into the practical with just a few formulae to work on and then the added obstacle of the category update taking a long time to complete.

The lack of sample data is definitely hampering your chances of getting a solution to your problem.
 
Upvote 0
Back to post 12 (and your screenshot):
I'm trying to make a personal finance spreadsheet. Each account (checking, savings, credit card, etc.) will be on a separate worksheet and will have all transactions categorized. On a separate page, I will reference the data across all accounts in order to show expenses by category per month. From there I can create charts.

1) It would be simpler to put data on one tab (if possible). If each tab represent a bank account (say, for example, cash, savings, checking, credit card) that's manageable but you have to do everything four times to roll it all up.
2) I see no need at all to use Columns() or Rows() in any formula. This was where your post started but it's unnecessarily complicated. You can do all of this with simple sumproducts (you don't even need array-entered formulas). This all may be slowing you down terribly, especially if your referencing tens of thousands of rows.
3) Use dynamic range names - this is a simple way to account for growing data.
4) Use accounts (numbers, or at least names) for all your expenses, if you aren't doing that already.
5) I like to use an end of month value in each record. Then you can match on these dates to roll up the period totals by account.
Here's a sample of what I mean:


<img alt="worksheet" src="http://northernocean.net/etc/mrexcel/20110716_wksht3.png" />

Formula in Cell H4 (Rollup expenses, with dynamic named ranges) (can be on another sheet, btw):
=SUMPRODUCT(--(Expenses=$G4),--(Periods=H$3),Amounts)

Formula in Cell E4 (month end dates):
=DATE(YEAR(D4),MONTH(D4)+1,0)

The rollup can be on a separate sheet. If you still have a tab for cash, checking, savings, credit card, you'll need 4 rollups, one for each. Then a final rollup of the rollups.

Note that although I've only rolled up expenses, the exact same table could be created to work out the period totals for the bank accounts (checking, saving, etc) just as was done with the expenses - all you would do is reference column A rather than column B.

Sample File (very simple but has the above tables in it):
<a href="http://northernocean.net/etc/mrexcel/20110716_book1.zip">Sample Workbook</a>
sha256 checksum: 76a4fcebf87815881ee917f2104474b2fbe4e80af21cc1aba6ee667158b9c42d

Just my two cents to try to clarify. There really is no need for and Rows() or Columns() or even array-entered formulas here - that is slowing you down and complicating things. Budget worksheets can have many wrinkles but just starting out with a table of expenses by period should not be as hard as it's getting here.

edit: ah, just noticed I have rent listed twice in the rollup ... ah well. Spreadsheets have errors like dogs have fleas. Its a reminder that that list should be your account list, with no duplicates and no omissions ...
 
Last edited:
Upvote 0
OK, I have finally gotten around to using the HTML Maker. Here is my calculation spreadsheet with the original working formulas that take an eternity to update:

Excel Workbook
ABCDEFGHIJKLM
1Jan-11Feb-11Mar-11Apr-11May-11Jun-11Jul-11Aug-11Sep-11Oct-11Nov-11Dec-11
2Income$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00
3Cash Back/Rewards$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00
4Federal Tax Refund$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00
5Gift$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00
6Interest$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00
7Poker$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00
8Salary$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00
9
10Housing$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00
11Cleaning Supplies$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00
12Home Furnishings$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00
13Rent$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00
14Renter's Insurance$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00
15
16Utilities$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00
17Cable/Internet$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00
18Cell Phone$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00
19Electricity$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00
20Gas$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00
21Sewer$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00
22Trash$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00
23Water$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00
24Activation$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00
25
Summary Table
Excel 2003
#VALUE!
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}. Note: Do not try and enter these manually yourself
 
Upvote 0
Here is an example of one of the account spreadsheets referenced by the table above (e.g the Checking Account, Savings Account, Credit Card, and Cash sheets) - they all have the exact same format:

Excel Workbook
ABCDEFGHI
1DateTransaction NumberPayee/PayorChargeCreditAccount BalanceDescriptionCategorySub-Category
21/1/2011$1,000.00Initial Balance
3
4
5
6
7
Credit Card
Excel 2003
 
Last edited:
Upvote 0
xenou said:
1) It would be simpler to put data on one tab (if possible). If each tab represent a bank account (say, for example, cash, savings, checking, credit card) that's manageable but you have to do everything four times to roll it all up.

I considered that possibility, but that prevents me from keeping the current balance of each account and reconciling them with my bank statements.

I see how your "period" column would eliminate the need for my ROW and COLUMN functions needed to increment the dates, however.
 
Upvote 0
I would still recommend (as in my earlier post today) that you create a rollup for each tab (saving, checking, credit), by account, with a period column. Then roll up these intermediate summaries in your final summary (it simplifies it quite a lot to break it into two steps this way).

And, as I mentioned, no need for rows(), columns(), or the formulas that refer to thousands and thousands of cells - dynamic named ranges would be better. Or, at least, just use a thousand rows (you will not run out for a very long time, and by then, you may still want, each year, to summarize the amounts by month rather than having all the individual rows for so many years (i.e., a yearly "close" process).

Just by way of example, here we have two account summaries for checking and saving - this is the "roll up" of the checking and saving tab. Then it's very easy to get the total "summary" of both, using very simple (and efficient/fast) formulas:

<img alt="" src="http://northernocean.net/etc/mrexcel/20110716_wksht5.png" />

Formula in Summary tab:
=SUMIF($B$3:$B$10,$H3,C$3:C$10)+SUMIF($B$14:$B$21,$H3,C$14:C$21)
(For formula in Checking and Saving grids, see my previous post)

These summaries may either be on separate tabs, or you could in fact put all the rollup tables on your summary tab (the 3 or individual 4 account rollups, and the summary rollup).

However, there's many ways to approach this - I only think that somehow your formulas are oddly complicated for this task and we really need to simplify it - as well as engaging a lot more calculation than you really require.
 
Upvote 0

Forum statistics

Threads
1,224,542
Messages
6,179,421
Members
452,913
Latest member
JWD210

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top