+ Reply to Thread
Results 1 to 6 of 6

Wanted: A Formula to alter the way a cell's contents are displayed

  1. #1
    Registered User
    Join Date
    07-24-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2010
    Posts
    13

    Wanted: A Formula to alter the way a cell's contents are displayed

    I was given a file with thousands of records. In one of the columns, the information in each cell has to be presented differently to the viewer. A single formula needs to be written that will change the existing contents of a cell to look like a list (ie. each item within the cell is followed by ALT + Enter so they line up one under the other). Note that each cell has several items within it and they’re separated by the # symbol and a few random numbers. Any of these extra characters that separate the items need to be removed as well.

    I don’t want a macro as I’m only learning more complex formulas at this time and don’t want to get into macros yet. Attached is a sample as well as what the outcome should look like. Any suggestions would be very welcome!
    Attached Files Attached Files
    Last edited by rbion; 04-16-2013 at 08:52 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    11-20-2012
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2010
    Posts
    597

    Re: Wanted: A Formula to alter the way a cell's contents are displayed

    i think you're out of luck if you don't want to use VBA because there is no way that I know of to replace characters with alt+enter

  3. #3
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Wanted: A Formula to alter the way a cell's contents are displayed

    This will get you started (mind you it's quite a task your asking)

    Highlight column A
    Press CTRL + F
    Select the Replace Tab
    In the Find What box, put #*#
    In the Repalce with box, Hold down the ALT Key and type 010 then relase ALT
    Click Replace All

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Wanted: A Formula to alter the way a cell's contents are displayed

    I think Jonmo's technique will work but only on a traditional keyboard with a keypad to the right. I've never gotten it to work on a laptop keyboard. Correct me if I am wrong, Jonmo.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  5. #5
    Registered User
    Join Date
    07-24-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Wanted: A Formula to alter the way a cell's contents are displayed

    Thank you all - I was able to try it on both a standard keyboard and a laptop (just to see the difference) and now that the most difficult part of my problem has been resolved, I can complete the rest of the task. I've also learned about non-printing characters such as a line break aka ALT + 010 - I didn't even realize that was the issue.
    Last edited by rbion; 04-16-2013 at 08:56 PM. Reason: Updated Information

  6. #6
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Wanted: A Formula to alter the way a cell's contents are displayed

    Quote Originally Posted by ChemistB View Post
    I think Jonmo's technique will work but only on a traditional keyboard with a keypad to the right. I've never gotten it to work on a laptop keyboard. Correct me if I am wrong, Jonmo.
    Good point, I think you're right.
    I've never tried it on a laptop, but I know it works only on the keypad to right on standard keyboard. Not with the numbers on top of keyboard.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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