+ Reply to Thread
Results 1 to 6 of 6

Is it possible to make 0 count as 10 when subtractring another cell from it?

  1. #1
    Forum Contributor
    Join Date
    08-07-2012
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    202

    Is it possible to make 0 count as 10 when subtractring another cell from it?

    Let's say i have a 0 in H14, 8 in H13. I know how to make H15 add the two to make 8 again, but for H12 i need it to be 2. 10-8=2. Is that possible to do? I have tried many variations with this and can't get it to work.
    If it is possible, how would i incorporate it into this formula? =IF(M5>N5,M5-N5,IF(N5>M5,N5-M5,IF(M5=N5,0)))

    Or is that possible?

    Thanks guys, again!!! You are all the best!!!

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Is it possible to make 0 count as 10 when subtractring another cell from it?

    maybe..

    =10-ABS(H13-H14)
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Is it possible to make 0 count as 10 when subtractring another cell from it?

    or :
    =IF(H14=0,10-H13,your formula for H14<>0)
    A picture may be worth a thousand words, BUT, a sample Workbook is worth a thousand screenshots!
    -Add a File - click advanced (next to quick post), scroll to manage attachments, click, select add files, click select files, select file, click upload, when file shows up at bottom left, click done (bottom right), click submit
    -To mark thread Solved- go top of thread,click Thread Tools,click Mark as Solved
    If you received helpful response, please remember to hit the * of that post

  4. #4
    Forum Contributor
    Join Date
    08-07-2012
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    202

    Re: Is it possible to make 0 count as 10 when subtractring another cell from it?

    Quote Originally Posted by dredwolf View Post
    or :
    =IF(H14=0,10-H13,your formula for H14<>0)

    That got it dredwolf. Thank you again for your help!!! Works like a charm. I added my formula to the end just like you said. About to get this thing done i hope. Got a few more things to get figured out and finito.

    Thank you so much!!! And all the others that have helped me out!!!

  5. #5
    Forum Contributor
    Join Date
    08-07-2012
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    202

    Re: Is it possible to make 0 count as 10 when subtractring another cell from it?

    Quote Originally Posted by Ace_XL View Post
    maybe..

    =10-ABS(H13-H14)
    Thank you very much for the relpy and help Ace_XL. I didn't know how to incorporate it in with what i had. That's me still learning this stuff.
    I do appreciate it very much!!!

  6. #6
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Is it possible to make 0 count as 10 when subtractring another cell from it?

    You are very welcome

    Please remember to mark the thread as solved if you are satisfied with your solution :
    To mark thread "Solved", go to the top of the thread,click "Thread Tools",click "Mark as Solved"

+ 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