IF(ISERROR Array formula

Tablecloth98

New Member
Joined
Nov 15, 2023
Messages
12
Office Version
  1. 2021
Platform
  1. Windows
I'm trying to write a formula that looks for duplicates and returns a specific text value if a duplicate is present. I'd ideally like to do this without nesting multiple if formulas as this might slow down the workbook.
What I have so far is:
=IF(ISERROR(MATCH(Sheet1!$I3,Sheet2!$I:$I&Sheet3!$I:$I,0)),"","Dup")
It doesn't seem to be picking up duplicates at all.
Where am I going wrong?
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
=IF(COUNTIF(Sheet2!I:I,Sheet1!I3)+COUNTIF(Sheet3!I:I,Sheet1!I3)>1,"Dup","")

This is assuming that the value has to be on both sheets 2 and 3 to count as a duplicate. If it only has to be on one of the other sheets change the >1 to >0
 
Upvote 0
Solution
=IF(COUNTIF(Sheet2!I:I,Sheet1!I3)+COUNTIF(Sheet3!I:I,Sheet1!I3)>1,"Dup","")

This is assuming that the value has to be on both sheets 2 and 3 to count as a duplicate. If it only has to be on one of the other sheets change the >1 to >0
Sorry for the late reply (It's a work thing so I'm on a funny schedule). It's coming up as #Value for some reason when I input some duplicate data
 
Upvote 0
I didn't match your absolute references
=IF(COUNTIF(Sheet2!$I:$I,Sheet1!$I3)+COUNTIF(Sheet3!$I:$I,Sheet1!$I3)>1,"Dup","")

but it works fine for me.
 
Upvote 0
I didn't match your absolute references
=IF(COUNTIF(Sheet2!$I:$I,Sheet1!$I3)+COUNTIF(Sheet3!$I:$I,Sheet1!$I3)>1,"Dup","")

but it works fine for me.
You're right. I messed up the format a bit 😂 thank you for your help! You're the best
 
Upvote 0

Forum statistics

Threads
1,215,076
Messages
6,122,983
Members
449,092
Latest member
Mr Hughes

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