2 arguments help

CVN55

New Member
Joined
Jun 14, 2017
Messages
29
Hi
I have column K which if the word 'research' is in there, then I want column G to then be looked at and if the word 'medical' is in there, then I want the sum of those research/medical figures in column M to be added.
The red bit below works on it's own just for adding up all the medical words, but I can't work out how to condition it further to just be picking up those medical values which are linked to research values:

=IF(K8:K13="research",SUMIF(G8:G13,"Medical",M8:M13),0)

Thank you for any help,
Catherine
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Thank you so much for this, worked perfectly!
I have another query along the same lines....
Same arguments, so if column K has research and column G has medical, then I want column J multiplied by column M - sumproduct I'm guessing?
Thanks again for your help,
Catherine
 
Upvote 0
This is what should work in my head, but doesn't!
=SUMIFS(SUMPRODUCT(M8:M14,J8:J14/60),$G$8:$G$14,"Medical",$K$8:$K$14,"Research")
Dividing by 60 as column J is in minutes...
 
Upvote 0
This is what should work in my head, but doesn't!
=SUMIFS(SUMPRODUCT(M8:M14,J8:J14/60),$G$8:$G$14,"Medical",$K$8:$K$14,"Research")

Hi, you could try like this instead:

=SUMPRODUCT(M8:M14,J8:J14/60,--($G$8:$G$14="Medical"),--($K$8:$K$14="Research"))
 
Upvote 0
Why the /60 ??

This should work.
=SUMPRODUCT(--($G$8:$G$13="Medical"),--($K$8:$K$13="Research"),$M$8:$M$13*$J$8:$J$13)
 
Upvote 0

Forum statistics

Threads
1,224,824
Messages
6,181,186
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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