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

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
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,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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