+ Reply to Thread
Results 1 to 20 of 20

I am trying to combine four possible scenarios to get one of two possible results

  1. #1
    Registered User
    Join Date
    01-29-2015
    Location
    USA
    MS-Off Ver
    MS OFiice 2013
    Posts
    7

    I am trying to combine four possible scenarios to get one of two possible results

    I have the following which I am trying to combine into one cell:

    If D3>0 and J3>0, "no change"
    If D3=0 and J3=0, "no change"
    If D3>0 and J3=0, "change"
    If D3=0 and J3>0, "change"

    In other words, I have four possbile scenarios with either change or no change being the answer. Hope that makes sense. Any help would be greatly appreciated.

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: I am trying to combine four possible scenarios to get one of two possible results

    would this work for you ...=IF(AND(D3>=0,J3>=0),"no change","change")

    EDIT: never mind, needs rewritten.
    Last edited by Sam Capricci; 01-29-2015 at 04:37 PM.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,464

    Re: I am trying to combine four possible scenarios to get one of two possible results

    Formula: copy to clipboard
    Please Login or Register  to view this content.



    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: I am trying to combine four possible scenarios to get one of two possible results

    Can you elaborate a little more...

    If either cell is >0, could it be ANY number, like 5, or 30072 or 1 ??
    Or are they basically 1 or 0 choices?
    Will they both be the same number if they're >0 ?

    And is to true to say that niether cell will ever be anything other than either 0 or >0? It will never be a negative number, or a text string, or blank?
    If they might be blank, should the blank be considered the same as 0 ?


    Perhaps you could post a sample book with your expected results.?

    Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  5. #5
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: I am trying to combine four possible scenarios to get one of two possible results

    ok, this should work for you, though I think there is a more efficient way to write it...
    =IF(AND(D3>0,J3>0),"no change",IF(AND(D3=0,J3=0),"no change",IF(AND(D3>0,J3=0),"change",IF(AND(D3=0,J3>0),"change"))))

  6. #6
    Registered User
    Join Date
    01-29-2015
    Location
    USA
    MS-Off Ver
    MS OFiice 2013
    Posts
    7

    Re: I am trying to combine four possible scenarios to get one of two possible results

    . . . . . . . . . . . . . .

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,464

    Re: I am trying to combine four possible scenarios to get one of two possible results

    @Sambo kid: you could use OR to combine some of the options. Depending on what values the cells can take, your code could return FALSE ... if for example, one of the values was negative.

  8. #8
    Registered User
    Join Date
    01-29-2015
    Location
    USA
    MS-Off Ver
    MS OFiice 2013
    Posts
    7

    Re: I am trying to combine four possible scenarios to get one of two possible results

    This did work, thank you very much.

    ok, this should work for you, though I think there is a more efficient way to write it...
    =IF(AND(D3>0,J3>0),"no change",IF(AND(D3=0,J3=0),"no change",IF(AND(D3>0,J3=0),"change",IF(AND(D3=0,J3>0),"change"))))

  9. #9
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,464

    Re: I am trying to combine four possible scenarios to get one of two possible results

    Qu'est-ce que
    . . . . . . . . . . . . . .

  10. #10
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,464

    Re: I am trying to combine four possible scenarios to get one of two possible results

    And my response in post #3?

  11. #11
    Registered User
    Join Date
    01-29-2015
    Location
    USA
    MS-Off Ver
    MS OFiice 2013
    Posts
    7

    Re: I am trying to combine four possible scenarios to get one of two possible results

    TMS, yours worked as well, thank you:

    =IF(OR(AND(D3>0, J3>0),AND(D3=0, J3=0)), "no change",IF(OR(AND(D3>0, J3=0),AND(D3=0, J3>0)), "change","not specified"))

  12. #12
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: I am trying to combine four possible scenarios to get one of two possible results

    there may be a far simpler solution, pending the answers to questions in post #4

  13. #13
    Registered User
    Join Date
    01-29-2015
    Location
    USA
    MS-Off Ver
    MS OFiice 2013
    Posts
    7

    Re: I am trying to combine four possible scenarios to get one of two possible results

    jonmo1:

    either cell could be any number greater than zero and they could also potentially be the same number. basically, i just want to the result to look at the two cells in question and determine if they were same or different. same = anything greater than zero or both zero. different = one zero, the other a number greater than zero.

  14. #14
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,464

    Re: I am trying to combine four possible scenarios to get one of two possible results

    Actually, if you have two positive but different numbers, it will return "no change". Therefore it IS important to understand what values may be presented.

    The first criterion causes this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    which is met by, say 4 and 5 ... no change

    Regards, TMS

  15. #15
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: I am trying to combine four possible scenarios to get one of two possible results

    Try

    =IF((D3>0)+(J3>0)=1,"Change","No Change")

  16. #16
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,464

    Re: I am trying to combine four possible scenarios to get one of two possible results

    Good but probably needs to be:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Edit, actually, no ... 5 and 5

  17. #17
    Registered User
    Join Date
    01-29-2015
    Location
    USA
    MS-Off Ver
    MS OFiice 2013
    Posts
    7

    Re: I am trying to combine four possible scenarios to get one of two possible results

    Jonmo1: that indeed works, you definitely win for simplicity.

  18. #18
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,464

    Re: I am trying to combine four possible scenarios to get one of two possible results

    Why not just
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  19. #19
    Registered User
    Join Date
    01-29-2015
    Location
    USA
    MS-Off Ver
    MS OFiice 2013
    Posts
    7

    Re: I am trying to combine four possible scenarios to get one of two possible results

    because while one cell could = 5, the other could = 6. Those don't equal but for my purposes, they are "no change" since > 1.

  20. #20
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,464

    Re: I am trying to combine four possible scenarios to get one of two possible results

    ok, so we understand

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. formula to combine like cell and results
    By bacardi510 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-07-2014, 07:18 PM
  2. Combine Value of 5 Cells and List Results
    By Andrew.Trevayne in forum Excel General
    Replies: 3
    Last Post: 06-29-2011, 08:30 AM
  3. Formula to combine 2 results
    By ssdsibes in forum Excel General
    Replies: 6
    Last Post: 11-17-2010, 06:49 PM
  4. Combine Coinciding Results.
    By zealot in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-22-2009, 07:51 PM
  5. consolidating the results of multiple scenarios
    By name in forum Excel General
    Replies: 1
    Last Post: 10-02-2006, 06:20 AM

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