+ Reply to Thread
Results 1 to 4 of 4

Help fix my IF formula or recommend a better formula method please!

  1. #1
    Registered User
    Join Date
    02-11-2013
    Location
    Monterey Bay, California
    MS-Off Ver
    Excel 2010
    Posts
    4

    Help fix my IF formula or recommend a better formula method please!

    I have a travel claim that may not always have value's in cells I basicly want this formula to =N56-M16 if greater than 0 and M15 is 0 OR =N56-M15 if greater than 0 and M16 is 0 or N56-M16-M16 if all greater than 0 and if M15 & M16 =0 then =IF(N56>0,N56,""). I know that last one works by it self but this was too complicated for me to figure out and this is what I tried. =IF(M15=0,0,(N56-M16)),IF(M16=0,0,(N56-M15)), IF(M15=0,0,M16=0,0,N56)
    I have considered putting the possible equation outcomes in another cell but still don't know how I can explain in the fomula how to reference them. I have uploaded the file because I for one find it easier! :o) thank you!

    PS I think I can get my same results with these cells If N30=0,N4, If N30<0, N4-M16 because N4 has the amount due but includes the total from N30 which on the account summary I have to have a separate line item. But I still am not sure where the () go.
    Attached Files Attached Files
    Last edited by Jhubbard; 04-10-2013 at 02:29 PM. Reason: another way

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Help fix my IF formula or recommend a better formula method please!

    Jhubbard,

    Welcome to the forum!
    Based on your description, I think this is the formula you're looking for:
    Please Login or Register  to view this content.
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    02-11-2013
    Location
    Monterey Bay, California
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Help fix my IF formula or recommend a better formula method please!

    =IF(N56>0,IF(AND(M15=0,M16=0),N56,IF(M15=0,N56-M16,N56-M15)),"") the first part solved the first scenario I needed to address, if M15 & M16 are 0 then display N56. But the second didn't do what I needed for the rest so let me explain it this way 2. If M15<0,N56-M15,N56 3. If M16<0,N56-M16,N56 4. NOW the hard one if M15 and M16 <0 subtract them both. I can't believe I have been working on this all freaking day LOL!

  4. #4
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Help fix my IF formula or recommend a better formula method please!

    This is exactly what you just described:
    =IF(N56>0,IF(AND(M15=0,M16=0),N56,IF(AND(M15<0,M16<0),N56-M15-M16,IF(M15<0,N56-M16,N56-M15))),"")

    If that is still not working for you, please provide some sample data with expected results.

+ 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