Sum sumif of values of matches with multiple columns

G00DNESS

Board Regular
Joined
Aug 6, 2014
Messages
56
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!
 

Some videos you may like

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.

DanteAmor

Well-known Member
Joined
Dec 3, 2018
Messages
12,594
Office Version
  1. 2007
Platform
  1. Windows
Try this

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

Watch MrExcel Video

Forum statistics

Threads
1,122,511
Messages
5,596,581
Members
414,079
Latest member
Frills

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
Top