Cell format

  • Thread starter Thread starter mcg
  • Start date Start date
M

mcg

hi,
how can i format cell containing WI12345 to be displayd asWI 12345 (
with space after 2 signs )
thanks
mcg
 
Assuming your data is in cell A1, and that you allways want 2
characters before the space, the following formula will do this:

=LEFT(A1,2) &" "& RIGHT(A1,LEN(A1) - 2)

Hope this helps.

Pete
 
Don't believe you can, because you have text in the cell and not a number.
Are all the prefixes WI because if so then you can get rid of all the WIs
and then format the remaining numbers to appear just the way wanted,
including the WI prefix.

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03

------------------------------­------------------------------­----------------
It's easier to beg forgiveness than ask permission :-)
------------------------------­------------------------------­----------------
 
Maybe you can enter the data in one column and use another column to show the
pretty format:

=left(a1,2)&" "&mid(a2,3,255)
 
Uzytkownik "Dave Peterson said:
Maybe you can enter the data in one column and use another column to show the
pretty format:

=left(a1,2)&" "&mid(a2,3,255)

thanks for suggestions
i will have to force user to enter it as wi12345 which is registration plate
for car
or i will have to vlookup for =left(a1,2)&" "&mid(a2,3,255)...
mcg
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top