sumif

PointerDog

New Member
Joined
Sep 5, 2009
Messages
13
I am having a problem with sumif function. C2 = 5/20/11

This does not work:
=SUMIF(C5:C900,"<c2",B5:B900)

This does work:
=SUMIF(C5:C900,"<5/20/11",B5:B900)

I would like to use the first option. What am I doing wrong?
 
Last edited:

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
err i don't you whole formula showed up.....

=SUMIF(C5:C900," wouldn't work beceause its not finished. (i had this problem yesterday on the board, try adding some spaces before what ever comes after =SUMIF(C5:C900,"
 
Upvote 0
It's the < and/or > symbols
The board software thinks they are html code

When posting a formula, put spaces before and after each of those symbols...


Now, I'm guessing what you're trying to do is

=SUMIF(C5:C900," < C2",B5:B900)

Try

=SUMIF(C5:C900," < "&C2,B5:B900)
 
Upvote 0
ahhhhhhh thats what made it go loopy last night. I worked it out in the end but still good to know its not just me.
 
Upvote 0
Thanks to both of you. =SUMIF(C5:C900," < "&C2,B5:B900) --- worked perfectly. Plus I learned something on posting. This is a great site.:)
 
Upvote 0

Forum statistics

Threads
1,224,559
Messages
6,179,517
Members
452,921
Latest member
BBQKING

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