Formula for summing based on 2 criteria?

Daniellel

Board Regular
Joined
Jun 21, 2011
Messages
242
Hi,

What formula can I use to find out what the sum of column "D" is if Column "A" = Jan and Column "B" = Monday???

I have a list that i need to report the number of vacancies (Column D) were submitted on a Monday (Column B) in January (Column A).

I then need to replicate this sum for all days and months...

Not sure what I need, I thought something like...

=sumif(A1:A999="Jan", B1:B999="Mon",D1:D999)

But this obviously does not work. I have Excel 2003 if that helps???

PLEASE HELP!
 
and also
Code:
=SUMPRODUCT(--(TEXT(A1:A9,"MMM")="Jan"),--(TEXT(B1:B9,"DDD")="Mon"),D1:D9)
 
Upvote 0

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Small example

Excel Workbook
ABCDE
1JanMon15
2FebTue2
3MarMon3
4JanMon4
Sheet2


This did work - some idiot has put 2 spaces before each entry in column D!!!

I hate when people mess with my spreadsheets!!!

Thank you!!!!!!!!!!!!!!!!!!!!!!
 
Upvote 0
Is it possible to use the formula below in vba? I have so many sumproduct calculations it takes 5 minutes to calculate the workbook. I am hoping if I put it in vba it does the sum and then displays the result in a given cell. That way its not recalculating everytime I do something in excel.
 
Upvote 0

Forum statistics

Threads
1,224,599
Messages
6,179,827
Members
452,946
Latest member
JoseDavid

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