Display cells with text or numbers, with a space every 4 digits for easy reading, and differenciate number and letters

ob2ob2

New Member
Joined
Aug 18, 2015
Messages
2
Hi Mr. Excel,

I have a columns of text and numbers, for about 20 digits long, as "Part numbers" of products. To avoid the operator error and to improve readability, is it possible to add a space every 4 digits, while retaining the original value of the cell, for the copy and paste purpose?

I couldn't find how to do it in the cell formatting settings, is there a way to do it without VBA?

Also, operators often make mistakes between "0" (zero) and "O" (Upper or lower case of the letter O), "1" (One) and "l" (Lower case of the letter L). Is there a way to display the numbers and letters differently (maybe different colour?), while retaining the cell's original value (for copy and paste), without using VBA?

Many thanks...
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
with the 20 digits in A1, try this

=MID($A$1,1,4)&" "&MID($A$1,5,4)&" "&MID($A$1,9,4)&" "&MID($A$1,13,4)&" "&MID($A$1,17,4)
 
Upvote 0
Or this :

=REPLACE(REPLACE(REPLACE(REPLACE(A1,17,0," "),13,0," "),9,0," "),5,0," ")
 
Upvote 0
Thank you both. These will work as a separate column. When the operator looks at this column (with space inserted every 4 digits), if the user hit Ctrl-C to copy, it will copy the value with the space together. However, if there is a solution that when the user hit Ctrl-C, the original value (without space inserted) can be copied, that will be excellent.

If I right-click on the cell(s) and choose "Format Cells", in the Number tab, go to Custom..., those are all formatting related to numbers, dates...etc. Is there a way to do this formatting there? What symbol can be used to representing a text digit?

Many thanks again!
 
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,219
Members
452,619
Latest member
Shiv1198

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top