+ Reply to Thread
Results 1 to 10 of 10

four input single output logic problem

  1. #1
    Forum Contributor
    Join Date
    03-21-2004
    Location
    Norwich, CT USA
    MS-Off Ver
    Excel 2010
    Posts
    163

    four input single output logic problem

    Greetings. I need help with a logic problem in excel. The attached is a simplified sheet from a very complicated workbook. The inputs are actually named ranges from other sheets.
    Basically given the 4 inputs I need to get the results on the goal column for the various input combinations. The helper columns previously set me up for the final goal.
    This was working but I had add other options that require this “truth table”(if I’m using that term correctly). As you can see in the output tests column I’ve tried basic AND/OR logic. AND comes close but I need to take into account something else.
    This looks simple and I’ve messed with it a bit but logic is not one of my strengths. Maybe someone can set me strait.
    Thanks
    Robert
    LogicBlues.xlsx

  2. #2
    Forum Contributor
    Join Date
    08-01-2012
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    112

    Re: four input single output logic problem

    F13:G14 have the same answers for the helper columns, but different answers in the goal. not sure i understand the logic here. If both helper columns are true, then u want true. IF they are both false you want false and if they are true and false, then what?

  3. #3
    Forum Contributor
    Join Date
    03-21-2004
    Location
    Norwich, CT USA
    MS-Off Ver
    Excel 2010
    Posts
    163

    Re: four input single output logic problem

    Quote Originally Posted by ajm123456789 View Post
    F13:G14 have the same answers for the helper columns, but different answers in the goal. not sure i understand the logic here. If both helper columns are true, then u want true. IF they are both false you want false and if they are true and false, then what?
    ajm, "F13:G14 have the same answers for the helper columns, but different answers in the goal." F13:G14 are part of the helper columns so I don't understand what you mean.

    The Helper columns may not be revelent any longer. they are just what I was using before. There may be a simple method to get the results in the goal from the corresponding input combinations.
    thanks for taking the time to look at this. I'm sorry if my OP was not clear.

    To clarify:

    given the four input columns I need the to develop a formula(s) to get the results in the Goal column.

    Output Tests are two things I tried that got close

  4. #4
    Forum Contributor
    Join Date
    08-01-2012
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    112

    Re: four input single output logic problem

    hmm okay so disregard the helper columns completely
    what is the logic for the inputs to get your goal?

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: four input single output logic problem

    Hi,

    Can you express in words what are your rules for the Goal results?
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  6. #6
    Forum Contributor
    Join Date
    08-01-2012
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    112

    Re: four input single output logic problem

    IF IBC is bad it needs a disp. If Ducer is bad it needs a disp
    if they are both bad they need only one disp or both disps?

  7. #7
    Forum Contributor
    Join Date
    08-01-2012
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    112

    Re: four input single output logic problem

    use this formula and drag down
    =IF(AND(SUM(B6:C6)=2,SUM(D6:E6)>=1),TRUE,IF(OR(B6>D6,C6>E6),FALSE,TRUE))

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

    Re: four input single output logic problem

    Hammer_757,

    Using your provided workbook, in cell J6 and copied down should be this formula:
    Please Login or Register  to view this content.

    Here's the same formula, shortened version:
    Please Login or Register  to view this content.
    Last edited by tigeravatar; 09-11-2012 at 12:01 PM. Reason: Added shortened version
    Hope that helps,
    ~tigeravatar

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

  9. #9
    Valued Forum Contributor
    Join Date
    05-08-2012
    Location
    Georgia, USA
    MS-Off Ver
    Excel 2003, 2010
    Posts
    811

    Re: four input single output logic problem

    Try this in K6:
    =IF(AND(IF(C6=1,AND(IF(E6=1,TRUE,FALSE),IF(C6=1,TRUE,FALSE)),TRUE)=FALSE,AND(IF(B6=1,AND(IF(D6=1,TRUE,FALSE),IF(B6=1,TRUE,FALSE)),TRUE)=TRUE,G6=TRUE)=FALSE),FALSE,TRUE)

    With this formula, helper columns (F, G, H and I) are not needed

    Attached is your worksheet
    Attached Files Attached Files
    Click on star (*) below if this helps

  10. #10
    Forum Contributor
    Join Date
    03-21-2004
    Location
    Norwich, CT USA
    MS-Off Ver
    Excel 2010
    Posts
    163

    Re: four input single output logic problem

    ajm123456789 and tigeravatar. all there solutions work perfect.
    Thank you very much!
    Robert

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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