SOLVED

Change numbers in column to text

Copper Contributor

Hello,

 

For some of you a simple issue, but for i am struggling for long to do this.

 

I have two columns which i want to use: the one with numbers of our shops en one with hours people worked an secific month.

 

So for example:

Shop                    Hours

01                        226

01                        224

02                        254

 

Now i want to change the number to the shops into their names. So that 01 will become "Amersfoort".

Because of the very large amount of data i want to automatic this. Anyone an idea how to do this?

 

Thanks in advance!

 

Greetings,

Paul

 

 

5 Replies

@PaulD98L 

Paul, if you have separate table which maps shop numbers and names, you may VLOOKUP or INDEX/MATCH it to return names into the main table.

If Excel has no idea about such mapping, when manually - Ctrl+H and change one number by another.

@Sergei Baklan 

 

Thanks for your answer.

 

I created a table with our shops and try to use the formula.

It fails, how should i use this formula?

 

=index(matrix with shops;match(number;numbers of shops;0))

I get the result of the shops in a row, but it doesn't convert the numbers into the name of the shops. What am i missing?

 

 

Greetings,

Paul

best response confirmed by PaulD98L (Copper Contributor)
Solution

@PaulD98L 

Paul, let me illustrate on this simple model

image.png

Even better to use Table for the mappings, it's easier to support and not necessary to adjust formulas for expanded ranges or use dynamic ranges formulas. 

That could be like

image.png

if we name the table as shopNames.

Please check in attached file.

@Sergei Baklan 

Thanks! this helped a lot. I am using this a lot now.

 

Greetings,

Paul

@PaulD98L 

Paul, glad to help

1 best response

Accepted Solutions
best response confirmed by PaulD98L (Copper Contributor)
Solution

@PaulD98L 

Paul, let me illustrate on this simple model

image.png

Even better to use Table for the mappings, it's easier to support and not necessary to adjust formulas for expanded ranges or use dynamic ranges formulas. 

That could be like

image.png

if we name the table as shopNames.

Please check in attached file.

View solution in original post