amend sumproduct formula to allows blank cells?

danbates

Active Member
Joined
Oct 8, 2017
Messages
377
Office Version
  1. 2016
Platform
  1. Windows
Hi,

I have this formula that was perfect for me:
=SUMPRODUCT(--($C$6:$AO$6<>C300:AO300))=0

but now I need it to miss out four cells.

The only way I can do it is by having 3 separate formulas like this:
=SUMPRODUCT(--($C$6:$X$6<>C300:X300))=0
=SUMPRODUCT(--($AA$6:$AE$6<>AA300:AE300))=0
=SUMPRODUCT(--($AH$6:$AO$6<>AH300:AO300))=0

is there a way of combining all the 3 ranges into 1 formula?

Any help would be appreciated.

Thanks

Dan
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
I would just do it as
Excel Formula:
=(SUMPRODUCT(--($C$6:$X$6<>C300:X300))+SUMPRODUCT(--($AA$6:$AE$6<>AA300:AE300))+SUMPRODUCT(--($AH$6:$AO$6<>AH300:AO300)))=0
Beyond that you will make it more complicated by trying to simplify it.
 
Upvote 0
Solution
Hi jasonb75,

thank you, that's just what I was after.

thanks

Dan
 
Upvote 0

Forum statistics

Threads
1,214,926
Messages
6,122,306
Members
449,079
Latest member
juggernaut24

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