Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I have 2 cols "Ref1"(col a) and "Ref2"col b.
"Ref1" is up to 6 digits long and "Ref2" is up to 8 digits long. I now need to convert these 2 columns to character. The character field does need to be 6 or 8 digits long, so in some cases ie ref1 may only be "456" while it needs to end up as 000456 in character format and to appear in a "new" col k. and similary with ref2 which needs to end as 8 characters long in col L. I believe there is a simply formula that will give me this result and i can then "drag" it down the column length.(I need to change about 6000 records in total) Could somebody help with request please. With thanks I |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
In the 6 digit column, select all the cells that you want and format them as
Custom 000000. Do the same with the 8 digit numbers, 00000000. Note that the result is a number. HTH Otto "Bob" wrote in message ... I have 2 cols "Ref1"(col a) and "Ref2"col b. "Ref1" is up to 6 digits long and "Ref2" is up to 8 digits long. I now need to convert these 2 columns to character. The character field does need to be 6 or 8 digits long, so in some cases ie ref1 may only be "456" while it needs to end up as 000456 in character format and to appear in a "new" col k. and similary with ref2 which needs to end as 8 characters long in col L. I believe there is a simply formula that will give me this result and i can then "drag" it down the column length.(I need to change about 6000 records in total) Could somebody help with request please. With thanks I |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
On Tue, 8 Dec 2009 09:55:32 -0800 (PST), Bob
wrote: I have 2 cols "Ref1"(col a) and "Ref2"col b. "Ref1" is up to 6 digits long and "Ref2" is up to 8 digits long. I now need to convert these 2 columns to character. The character field does need to be 6 or 8 digits long, so in some cases ie ref1 may only be "456" while it needs to end up as 000456 in character format and to appear in a "new" col k. and similary with ref2 which needs to end as 8 characters long in col L. I believe there is a simply formula that will give me this result and i can then "drag" it down the column length.(I need to change about 6000 records in total) Could somebody help with request please. With thanks I If you want the results to be text you may try this: In cell K2: =RIGHT("000000"&A2,6) In cell L2: =RIGHT("00000000"&B2,8) Hope this helps / Lars-Åke |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
=TEXT(A1,"000000") in K1
=TEXT(B1, "00000000") in L1 Drag/copy down. Gord Dibben MS Excel MVP On Tue, 8 Dec 2009 09:55:32 -0800 (PST), Bob wrote: I have 2 cols "Ref1"(col a) and "Ref2"col b. "Ref1" is up to 6 digits long and "Ref2" is up to 8 digits long. I now need to convert these 2 columns to character. The character field does need to be 6 or 8 digits long, so in some cases ie ref1 may only be "456" while it needs to end up as 000456 in character format and to appear in a "new" col k. and similary with ref2 which needs to end as 8 characters long in col L. I believe there is a simply formula that will give me this result and i can then "drag" it down the column length.(I need to change about 6000 records in total) Could somebody help with request please. With thanks I |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
TO DELETE ONLY NUMERIC VALUES IN A CHARACTER AND NUMERIC CELL IN | Excel Discussion (Misc queries) | |||
Extract numeric characters plus one character... | Excel Worksheet Functions | |||
Numeric values as character in CSV | Excel Discussion (Misc queries) | |||
how do I convert numeric value to its character value ex. 10=Ten | Excel Worksheet Functions | |||
show character value of a month rather than numeric? | New Users to Excel |