Sum with multiple criteria

mnunan

New Member
Joined
Apr 1, 2011
Messages
18
Hi

Can anyone help with the following formula please, I need to:

Sum the cells in column G where the date in column D is between the dates specified in cells B2 and C2 (in a different worksheet) and where the text in column B is "LHR" and where the the cells in column L are not blank.

Column D = date
Column G = currency
Columns B & C in a different worksheet = date
Column L = text

Thanks very much :biggrin:
 
Are you saying that ...$L$2:$L$400,"LHR"... should be ...$B$2:$B$400,"LHR"... ?

Maybe this:

=SUMIFS($G$2:$G$400,$D$2:$D$400,">="&Sheet2!B2,$D$2:$D$400,"<="&Sheet2!C2,$B$2:$B$400,"LHR",$L$2:$L$400,"?*")

This is perfect, thanks so much for your help :biggrin:
 
Upvote 0

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Hi

I have tried both the sumproduct and sumifs, sumproduct returns 0 and sumifs says too few arguments. Also, the last part of the formula you have suggested should be referencing column B not L and there doesn't seem to be an argument to check if column L is not empty?

Thanks again

Just for the record: Editing the copied SumProduct version to SumIfs left the = sign untouched. It's an edit error rather than anything else.
 
Upvote 0

Forum statistics

Threads
1,224,612
Messages
6,179,890
Members
452,948
Latest member
Dupuhini

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