+ Reply to Thread
Results 1 to 4 of 4

IF Statements using BUT - is there such a thing

  1. #1
    Registered User
    Join Date
    07-20-2006
    Posts
    4

    IF Statements using BUT - is there such a thing

    I am trying to use an IF statement involving two arguments - IF Cell XX is = "blank" then bring back the SUM of Cells XX-XX BUT IF Cell XX [this is the same cell as the first reference] is = "non blank" then bring back the SUM of Cells YY-YY. Is this possible? If so how would I do this?

    Thank you

  2. #2
    Trevor Shuttleworth
    Guest

    Re: IF Statements using BUT - is there such a thing

    Well, cell XX is either blank or it's not, so:

    =IF(XX="",SUM(YY:YY),SUM(ZZ:ZZ))

    Regards

    Trevor


    "esulpher" <[email protected]> wrote in
    message news:[email protected]...
    >
    > I am trying to use an IF statement involving two arguments - IF Cell XX
    > is = "blank" then bring back the SUM of Cells XX-XX BUT IF Cell XX
    > [this is the same cell as the first reference] is = "non blank" then
    > bring back the SUM of Cells YY-YY. Is this possible? If so how would
    > I do this?
    >
    > Thank you
    >
    >
    > --
    > esulpher
    > ------------------------------------------------------------------------
    > esulpher's Profile:
    > http://www.excelforum.com/member.php...o&userid=36606
    > View this thread: http://www.excelforum.com/showthread...hreadid=563477
    >




  3. #3
    CarlosAntenna
    Guest

    Re: IF Statements using BUT - is there such a thing

    Cell XX can only assume two values, "blank" or "non blank" therefore you
    only need to test for one condition.

    =IF(XX="",SUM(XX:XX),SUM(YY:YY))

    --
    Carlos

    "esulpher" <[email protected]> wrote in
    message news:[email protected]...
    >
    > I am trying to use an IF statement involving two arguments - IF Cell XX
    > is = "blank" then bring back the SUM of Cells XX-XX BUT IF Cell XX
    > [this is the same cell as the first reference] is = "non blank" then
    > bring back the SUM of Cells YY-YY. Is this possible? If so how would
    > I do this?
    >
    > Thank you
    >
    >
    > --
    > esulpher
    > ------------------------------------------------------------------------
    > esulpher's Profile:

    http://www.excelforum.com/member.php...o&userid=36606
    > View this thread: http://www.excelforum.com/showthread...hreadid=563477
    >




  4. #4
    Registered User
    Join Date
    07-20-2006
    Posts
    4
    Thank you Trevor and Carlos. That does make sense....I've been at this worksheet for days and I'm starting to redo what I've already redone...yikes!

    Cheers...E

+ 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