+ Reply to Thread
Results 1 to 8 of 8

Why is it not a number???

  1. #1
    Registered User
    Join Date
    07-24-2009
    Location
    Constanta
    MS-Off Ver
    Excel 2010
    Posts
    62

    Why is it not a number???

    Hi,
    I am using SUBSTITUTE to get only the number from a cell. What am I doing wrong? Please check the attach!

    Thank you!
    Attached Files Attached Files
    Last edited by magicool; 02-17-2010 at 11:10 AM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,136

    Re: Why is it not a number???

    Here, try this:

    =--SUBSTITUTE(SUBSTITUTE(LEFT(A1,FIND(" ",A1)-1),".","");",",".")


    Also: what's your number delimiter?

    For me this formula will give error because =--79.64 is not number to me.
    If you have same settings you'll get error too.

    In that case
    =--LEFT(A1;FIND(" ";A1)-1)

    is enough to get your prices out
    Never use Merged Cells in Excel

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

    Re: Why is it not a number???

    there are char(160) in there if you do len(c1) youll see that its 8 char long
    =--SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE((A2),".",""),",","."),"EUR",""),CHAR(160),"")
    Last edited by martindwilson; 02-17-2010 at 10:50 AM.
    "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

  4. #4
    Registered User
    Join Date
    07-24-2009
    Location
    Constanta
    MS-Off Ver
    Excel 2010
    Posts
    62

    Re: Why is it not a number???

    Thank You! It works!!!
    Is it possible to include the SUM in this formula? (so I will not add another column and get the total directly in A23)

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

    Re: Why is it not a number???

    i hope you used the revise function above as i forgot to replace the .

  6. #6
    Registered User
    Join Date
    07-24-2009
    Location
    Constanta
    MS-Off Ver
    Excel 2010
    Posts
    62

    Re: Why is it not a number???

    Sure. I noticed

    In this case is it possible to add =SUM(SUMIF(A1:A2000,{"<0",">0"})) to the formula?
    Last edited by magicool; 02-17-2010 at 11:00 AM.

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

    Re: Why is it not a number???

    as i said in your other post clean up the data first
    in this instance data/text to columns select fixed width
    click next
    click just to the left of eur to insert a break
    click next
    click where it says general just above EUR
    check the do not import column(skip button)
    then find replace comma with period
    and whats this
    =SUM(SUMIF(A1:A2000,{"<0",">0"})) supposed to be doing?
    Last edited by martindwilson; 02-17-2010 at 11:08 AM.

  8. #8
    Registered User
    Join Date
    07-24-2009
    Location
    Constanta
    MS-Off Ver
    Excel 2010
    Posts
    62

    Re: Why is it not a number???

    All solved. Thank You!

+ 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