Hey, guys.
Please, is it possible to do something like this?
I have a product code composed by two numbers separated by a dash in a cell (say A1). Example: 34-9.
I want to format that cell in a way it will show this: C0034-E0009.
I've already tried custom format like this "C0000-E0000", but of course it didn't work out.
I know how to do it with formulas and functions, if I separate that number into two cells -- for example: TEXT(A1,"C0000")&"-"&TEXT(B1,"E0000") --, but that's not what I actually need. If I do so, the product code will get changed from 34-9 to C0034-E0009 and this will be a real pain. I don't want to change the code, I just want it to be shown differently. In other words, I will still type 34-9, but it will show C0034-E0009 in the same cell. It's just like dates, I mean, we always type them the right way, but we format the cell so it shows the dates in different ways.
Well, that's it. Is it possible? If I have to use a custom VBA function, created specifically for this purpose, no problem.
Thanks for your attention.
brunces
Bookmarks