Sumif two columns not match

dan1992

New Member
Joined
Nov 29, 2019
Messages
27
Office Version
  1. 365
Platform
  1. Windows
Hi
I am looking for a formula based on the grid below. Please note column labels at top. I would like to find the sum of the three values in O-Q if the to numbers in G&H do not match
So in the case below - i want the sum of the bottom row, which would be 3, because the first two columns match. Anyone who could help would be a life saver. I hope that makes sense

GHOPQ
2019
2020Value1Value2Value 3
33123
11466
1212
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Assuming the first row of data is row 2, the formula is:
=IF(G2=H2,"",SUM(O2:Q2))
Then copy this down to each row.
 
Upvote 0
Thanks
That has worked row by row.
I have a summary tab however that i would like a single formula without having to use a row by row tab. This would need to be for the entirety of columns G&H and only add the values of the cells in the entirety of the columns in the rows where G&H do not match - if that makes sense.
 
Upvote 0
How about
=SUMPRODUCT((G2:G4<>H2:H4)*(O2:Q4))
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

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