+ Reply to Thread
Results 1 to 2 of 2

Trying to make multiple formula cell

  1. #1

    Trying to make multiple formula cell

    I have 4 cells, A3,B3,C3, and D3.

    =IF(OR(A3="",B3="",C3=""),"",A3+B3+C3) (for when D3 is absent)
    =IF(OR(A3="",C3="",D3=""),"",A3-C3-D3) (for when B3 is absent)

    How can I combine these two formulas into one cell?

    Like if I did not put a value for B3, but did put a value for D3, the
    second formula's answer would come out and if I did put a value for B3
    and not for D3, the first formula's answer would pop out of the same
    cell.

    Help~


  2. #2
    Arvi Laanemets
    Guest

    Re: Trying to make multiple formula cell

    Hi

    =IF(AND(B3<>"",D3=""),SUM(A3:C3),IF(B3="",D3<>"",SUM(A3,-(C3:D3)),""))


    --
    Arvi Laanemets
    ( My real mail address: arvil<at>tarkon.ee )


    <[email protected]> wrote in message
    news:[email protected]...
    >I have 4 cells, A3,B3,C3, and D3.
    >
    > =IF(OR(A3="",B3="",C3=""),"",A3+B3+C3) (for when D3 is absent)
    > =IF(OR(A3="",C3="",D3=""),"",A3-C3-D3) (for when B3 is absent)
    >
    > How can I combine these two formulas into one cell?
    >
    > Like if I did not put a value for B3, but did put a value for D3, the
    > second formula's answer would come out and if I did put a value for B3
    > and not for D3, the first formula's answer would pop out of the same
    > cell.
    >
    > Help~
    >




+ 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