how do i use the sum if formula with a date range?

G

Guest

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
 
G

Guest

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
 
G

Guest

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)...
 
J

JulieD

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
 
G

Guest

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 said:
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 said:
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)...
 
J

JulieD

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 said:
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 said:
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 said:
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)...

:

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

:

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
 
G

Guest

I tried to paste it in the cell that did not work. I just pasted it in the
box up above (whatever its called) and it worked.

Thanks
Zach

JulieD said:
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 said:
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 said:
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

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)...

:

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

:

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
 
J

JulieD

formula bar?

glad it works.

Cheers
JulieD

zach f said:
I tried to paste it in the cell that did not work. I just pasted it in the
box up above (whatever its called) and it worked.

Thanks
Zach

JulieD said:
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 said:
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

:

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

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)...

:

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

:

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
 
G

Guest

Yes thats it. One more question. My October total is not correct.
This is my formula...what would cause this to be off...350.78?

=SUMIF('133281lodging1'!Y11:Y1220,">=" &
DATE(2004,10,1),'133281lodging1'!AC11:AC1220)-SUMIF('133281lodging1'!Y11:Y1220,">=" &
DATE(2004,11,1),'133281lodging1'!AC11:AC1220)

JulieD said:
formula bar?

glad it works.

Cheers
JulieD

zach f said:
I tried to paste it in the cell that did not work. I just pasted it in the
box up above (whatever its called) and it worked.

Thanks
Zach

JulieD said:
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

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

:

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

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)...

:

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

:

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
 
J

JulieD

the formula works perfectly for me ... so check that all your dates are
entered as dates
select the column choose format / cells / number tab - tick general ... all
the numbers should go to something like 38261 to 38303 or thereabouts if you
have decimals please let me know
(you can then do format / cells / number tab - choose date format again)
then check that all your numbers are numbers - in a column to the right of
the numbers type
=ISNUMBER(AC11) and fill down - if there are any FALSE then it is text.
(if all true you can delete this column). If there are false then select a
blank, unused cell and copy it, click on the "number" that is returning
FALSE and choose edit / paste special - ADD
and then it should behave.

Hope this helps
Cheers
JulieD


zach f said:
Yes thats it. One more question. My October total is not correct.
This is my formula...what would cause this to be off...350.78?

=SUMIF('133281lodging1'!Y11:Y1220,">=" &
DATE(2004,10,1),'133281lodging1'!AC11:AC1220)-SUMIF('133281lodging1'!Y11:Y1220,">="
&
DATE(2004,11,1),'133281lodging1'!AC11:AC1220)

JulieD said:
formula bar?

glad it works.

Cheers
JulieD

zach f said:
I tried to paste it in the cell that did not work. I just pasted it in
the
box up above (whatever its called) and it worked.

Thanks
Zach

:

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

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

:

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

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)...

:

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

:

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top