+ Reply to Thread
Results 1 to 11 of 11

How to Extract Text from a custom formatted cell

  1. #1
    Forum Contributor
    Join Date
    06-20-2012
    Location
    India
    MS-Off Ver
    Office 365
    Posts
    359

    How to Extract Text from a custom formatted cell

    Hello,

    I have custom formatted numbers with some special symbols for Quantities like " GMS", "KG", "BOXES", "NUM" Etc., I want to extract the Numbers and Symbols of Quantities into Separate Columns. I could have done this easily using Text to Columns, Left , Right Functions but the Custom Formatting is like a facade The Formula bar is not showing the Text Symbols.

    I am herewith attaching the sheet for reference.


    Thank you.

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: How to Extract Text from a custom formatted cell

    Please try

    Please Login or Register  to view this content.
    Last edited by Bo_Ry; 01-19-2021 at 01:19 PM.

  3. #3
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,516

    Re: How to Extract Text from a custom formatted cell

    UDF
    Use in cell like
    Select C6:D6, enter =GetSplit(B6), confirm with Ctrl + Shift + Enter(Array formula entry)
    Copy down
    Please Login or Register  to view this content.
    Last edited by jindon; 01-19-2021 at 11:37 PM.

  4. #4
    Forum Contributor
    Join Date
    06-20-2012
    Location
    India
    MS-Off Ver
    Office 365
    Posts
    359

    Re: How to Extract Text from a custom formatted cell

    Thank you for the kind support

  5. #5
    Forum Contributor
    Join Date
    06-20-2012
    Location
    India
    MS-Off Ver
    Office 365
    Posts
    359

    Re: How to Extract Text from a custom formatted cell

    Asking out of curosity to learn.

    If I have a set of Numbers and Text symbols in two different columns then ,Can I create Number formating with the Text symbol appearing as a Facade? (i.eText Symbol Not appearing in the formula bar)

    Thank you

  6. #6
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,516

    Re: How to Extract Text from a custom formatted cell

    Display something by the Cell Formatting without any data entered?

    I don't think it is possible.

  7. #7
    Forum Contributor
    Join Date
    06-20-2012
    Location
    India
    MS-Off Ver
    Office 365
    Posts
    359

    Re: How to Extract Text from a custom formatted cell

    Display Numbers (Entered in Cells) along with Text(Not Entered into Cells)

    Just curiosity to Know.

  8. #8
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,516

    Re: How to Extract Text from a custom formatted cell

    You mean enter number in col.A?

    Formula in col.B
    =IF(COUNT(A1),"kg","")
    ?

  9. #9
    Forum Contributor
    Join Date
    06-20-2012
    Location
    India
    MS-Off Ver
    Office 365
    Posts
    359

    Re: How to Extract Text from a custom formatted cell

    No. I meant the Original Values as appearing in the uploaded sheet.

    Exactly opposite of what your code did.

  10. #10
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,811

    Re: How to Extract Text from a custom formatted cell

    If I understand what you want to do (use a cell value as part of a custom number format code), Excel itself does not have a way to do this. You can write a simple VBA procedure (associated with a suitable worksheet event, if desired) that will (step 1) read the desired text from a cell and (step 2) build the custom number format code from that text and (step 3) assign that number format code to the desired cell. Something like
    Please Login or Register  to view this content.
    I would add that I used to do this kind of thing when I first started using spreadsheets, but I quickly moved away from this practice. I found that when what I saw in the cell was too different from what the actual cell value was, that it created more confusion for me. Now, I much prefer to have value and unit text in different cells, and avoid combining them into single cell text strings or add unit text via number formatting. You decide if you like this approach, but I found that I did not like this way of doing things.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  11. #11
    Forum Contributor
    Join Date
    06-20-2012
    Location
    India
    MS-Off Ver
    Office 365
    Posts
    359

    Re: How to Extract Text from a custom formatted cell

    Thank you for the support.

+ 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. How to copy custom number formatted Cell?
    By Sultix in forum Excel General
    Replies: 14
    Last Post: 06-17-2023, 10:43 AM
  2. [SOLVED] Extract Text and Numbers from Custom Type Cell
    By KMVKMVKMV in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-09-2017, 03:10 AM
  3. Extract value from formatted cell
    By Zookopf in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-02-2015, 07:59 AM
  4. Replies: 8
    Last Post: 05-03-2014, 12:49 AM
  5. Interrogate value of "text" in custom formatted cell
    By margalo in forum Excel General
    Replies: 0
    Last Post: 10-16-2012, 12:25 PM
  6. Extract data from formatted text file
    By ahartman in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-12-2010, 12:53 PM
  7. Converting 'General' formatted cells to Text formatted cell using.
    By Zahid Khan in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-12-2005, 04:06 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