+ Reply to Thread
Results 1 to 6 of 6

Certain way of displaying info in cells

  1. #1
    Registered User
    Join Date
    07-15-2016
    Location
    Belgium
    MS-Off Ver
    2010
    Posts
    4

    Certain way of displaying info in cells

    Hello,

    I work with ocean containers and they all have an ID. The ID exists out of 4 letters and 7 numbers.
    When I copy paste a container number into a cell it is like ABCD123467. I want it to be displayed like this: ABCD 123 456-7
    Is there a way to do this, so I don't have to put the spaces in it myself?

    Thank you in advance

  2. #2
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Certain way of displaying info in cells

    Hi
    Try this approach
    If your data is in A1 use this formula
    =LEFT(A1,4) & TEXT(VALUE(RIGHT(A1,7))," #### ###-#")

  3. #3
    Forum Contributor
    Join Date
    05-06-2016
    Location
    Cluj, Romania
    MS-Off Ver
    2007-2010
    Posts
    220

    Re: Certain way of displaying info in cells

    Or this
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    if you have US Regional seting change ";" with ","

  4. #4
    Registered User
    Join Date
    07-15-2016
    Location
    Belgium
    MS-Off Ver
    2010
    Posts
    4

    Re: Certain way of displaying info in cells

    The data will be copy pasted into the same cell as to where the formula will be.

    I copy the text from another program, and need to put it in excel.
    In the other program it is put as ABCD1234567. In excel (to make it easier to read) I'd like to have it show up as ABCD 123 456-7.
    So if I copy paste the date into cell A1, I want cell A1 to show it as ABCD 123 456-7.

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Certain way of displaying info in cells

    You can't do that: the formulae offered are the only options you have.

  6. #6
    Forum Contributor
    Join Date
    05-06-2016
    Location
    Cluj, Romania
    MS-Off Ver
    2007-2010
    Posts
    220

    Re: Certain way of displaying info in cells

    or you can fix this with a macro while importing data (not copy-paste)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Displaying info across cells with formulas
    By stevemyers in forum Excel General
    Replies: 1
    Last Post: 03-28-2011, 11:39 AM
  2. displaying a list of info
    By Tom in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-30-2005, 01:55 PM
  3. Displaying info in a new tab in excel
    By Niek Otten in forum Excel Formulas & Functions
    Replies: 24
    Last Post: 09-06-2005, 07:05 PM
  4. Displaying info in a new tab in excel
    By Khamul in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 PM
  5. Displaying info in a new tab in excel
    By Khamul in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  6. [SOLVED] Displaying info in a new tab in excel
    By Khamul in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  7. [SOLVED] Displaying info in a new tab in excel
    By Khamul in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  8. [SOLVED] Displaying info in a new tab in excel
    By Khamul in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1