Change Sheet name in the formula

darkarahat

New Member
Joined
Nov 3, 2011
Messages
15
This formula for find duplicate in multiple sheets but i have a problem when changed the name of sheets
=$A$2:$A$1000000
=SUM(COUNTIF(INDIRECT("'Sheet" & ROW($1:$4) & "'!$A:$A"),$A2))>1

That rule i apply on the Home ---> Conditional Formatting ---> New Rule

The problem is when i change sheets name from Sheet1 to Jan, Sheet2 to Feb and so on, the formula not working. I try to changes "'Sheet" to "Jan" or "'Jan" but still not working

Please help me for your advice, thank you
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
See if this works:

=SUM(COUNTIF(INDIRECT(TEXT(DATE(1900,ROWS($A$1:A1),1),"mmm")&"!$A:$A"),$A2))>1

Sorry Steve isn't working

[TABLE="width: 500"]
<tbody>[TR]
[TD]Name[/TD]
[TD]Phone[/TD]
[TD]Home[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]123[/TD]
[TD]789[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]234[/TD]
[TD]678[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]123[/TD]
[TD]789[/TD]
[/TR]
[TR]
[TD]D[/TD]
[TD]456[/TD]
[TD]567[/TD]
[/TR]
</tbody>[/TABLE]

With use my formula it's working and show with highlight when duplicated in any sheets but when i changed Sheet name suddenly my formula isn't working and i know the problem is =SUM(COUNTIF(INDIRECT("'Sheet" & ROW($1:$4) & "'!$A:$A"),$A2))>1 so i want rename my sheet what i want like Jan, Feb, Mar
 
Last edited:
Upvote 0
In sheet called 'Jan' place 999 in cell A1. What does this produce:

=INDIRECT(TEXT(DATE(1900,ROWS($A$1:A1),1),"mmm")&"!A1")
 
Upvote 0
I upload for more clear

https://prnt.sc/mjz4t8
mjz4t8

mjz4t8


Blue Box (Sheet1...Sheet4) that i want to change with any name

Thanks
 
Upvote 0
Ok make your Sheets called Jan, Feb, Mar, Apr then

=SUM(COUNTIF(INDIRECT(TEXT(DATE(1900,ROW(A1:A4),1),"mmm")&"!$A:$A"),$A2))>1
 
Last edited:
Upvote 0
Missed some absolution of the cells:

=SUM(COUNTIF(INDIRECT(TEXT(DATE(1900,ROW($A$1:$A$4),1),"mmm")&"!$A:$A"),$A2))>1
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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