change lookup value to text

ZTB

New Member
Joined
Feb 2, 2021
Messages
3
Office Version
  1. 2019
Platform
  1. Windows
I have the following formula which i want to change.

Match($A1,(reference lookup array)... to be changed to Match(Text($A1,0),(reference look up array).

The issue that i have around 1000 rows and more than 30 columns which have difference reference files. Any help is appreciated.
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Try using replace? Ctrl + H in Excel

Search for: Match($A1,
replace with: Match(Text($A1,0),
click Options >>
uncheck entire cell contents
look in: Formulas

Replace All
Then change "A" to "B" and repeat, "B" to "C" and repeat, and so on.
If it's a 1 time process, you only need to do this for 30ish times which should take less than 2 minutes.
 
Upvote 0
Try using replace? Ctrl + H in Excel

Search for: Match($A1,
replace with: Match(Text($A1,0),
click Options >>
uncheck entire cell contents
look in: Formulas

Replace All
Then change "A" to "B" and repeat, "B" to "C" and repeat, and so on.
If it's a 1 time process, you only need to do this for 30ish times which should take less than 2 minutes.
The rows are from A1 to A1000, and the columns are linked to 30 different files so i am unable to replace that easily.
 
Upvote 0
Maybe show a few columns of the entire formula, you can just censor off the file names if you think those are sensitive. There is definitely a way to replace.
 
Upvote 0
1612407831847.png
hi, this is a sample of what i have. The reference file is different for each of the 30 columns.
 
Upvote 0
Ok try this... on a copy of your workbook first.

Step 1: change all formula to text. highlight all 30+ columns, and press Ctrl+H
Find: =​
Replace with: '=​

Step 2: replace MATCH with MATCH TEXT
Find: MATCH($​
Replace with: MATCH(TEXT($​

Step 3: replace MATCH with MATCH TEXT part 2
Find: ,'C:​
Replace with: ,0),'C:​

Step 4: this will be slightly more repetitive. do a text-to-columns on every of your 30+ columns, one at a time to convert them back into formulas
Select 1 column​
Press Alt + D + E (short cut), leave everything as default (delimited, tab, general) and just click Finish​
Select next column, repeat​
 
Upvote 0
Hi, @ZTB
Do you also have anything other than $A, like:
Match($B1,
Match($B2,
Match($C1,
...

etc

and if yes do you want to change it too?
I might have an idea by using macro.
 
Upvote 0

Forum statistics

Threads
1,214,975
Messages
6,122,537
Members
449,088
Latest member
RandomExceller01

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