Hi.
Is it possible to custom number format a cell based on text?
For example, I have a column with a bunch of people names.
What I want is based on the name written, the cell will only allow a 2 digits number or a 4 digit number.
I tried something like =TEXT(A1;"VLOOKUP(C1;$D$1:$E$10;2)"), but I had no luck.
I thought using the VLOOKUP so I could use the format "0.00" and "0.0000" for each person name, so the text function would recognize the format, but apparently I was wrong.
Any help?
Regards.
Is it possible to custom number format a cell based on text?
For example, I have a column with a bunch of people names.
What I want is based on the name written, the cell will only allow a 2 digits number or a 4 digit number.
I tried something like =TEXT(A1;"VLOOKUP(C1;$D$1:$E$10;2)"), but I had no luck.
I thought using the VLOOKUP so I could use the format "0.00" and "0.0000" for each person name, so the text function would recognize the format, but apparently I was wrong.
Any help?
Regards.