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

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
See if this works:

=SUM(COUNTIF(INDIRECT(TEXT(DATE(1900,ROWS($A$1:A1),1),"mmm")&"!$A:$A"),$A2))>1
 
Upvote 0
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

NamePhoneHome
A123789
B234678
A123789
D456567

<tbody>
</tbody>

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,214,920
Messages
6,122,272
Members
449,075
Latest member
staticfluids

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