+ Reply to Thread
Results 1 to 8 of 8

how to get reply 50 from (20 x 2.5 KGS)

  1. #1
    Forum Contributor
    Join Date
    07-21-2009
    Location
    Kuwait
    MS-Off Ver
    Excel 2019
    Posts
    292

    Thumbs up how to get reply 50 from (20 x 2.5 KGS)

    hi every one...

    I m importing data from one other sheet which is like that "20 x 2.5 kgs"

    I want a formula which give me reply "50" in cell B1...

    thanks for any help in advance


    Cell A1 = 20 x 2.5 kgs

    I want in Cell B1 = 50

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: how to get reply 50 from (20 x 2.5 KGS)

    How about doing text to columns with space as the delimiter, and then multiplying the resulting numeric cells?
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Contributor
    Join Date
    07-21-2009
    Location
    Kuwait
    MS-Off Ver
    Excel 2019
    Posts
    292

    Re: how to get reply 50 from (20 x 2.5 KGS)

    Thanks shg...but is there any formula for that??? cuz some time its like that (no space bewteen 2.5 & Kgs (2.5kgs)...so any suggestion pls?

    Cell A1 = 20 x 2.5kgs
    Cell A1 = 20 x 2.5 kgs

  4. #4
    Forum Contributor
    Join Date
    05-04-2009
    Location
    ME
    MS-Off Ver
    Excel 2003,2007
    Posts
    157

    Re: how to get reply 50 from (20 x 2.5 KGS)

    Try this;

    =LEFT(A1,FIND(" ",A1,1)-1)*(MID(A1,6,3))

    Thanks

  5. #5
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: how to get reply 50 from (20 x 2.5 KGS)

    This is a bit of a mouthfull, but it should cover most variations likely to be incurred
    Please Login or Register  to view this content.
    e.g.
    20 x 2.5kgs
    20 x 2.5 kgs
    20x2.5kgs
    20x 2.5 Kgs
    20 x 2.5 kgs
    21 x 2.5 kgs
    220 x 2.5 KGS
    200.0x 2.5 kgs

    Hope this helps
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: how to get reply 50 from (20 x 2.5 KGS)

    or
    =LEFT(A1,SEARCH("x",A1)-1)*SUBSTITUTE(UPPER(MID(A1,SEARCH("x",A1)+1,20)),"KGS","")
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  7. #7
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: how to get reply 50 from (20 x 2.5 KGS)

    I'll give you that one Martin!

    Must spend a little time more thinking, rather than just charging at things!

  8. #8
    Forum Contributor
    Join Date
    07-21-2009
    Location
    Kuwait
    MS-Off Ver
    Excel 2019
    Posts
    292

    Re: how to get reply 50 from (20 x 2.5 KGS)

    I m sorry, i was on weekend..

    Thanks every one who helped me and spared your costly time for me..

    ..I will try these all formulas and see which one is more suitable for me..hope all will be fine..

    God Bless you all of you and your families..

+ 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