Sum sumif of values of matches with multiple columns

G00DNESS

Board Regular
Joined
Aug 6, 2014
Messages
60
My formula works. However, I would like to:
1. If possible, simplify this formula (By not using "+").
2. Prevent errors if there are blanks in Columns DP or DV.


D9 is a formula-driven value (Name) that will appear as a multiple occurrence in Columns DO114:DO469 and in DU114:DU469.
The numeric values in Columns DP114:DP469 and DV114:DV469 are formula-driven as well.


Code:
=IF(D9="","",IF(SUMIF('TCH1'!$DO$114:$DO$469,D9,'TCH1'!$DP$114:$DP$469)+SUMIF('TCH1'!$DU$114:$DU$469,D9,'TCH1'!$DV$114:$DV$469)=0,0,SUMIF('TCH1'!$DO$114:$DO$469,D9,'TCH1'!$DP$114:$DP$469)+SUMIF('TCH1'!$DU$114:$DU$469,D9,'TCH1'!$DV$114:$DV$469)))

Thanks in advance for any/all assistance!
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Try this

=IF(D9="","",SUMPRODUCT(('TCH1'!DO114:DO469=D9)*('TCH1'!DP114:DP469)+('TCH1'!DU114:DU469=D9)*('TCH1'!DV114:DV469)))
 
Upvote 0

Forum statistics

Threads
1,223,905
Messages
6,175,297
Members
452,633
Latest member
DougMo

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