+ Reply to Thread
Results 1 to 9 of 9

Take input from one cell, and format text in a specific way?

  1. #1
    Registered User
    Join Date
    02-17-2015
    Location
    Ontario, Canada
    MS-Off Ver
    2013
    Posts
    26

    Question Take input from one cell, and format text in a specific way?

    Not really sure how to ask this exactly, but I have measurements in one format, and I want to paste them into Excel and have Excel automatically re-format them in a specific way.

    Example:

    Text I am copying into Excel = 37.4 in [950 mm]
    What I want Excel to output in the column beside it = 37.4" (95 cm)

    Is this even possible?

    Thanks!

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,885

    Re: Take input from one cell, and format text in a specific way?

    If it's always going to be inches and [ mm] yes it is possible.

    If there are other patterns... not so easy.

    I'd recommend you upload sample workbook with different patterns possible and expected output for each. So we can help construct logic.
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

  3. #3
    Registered User
    Join Date
    02-17-2015
    Location
    Ontario, Canada
    MS-Off Ver
    2013
    Posts
    26

    Re: Take input from one cell, and format text in a specific way?

    Hi CK76 - It will always be in that format. I am copying and pasting from a web page and it will alwasy look like that and I will alwasy want the output in the way I listed above. Thanks!

  4. #4
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,885

    Re: Take input from one cell, and format text in a specific way?

    Try something like below then.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    02-17-2015
    Location
    Ontario, Canada
    MS-Off Ver
    2013
    Posts
    26

    Re: Take input from one cell, and format text in a specific way?

    Great! Thank yo u very much. Works perfectly!

  6. #6
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,885

    Re: Take input from one cell, and format text in a specific way?

    You are welcome

    If this solved your issue, please mark the thread as solved by using thread tools found at top of your initial post.

  7. #7
    Registered User
    Join Date
    02-17-2015
    Location
    Ontario, Canada
    MS-Off Ver
    2013
    Posts
    26

    Re: Take input from one cell, and format text in a specific way?

    I will mark it solved! but just thought of another question along the same lines. Is there a way to take the attached file amd make the data output similar to how it is in ROW 1?

    Note that in some cases there will not be a value in one or more of the columns so in those cases, an NA or leaving it blank is fine.

    Thanks!!

    (not sure if I uploaded the file correctly or not, so here is a link. https://1drv.ms/x/s!Ahwwhv7HNLano5B_gTen46bg6NnY7Q
    Attached Files Attached Files

  8. #8
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,885

    Re: Take input from one cell, and format text in a specific way?

    Something like below.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    02-17-2015
    Location
    Ontario, Canada
    MS-Off Ver
    2013
    Posts
    26

    Re: Take input from one cell, and format text in a specific way?

    Thanks, again CK76 - This worked wonders for what I need it for. Greatly appreciate it!

+ 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. [SOLVED] UDF that extracts specific text from cell based on user input string
    By Tunesmith in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-04-2018, 10:41 AM
  2. Formula to input data based on cell text content format
    By Daniel-plattmounts in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-09-2018, 10:49 AM
  3. [SOLVED] format color into range of cells based on specific cell input
    By Juli in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 01-01-2018, 10:18 AM
  4. Replies: 1
    Last Post: 04-11-2013, 01:49 PM
  5. [SOLVED] Concatenate & format standard text in cell A1, Sheet1 with strings from two input boxes
    By mandora in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-27-2012, 04:22 AM
  6. Input cell value from one sheet to another if adjacent cell is specific text
    By TheRoni in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-27-2012, 12:49 AM
  7. Replies: 2
    Last Post: 11-24-2009, 12:31 AM

Tags for this Thread

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