+ Reply to Thread
Results 1 to 5 of 5

If formula- what I have so

  1. #1
    dualshock
    Guest

    If formula- what I have so

    I am stuck trying to figure out a formula to use for my calculation. I'll try
    to explain it the best I can.
    Here is what I have so far: =if(F34=0,L34+F35,L35-F35). This formula works
    just fine but I need to add another 'if' formula that has: if L34=0 and F34=0
    then use F35-L35.
    I just started doing formulas yesterday so sorry if this one is really
    simple and I'm just overlooking something.

  2. #2

    re: If formula- what I have so

    dualshock wrote:
    > I am stuck trying to figure out a formula to use for my calculation. I'll try
    > to explain it the best I can.
    > Here is what I have so far: =if(F34=0,L34+F35,L35-F35). This formula works
    > just fine but I need to add another 'if' formula that has: if L34=0 and F34=0
    > then use F35-L35.


    There are many ways to do anything. One way to accomplish what you
    seem to want is:

    =if(F34=0, if(L34=0, F35-L35, L34+F35), L35-F35)

    PS: Should "L34+F35" [sic] be L35+F35?


  3. #3
    Forum Contributor
    Join Date
    01-06-2004
    Location
    Carbondale CO
    Posts
    245
    Try:

    IF(AND(L34=0,F34=0),F35-L35, IF(F34=0,L34+F35,L35-F35)).

    HTH
    Casey

  4. #4
    Sloth
    Guest

    re: If formula- what I have so

    =if(F34=0,IF(L34=0,-L35,L34)+F35,L35-F35)


    "dualshock" wrote:

    > I am stuck trying to figure out a formula to use for my calculation. I'll try
    > to explain it the best I can.
    > Here is what I have so far: =if(F34=0,L34+F35,L35-F35). This formula works
    > just fine but I need to add another 'if' formula that has: if L34=0 and F34=0
    > then use F35-L35.
    > I just started doing formulas yesterday so sorry if this one is really
    > simple and I'm just overlooking something.


  5. #5
    dualshock
    Guest

    re: If formula- what I have so

    Thank you! This is exactly what I was trying to get.

    "Casey" wrote:

    >
    > Try:
    >
    > IF(AND(L34=0,F34=0),F35-L35, IF(F34=0,L34+F35,L35-F35)).
    >
    > HTH
    >
    >
    > --
    > Casey
    >
    >
    > ------------------------------------------------------------------------
    > Casey's Profile: http://www.excelforum.com/member.php...fo&userid=4545
    > View this thread: http://www.excelforum.com/showthread...hreadid=559402
    >
    >


+ 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