Cell to give me total amount depending on multiple criteria in seperate sheet

Lmaonade

Board Regular
Joined
Jan 5, 2018
Messages
52
Hi, I'm trying to create a table here that gives me a total amount depending on certain things.

So for example:

This is my sheet that I want to totals to go onto. It's called "January Costs"
Capture1.PNG



This is the table that would have the information, the sheet is called "Interviews":
Capture2.PNG


I want B4 in my first sheet to return the sum of anything in the table that has their name as the consultant and if the G column says "Passed" only for dates in January in the D column, multiplied by the cost in F1. So for this I would want B4 to return £100.00 as for the january dates - Ade, Helen, Nicola and Evangeline are all in his name, all passed in January meaning 4 x £25.00.

I'm probably over complicating things but I would like to create this table every month to make it easier as there is going to be a lot of data.

I'd appreciate any help.

Regards,
Andy
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
How about:

=SUMPRODUCT(--(Interviews!$B$4:$B$100=A4),--(Interviews!$G$4:$G$100="Passed"),--(MONTH(Interviews!$D$4:$D$100)=MONTH(1&$A$1)))*Interviews!$F$1
 
Upvote 0
Sorry, my method did not take a month filter into account. - deleted
 
Last edited:
Upvote 0
How about:

=SUMPRODUCT(--(Interviews!$B$4:$B$100=A4),--(Interviews!$G$4:$G$100="Passed"),--(MONTH(Interviews!$D$4:$D$100)=MONTH(1&$A$1)))*Interviews!$F$1

That worked perfect! :) Appreciate it! :)

What if there were different costs for different people.

For example if I added into colomn H the cost rather than the cost in F1. So the cost for Ade was £25.00, the cost for Helen was £30.00. How could I change that formula to grab the different costs from the relevant cells?

Thanks again! :)
Andy
 
Upvote 0
That would just be:

=SUMPRODUCT(--(Interviews!$B$4:$B$100=A4),--(Interviews!$G$4:$G$100="Passed"),--(MONTH(Interviews!$D$4:$D$100)=MONTH(1&$A$1)),Interviews!$H$4:$H$100)
 
Upvote 0

Forum statistics

Threads
1,214,983
Messages
6,122,598
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