I have to update a table referring to another table. Let's call them working table & reference table. In the reference table, there are 9 digit numbers stored as text. I have to refer these account # in the working table & get the account name.
In the working table, account # are stored as numbers (6 to 9 digits), but needs to be displayed as 9 digits. I have done custom formatting in the working table to include leading zeroes so that account # is displayed with 9 digits.
When I run Index & Match to get the account name, I'm getting error because account # in text format is compared against account # in number format.
To resolve this, I convert account in the working table to text format. I lose leading zeroes when I do this. I need these leading zeroes. Hence I had to do custom format again to make them 9 digits. With this done on single cell, Index & Match is retrieving the account name from reference table. So, account in working table has undergone different format changes - number (original) --> custom (9 digits) --> text --> custom (9 digits).
When I do the same for all cells under account column, it doesn't work. But it works if changes are done in each cell. There are more than 30 thousand rows & it is not feasible to do it for each cell. Not sure why it doesn't work for range of cells.
Is there any better way to do this? Searched internet but couldn't figure out the problem. I must be doing some silly mistake . Can someone help me please? Basically, I have to compare values in text & number format & then run Index-Match to retrieve the values.
Reference table:
Working table:
In the working table, account # are stored as numbers (6 to 9 digits), but needs to be displayed as 9 digits. I have done custom formatting in the working table to include leading zeroes so that account # is displayed with 9 digits.
When I run Index & Match to get the account name, I'm getting error because account # in text format is compared against account # in number format.
To resolve this, I convert account in the working table to text format. I lose leading zeroes when I do this. I need these leading zeroes. Hence I had to do custom format again to make them 9 digits. With this done on single cell, Index & Match is retrieving the account name from reference table. So, account in working table has undergone different format changes - number (original) --> custom (9 digits) --> text --> custom (9 digits).
When I do the same for all cells under account column, it doesn't work. But it works if changes are done in each cell. There are more than 30 thousand rows & it is not feasible to do it for each cell. Not sure why it doesn't work for range of cells.
Is there any better way to do this? Searched internet but couldn't figure out the problem. I must be doing some silly mistake . Can someone help me please? Basically, I have to compare values in text & number format & then run Index-Match to retrieve the values.
Reference table:
Working table: