SUM Range based on non-specific text

whathuh

New Member
Joined
Aug 12, 2010
Messages
2
Hi - I'm sure this has been addressed SOMEWHERE in the messageboard, so I apologize for the redundancy. I may be going about this all wrong, so that could be why I'm running into difficulties finding it on the site.

I have a column with numbers and a column with dates or blanks...

1 8-Aug-10
1
5 15-Aug-10
8
10
1 2-Aug-10
1

I want to total the cells in A where B contains a date. But it doesn't even have to be a date - just any non-specific string. Currently, this what I have:

=SUMIF(B2:B291,"x",A2:A291)

But I have to have a column next to date and put an "x" in the row I want totaled. If I put "2-Aug-10", it works fine, too, but then it won't total the dates that aren't specifically 2-Aug-10. So basically, if I can just total the column based on non-blank adjacent cells OR date-specific cells, I would be very appreciative. Thanks ;]

-Adam
 

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.
Outstanding! That is perfect. I kept looking for how to insert wildcards, but nothin' was working. That worked - thank you so much.
 
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,559
Members
449,089
Latest member
Motoracer88

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