Formula to flag duplicate cells, ignoring blanks

Kenichi

New Member
Joined
Sep 17, 2009
Messages
30
Hi,

I'd like to create a Duplicate Check column in my spreadsheet, but am wondering how to tweak it to ignore blank cells?

Ex: =IF(E2=H2=K2=N2=Q2=T2,"Duplicate","") will flag duplicates, but it will also flag row 2 as having duplicates if Q2 and T2 are both blank. How can I alter the formula so that it flags duplicates, unless the duplicates are from blank cells?

Thanks!
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
ignore
 
Last edited:
Upvote 0
In U2 control+shift+enter, not just enter:

=IF(MAX(FREQUENCY(IF(MOD(COLUMN(E2:T2)-COLUMN(E2),3)=0,IF(1-(E2:T2=""),MATCH(E2:T2,E2:T2,0))),COLUMN(E2:T2)-COLUMN(E2)+1),1)>1,"duplicate","")
 
Upvote 0
Thanks everyone! I couldn't get the other formula to work properly, but this one did the trick:

In U2 control+shift+enter, not just enter:

=IF(MAX(FREQUENCY(IF(MOD(COLUMN(E2:T2)-COLUMN(E2),3)=0,IF(1-(E2:T2=""),MATCH(E2:T2,E2:T2,0))),COLUMN(E2:T2)-COLUMN(E2)+1),1)>1,"duplicate","")
 
Upvote 0

Forum statistics

Threads
1,215,339
Messages
6,124,362
Members
449,155
Latest member
ravioli44

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