+ Reply to Thread
Results 1 to 9 of 9

#Value

  1. #1
    Registered User
    Join Date
    02-19-2008
    Posts
    52

    #Value

    Why is this giving me an error? C8 is blank and E8 has a 0 in it.

    =IF(SUBSTITUTE(E8,",",".")-SUBSTITUTE(C8,",",".")<>0,SUBSTITUTE(E8,",",".")-SUBSTITUTE(C8,",","."),"0")

    Note that E8-C8 normally produces 0, all I'm doing is trying to automagically adapt the euro , into the american .
    Last edited by Luminary Xion; 03-11-2008 at 05:48 PM.

  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
    Excel can't calculate"0" - ""

  3. #3
    Registered User
    Join Date
    02-19-2008
    Posts
    52
    Then why does it work fine as E8-C8? that's still "0" - "" isn't it?



    Note that "=SUBSTITUTE(E8,",",".")-SUBSTITUTE(C8,",",".")" doesn't work either.

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Not sure why you need the IF. Try

    =SUBSTITUTE(0&E8,",",".")-SUBSTITUTE(0&C8,",",".")

  5. #5
    Registered User
    Join Date
    02-19-2008
    Posts
    52
    Smarty! That fixed it, thanks.

  6. #6
    Registered User
    Join Date
    02-19-2008
    Posts
    52
    Okay, how can I do the same thing in the middle of this equation?
    =SUM(OtherTab!C3:I3)

    I need to substitute to change any , to . on C3:I3 for the math to work. Advice?

  7. #7
    Registered User
    Join Date
    02-19-2008
    Posts
    52

    Question substitute in sum on range

    Any clues? Is this possible?

  8. #8
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    You can do that in a similar way, try

    =SUMPRODUCT(SUBSTITUTE(0&OtherTab!C3:I3,",",".")+0)

  9. #9
    Registered User
    Join Date
    02-19-2008
    Posts
    52

    Talking

    Thanks muchness! That works like a charm.

+ 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