Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Sumif Formula - Won't Recognize Dates

I am trying to use a sumif and countif formula in conjuction with dates but
Excel (2003) will only recognize my formulas when I hard-code the date as
opposed to linking to a cell that contains the date. For some reason, when I
put the formula pointing to a cell (containing a date) - it returns 0, but
when I actually type in the date, I get a real number. Can Anyone help
please? Thanks very much


EX)

I am doing a range (2009), and this formula is returning the proper value:
"=SUMIF(Sheet1!$R$5:$R$223,"=1/1/2009",Sheet1!M5:M224)-SUMIF(Sheet1!$R$5:$R$223,"12/31/2009",Sheet1!M5:M224)"

However, for the same exact date range, this formula which attempts to point
to cells, does not work: "
=SUMIF(Sheet1!$R$5:$R$223,"A9",Sheet1!M5:M224)-SUMIF(Sheet1!$R$5:$R$223,"B9",Sheet1!M5:M224)

Any help is seriously appreciated
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 964
Default Sumif Formula - Won't Recognize Dates

Change this

"A9"

to this

""&A9


do the same change in the second part


"B9"


should be


""&B9



--


Regards,


Peo Sjoblom

"Dwolko" wrote in message
...
I am trying to use a sumif and countif formula in conjuction with dates but
Excel (2003) will only recognize my formulas when I hard-code the date as
opposed to linking to a cell that contains the date. For some reason, when
I
put the formula pointing to a cell (containing a date) - it returns 0, but
when I actually type in the date, I get a real number. Can Anyone help
please? Thanks very much


EX)

I am doing a range (2009), and this formula is returning the proper value:
"=SUMIF(Sheet1!$R$5:$R$223,"=1/1/2009",Sheet1!M5:M224)-SUMIF(Sheet1!$R$5:$R$223,"12/31/2009",Sheet1!M5:M224)"

However, for the same exact date range, this formula which attempts to
point
to cells, does not work: "
=SUMIF(Sheet1!$R$5:$R$223,"A9",Sheet1!M5:M224)-SUMIF(Sheet1!$R$5:$R$223,"B9",Sheet1!M5:M224)

Any help is seriously appreciated



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Sumif Formula - Won't Recognize Dates

=SUMIF(Sheet1!$R$5:$R$223,"A9",Sheet1!M5:M224)-SUMIF(Sheet1!$R$5:$R$223,"B9",Sheet1!M5:M224)

In the above statement, you have this "A9" and this "B9"... anything
between quote marks is text to Excel (or VB for that matter)... so the A9
and B9 are not recognized as cell references. Take them out of the quote
marks and concatenate them with the greater than symbol (like this... ""&A9
and this... ""&B9) and the contents of A9 and B9 will be concatenated with
the greater than symbol and *that* will be used for the IF criteria of the
SUMIF functions. So, this is what your formula should look like...

=SUMIF(Sheet1!$R$5:$R$223,""&A9,Sheet1!M5:M224)-SUMIF(Sheet1!$R$5:$R$223,""&B9,Sheet1!M5:M224)

Rick


"Dwolko" wrote in message
...
I am trying to use a sumif and countif formula in conjuction with dates but
Excel (2003) will only recognize my formulas when I hard-code the date as
opposed to linking to a cell that contains the date. For some reason, when
I
put the formula pointing to a cell (containing a date) - it returns 0, but
when I actually type in the date, I get a real number. Can Anyone help
please? Thanks very much


EX)

I am doing a range (2009), and this formula is returning the proper value:
"=SUMIF(Sheet1!$R$5:$R$223,"=1/1/2009",Sheet1!M5:M224)-SUMIF(Sheet1!$R$5:$R$223,"12/31/2009",Sheet1!M5:M224)"

However, for the same exact date range, this formula which attempts to
point
to cells, does not work: "
=SUMIF(Sheet1!$R$5:$R$223,"A9",Sheet1!M5:M224)-SUMIF(Sheet1!$R$5:$R$223,"B9",Sheet1!M5:M224)

Any help is seriously appreciated


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Sumif Formula - Won't Recognize Dates

Thanks so much guys. I really appreciate the help and explanation.

You really helped me out today!

-Dave
"Rick Rothstein (MVP - VB)" wrote:

=SUMIF(Sheet1!$R$5:$R$223,"A9",Sheet1!M5:M224)-SUMIF(Sheet1!$R$5:$R$223,"B9",Sheet1!M5:M224)


In the above statement, you have this "A9" and this "B9"... anything
between quote marks is text to Excel (or VB for that matter)... so the A9
and B9 are not recognized as cell references. Take them out of the quote
marks and concatenate them with the greater than symbol (like this... ""&A9
and this... ""&B9) and the contents of A9 and B9 will be concatenated with
the greater than symbol and *that* will be used for the IF criteria of the
SUMIF functions. So, this is what your formula should look like...

=SUMIF(Sheet1!$R$5:$R$223,""&A9,Sheet1!M5:M224)-SUMIF(Sheet1!$R$5:$R$223,""&B9,Sheet1!M5:M224)

Rick


"Dwolko" wrote in message
...
I am trying to use a sumif and countif formula in conjuction with dates but
Excel (2003) will only recognize my formulas when I hard-code the date as
opposed to linking to a cell that contains the date. For some reason, when
I
put the formula pointing to a cell (containing a date) - it returns 0, but
when I actually type in the date, I get a real number. Can Anyone help
please? Thanks very much


EX)

I am doing a range (2009), and this formula is returning the proper value:
"=SUMIF(Sheet1!$R$5:$R$223,"=1/1/2009",Sheet1!M5:M224)-SUMIF(Sheet1!$R$5:$R$223,"12/31/2009",Sheet1!M5:M224)"

However, for the same exact date range, this formula which attempts to
point
to cells, does not work: "
=SUMIF(Sheet1!$R$5:$R$223,"A9",Sheet1!M5:M224)-SUMIF(Sheet1!$R$5:$R$223,"B9",Sheet1!M5:M224)

Any help is seriously appreciated



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
cells don't recognize formula Chris D Excel Worksheet Functions 0 May 19th 08 08:35 PM
Formula help - indirect & sumif & dates ..... Ray Excel Discussion (Misc queries) 3 August 9th 07 01:56 PM
recognize formula datadude1959 Excel Worksheet Functions 4 April 5th 06 04:31 PM
Formula to recognize text only in a cell Jim May Excel Worksheet Functions 11 March 7th 06 11:40 PM
Formula to recognize Duplicates Spike9458 Excel Worksheet Functions 5 January 13th 06 06:36 PM


All times are GMT +1. The time now is 04:32 AM.

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"