+ Reply to Thread
Results 1 to 14 of 14

Separate text from one cell into multiple cells and convert them into decimals

  1. #1
    Registered User
    Join Date
    10-16-2012
    Location
    West Mifflin, PA
    MS-Off Ver
    Excel 2010
    Posts
    12

    Separate text from one cell into multiple cells and convert them into decimals

    I'm currently taking data from BlueBeam and exporting it into excel. One of my columns is a steel shape column (i.e. W14x730, L3x3x3/8, PL1 1/2"x5", etc.). I am trying to get an IF statement that will only pull information from shapes that are plates (PL). Once the column recognizes the correct shape I need to pull the thickness (1 1/2") and the width (5") into two separate columns and have them calculate into decimals. It sounds like the formula will be pretty involved but I just cant get it to work. Please see example below:


    A B C
    1 W14x730 - -
    2 L3x3x3/8 - -
    3 PL1 1/2"x5" 1.5 5
    4 PL1/2"x4 1/2" 0.5 4.5
    5 PL2 1/2"x23" 2.5 23

  2. #2
    Registered User
    Join Date
    10-16-2012
    Location
    West Mifflin, PA
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Separate text from one cell into multiple cells and convert them into decimals

    Sorry - My example didn't hold the spaces. Hopefully this helps.

    ____A__________B____________C
    1 W14x730_______-____________-
    2 L3x3x3/8_______-____________-
    3 PL1 1/2"x5"____1.5___________5
    4 PL1/2"x4 1/2"___0.5__________4.5
    5 PL2 1/2"x23"___2.5__________23

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Separate text from one cell into multiple cells and convert them into decimals

    Please post this as a sample spreadsheet. Also, please check that No 4 is correct....

    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  4. #4
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Separate text from one cell into multiple cells and convert them into decimals

    You have only shared 5 examples (only 3 of which need to return anything). The following formulas work for your examples but will need to be added to if, for example, fractions other than 1/2 are used.

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    10-16-2012
    Location
    West Mifflin, PA
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Separate text from one cell into multiple cells and convert them into decimals

    I attached a more detailed example of the shapes I will be looking at. The dimensions will always be different so the formula will need to account for that. The BlueBeam export I provided is only one table of thousands I need to evaluate. That is why I'm looking for a formula to pull this information out of the shape description.
    Attached Files Attached Files

  6. #6
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Separate text from one cell into multiple cells and convert them into decimals

    These should work.

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    See attachment.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    10-16-2012
    Location
    West Mifflin, PA
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Separate text from one cell into multiple cells and convert them into decimals

    Yes, those formulas are working great for me! Thank you very much, I really appreciate your help!

  8. #8
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Separate text from one cell into multiple cells and convert them into decimals

    Happy to help. Thanks for the rep!

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  9. #9
    Forum Contributor
    Join Date
    10-30-2003
    Location
    Singapore
    MS-Off Ver
    Excel 2019
    Posts
    197

    Re: Separate text from one cell into multiple cells and convert them into decimals

    Or……….

    1] In B2, copied down :

    =IF(LEFT($A2,2)="PL",--(IF(MID($A2,4,1)=" ",0,"0 ")&MID($A2,3,FIND("X",$A2)-4)),"")

    2] In C2, copied down :

    =IF(LEFT($A2,2)="PL",--MID($A2,FIND("X",$A2)+1,LEN($A2)-FIND("X",$A2)-1),"")

    Regards
    Bosco

  10. #10
    Registered User
    Join Date
    10-16-2012
    Location
    West Mifflin, PA
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Separate text from one cell into multiple cells and convert them into decimals

    Actually I tried using the formula on the plate shape PL2"X6" and the formula won't work... Is there a reason for that?

  11. #11
    Registered User
    Join Date
    10-16-2012
    Location
    West Mifflin, PA
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Separate text from one cell into multiple cells and convert them into decimals

    Bosco - Thank you for your reply. I put your formula in too and it also works. The odd thing is is Falcondude's works for certain one and yours works for others. Is there a way to fix this?
    Attached Files Attached Files

  12. #12
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Separate text from one cell into multiple cells and convert them into decimals

    These work in your sample from post #11:

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

  13. #13
    Forum Contributor
    Join Date
    10-30-2003
    Location
    Singapore
    MS-Off Ver
    Excel 2019
    Posts
    197

    Re: Separate text from one cell into multiple cells and convert them into decimals

    Just a bit adjusted……….

    1] In B2, copied down :

    =IF(LEFT($A2,2)="PL",--(IF(MID($A2,4,1)="/","0 ",0)&MID($A2,3,FIND("X",$A2)-4)),"")

    1] In C2, copied down (unchanged):

    =IF(LEFT($A2,2)="PL",--MID($A2,FIND("X",$A2)+1,LEN($A2)-FIND("X",$A2)-1),"")

    Regards
    Bosco

  14. #14
    Registered User
    Join Date
    10-16-2012
    Location
    West Mifflin, PA
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Separate text from one cell into multiple cells and convert them into decimals

    Thank you both for all of your help! Everything seems to be working correctly now. Again, I 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] Separate Text in one cell into 3 separate cells
    By Kathleen N in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 05-30-2018, 04:43 PM
  2. [SOLVED] Extracting Multiple Number Values from Text cells into separate cells
    By skydoc in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 09-14-2016, 10:14 AM
  3. [SOLVED] Convert Numeric values with decimals to text
    By kjxavier in forum Excel General
    Replies: 1
    Last Post: 07-14-2014, 06:37 AM
  4. Replies: 6
    Last Post: 11-29-2013, 10:52 PM
  5. Search cell for multiple text , return comma separated text in separate cell if found
    By dangerdoug in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-01-2013, 01:52 PM
  6. Using Text to Columns on multiple but separate cells
    By rosef in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 11-25-2009, 03:02 PM
  7. convert text to data with decimals
    By Ulf in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-20-2005, 10:06 AM

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