Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
zach f
 
Posts: n/a
Default how do i use the sum if formula with a date range?

Hello, I am trying to sum the total $ amount we are paying on an invoice by
month. I have things on this invoice that go back to January 2004. My dates
are in cells Y2:Y1211 and my totals are in cells AC2:AC1211. I am trying to
do this on a seperate worksheet from all of my data.

Thanks
  #2   Report Post  
Frank Kabel
 
Posts: n/a
Default

Hi
do you mean
=SUMIF(Y2:Y1211,"=" & DATE(2004,1,1),AC2:AC1211)-SUMIF(Y2:Y1211,"=" &
DATE(2004,2,1),AC2:AC1211)

For getting the January values

"zach f" wrote:

Hello, I am trying to sum the total $ amount we are paying on an invoice by
month. I have things on this invoice that go back to January 2004. My dates
are in cells Y2:Y1211 and my totals are in cells AC2:AC1211. I am trying to
do this on a seperate worksheet from all of my data.

Thanks

  #3   Report Post  
zach f
 
Posts: n/a
Default

Well I am not sure I have keyed what I think is the same thing you have below
and I am getting an error message at the AC1211 (The 1st AC1211)...

"Frank Kabel" wrote:

Hi
do you mean
=SUMIF(Y2:Y1211,"=" & DATE(2004,1,1),AC2:AC1211)-SUMIF(Y2:Y1211,"=" &
DATE(2004,2,1),AC2:AC1211)

For getting the January values

"zach f" wrote:

Hello, I am trying to sum the total $ amount we are paying on an invoice by
month. I have things on this invoice that go back to January 2004. My dates
are in cells Y2:Y1211 and my totals are in cells AC2:AC1211. I am trying to
do this on a seperate worksheet from all of my data.

Thanks

  #4   Report Post  
JulieD
 
Posts: n/a
Default

Hi Zach

if you're "trying to do this on a seperate worksheet from all of [your]
data." you need to include the sheet names in the ranges e.g.
=SUMIF(Sheet1!Y2:Y1211,"=" &
DATE(2004,1,1),Sheet1!AC2:AC1211)-SUMIF(Sheet1!Y2:Y1211,"=" &
DATE(2004,2,1),Sheet1!AC2:AC1211)

Cheers
JulieD

"zach f" wrote in message
...
Well I am not sure I have keyed what I think is the same thing you have
below
and I am getting an error message at the AC1211 (The 1st AC1211)...

"Frank Kabel" wrote:

Hi
do you mean
=SUMIF(Y2:Y1211,"=" & DATE(2004,1,1),AC2:AC1211)-SUMIF(Y2:Y1211,"=" &
DATE(2004,2,1),AC2:AC1211)

For getting the January values

"zach f" wrote:

Hello, I am trying to sum the total $ amount we are paying on an
invoice by
month. I have things on this invoice that go back to January 2004. My
dates
are in cells Y2:Y1211 and my totals are in cells AC2:AC1211. I am
trying to
do this on a seperate worksheet from all of my data.

Thanks



  #5   Report Post  
zach f
 
Posts: n/a
Default

Correct. I will eventually put it on a seperate spreadsheet but until I get
the formula to work i am putting it on the same worksheet that all my data is
on.

Zach

"JulieD" wrote:

Hi Zach

if you're "trying to do this on a seperate worksheet from all of [your]
data." you need to include the sheet names in the ranges e.g.
=SUMIF(Sheet1!Y2:Y1211,"=" &
DATE(2004,1,1),Sheet1!AC2:AC1211)-SUMIF(Sheet1!Y2:Y1211,"=" &
DATE(2004,2,1),Sheet1!AC2:AC1211)

Cheers
JulieD

"zach f" wrote in message
...
Well I am not sure I have keyed what I think is the same thing you have
below
and I am getting an error message at the AC1211 (The 1st AC1211)...

"Frank Kabel" wrote:

Hi
do you mean
=SUMIF(Y2:Y1211,"=" & DATE(2004,1,1),AC2:AC1211)-SUMIF(Y2:Y1211,"=" &
DATE(2004,2,1),AC2:AC1211)

For getting the January values

"zach f" wrote:

Hello, I am trying to sum the total $ amount we are paying on an
invoice by
month. I have things on this invoice that go back to January 2004. My
dates
are in cells Y2:Y1211 and my totals are in cells AC2:AC1211. I am
trying to
do this on a seperate worksheet from all of my data.

Thanks






  #6   Report Post  
JulieD
 
Posts: n/a
Default

Hi Zach

could you copy & paste your formula into a post as there appears (to me) to
be nothing wrong with the formula Frank has give you. Additionally, what
version of excel are you using - if it's 2002 or 2003 there's a handy tool
under tools / formula auditing / evaluate formula
which you can use to step through a formula to see where it goes wrong ..
maybe that will give you a clue.

Cheers
JulieD

"zach f" wrote in message
...
Correct. I will eventually put it on a seperate spreadsheet but until I
get
the formula to work i am putting it on the same worksheet that all my data
is
on.

Zach

"JulieD" wrote:

Hi Zach

if you're "trying to do this on a seperate worksheet from all of [your]
data." you need to include the sheet names in the ranges e.g.
=SUMIF(Sheet1!Y2:Y1211,"=" &
DATE(2004,1,1),Sheet1!AC2:AC1211)-SUMIF(Sheet1!Y2:Y1211,"=" &
DATE(2004,2,1),Sheet1!AC2:AC1211)

Cheers
JulieD

"zach f" wrote in message
...
Well I am not sure I have keyed what I think is the same thing you have
below
and I am getting an error message at the AC1211 (The 1st AC1211)...

"Frank Kabel" wrote:

Hi
do you mean
=SUMIF(Y2:Y1211,"=" & DATE(2004,1,1),AC2:AC1211)-SUMIF(Y2:Y1211,"="
&
DATE(2004,2,1),AC2:AC1211)

For getting the January values

"zach f" wrote:

Hello, I am trying to sum the total $ amount we are paying on an
invoice by
month. I have things on this invoice that go back to January 2004.
My
dates
are in cells Y2:Y1211 and my totals are in cells AC2:AC1211. I am
trying to
do this on a seperate worksheet from all of my data.

Thanks






  #7   Report Post  
mzehr
 
Posts: n/a
Default

Hi,
You might consider using a pivot table to summarize your data, and then
group it by month. For help in getting started setting up your pivot tables
consider the following sites:
http://peltiertech.com/Excel/Pivots/pivotstart.htm
http://www.cpearson.com/excel/pivots.htm
http://www.contextures.com/xlPivot02.html
http://www.contextures.com/xlPivot01.html
http://www.ozgrid.com/Excel/excel-pivot-tables.htm


"zach f" wrote:

Hello, I am trying to sum the total $ amount we are paying on an invoice by
month. I have things on this invoice that go back to January 2004. My dates
are in cells Y2:Y1211 and my totals are in cells AC2:AC1211. I am trying to
do this on a seperate worksheet from all of my data.

Thanks

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how do I make a formula NOT change when the data range is moved? Alida Andrews Excel Discussion (Misc queries) 2 January 6th 05 09:02 PM
Date Formula Robyn Bellanger Excel Discussion (Misc queries) 2 December 17th 04 07:25 PM
Date formula Robyn Bellanger Excel Discussion (Misc queries) 2 December 16th 04 12:41 AM
How do I add a date formula to a cell but hide the contents with . Emzy Wemzy Excel Discussion (Misc queries) 2 December 12th 04 01:48 PM
Formula for date function Markitos Excel Worksheet Functions 15 November 10th 04 02:05 AM


All times are GMT +1. The time now is 12:44 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"