count and sum for criteria in multiple columns

treena

New Member
Joined
Aug 17, 2007
Messages
6
Hello, I am trying to figure out how to create a formula using multiple criteria in different columns. Ideally, I need to use the whole column (i.e. E:E rather than E2:E400) because I don't want to have to update the formula every time I input data.

I will simplify my spreadsheet for example purpose. Basically, column A has a unique identifier that either begins with an "M" or an "R." Column B either contains a person's name or a "-". Column C contains a dollar amount.

1. I need to be able to count all the cells in Column A that begin with an "M" AND have a "-" in Column B.

2. I need to be able to SUM the $ amounts in Column C ONLY for the items that begin with an "M" in Column A and have a "-" in Column B.

Is there any sort of formula that might do this? I have tried SUM arrays but as I said before, I would rather be able to use the whole column.

Any help would be much appreciated!!!
 
Actually-- just figured it out! So, nevermind.

Thank you guys so much for your help- Barry, Aladin and Patrick. I've been trying to figure this out forever.
 
Upvote 0

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Re: re:count and sum for multiple criteria in different colu

....Can SUMPRODUCT be used for a whole column of data?

No
Not entirely true. Depends on the Excel version. In 2007 it is possible. BTW, the Excel 2007 team recommends the function sumifs() instead of sumproduct(), because it doesn't need to evaluate the whole column.
 
Upvote 0
Re: re:count and sum for multiple criteria in different colu

Not entirely true. Depends on the Excel version.

Thanks for that, grizzly. You are, indeed, correct. I'm still living in the past, most of the time, with Excel 2003.....
 
Upvote 0
Re: re:count and sum for multiple criteria in different colu

Not entirely true. Depends on the Excel version.

Thanks for that, grizzly. You are, indeed, correct. I'm still living in the past, most of the time, with Excel 2003.....

Convert the data area into a list by means of Data|List|Create List. The formulas that refer to bits of the current list will adjust to changes to that list automatically.
 
Upvote 0

Forum statistics

Threads
1,215,316
Messages
6,124,228
Members
449,149
Latest member
mwdbActuary

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