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

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
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,216,100
Messages
6,128,825
Members
449,470
Latest member
Subhash Chand

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