+ Reply to Thread
Results 1 to 3 of 3

Multiple logical functions resulting in multiple outcomes

Hybrid View

  1. #1
    Registered User
    Join Date
    12-13-2012
    Location
    Fribourg, Switzerland
    MS-Off Ver
    Excel 2010
    Posts
    2

    Multiple logical functions resulting in multiple outcomes

    Hi all,
    I'm trying to devise a formula whereby the outcome in a cell is dependent on the inputs from 4 other cells. Not only that, but the outcome has 4 potential text values, i.e. the text in A5 (4 possible outcomes) is dependent on the inputs from A1 to A4. For example, if A1 and A2 are both Y, then the outcome is text 1, if A1 and A3 are Y, but A2 and A4 are N, then the outcome is text 2, and so on. Is this even possible and where do I start?
    I'm not sure if I've given enough information, but wouold just like some pointers in the right direction.
    Many thanks,
    Paddy

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Multiple logical functions resulting in multiple outcomes

    For simplicity...try this example:
    G1:H8 contains this list
    YYYY	Text 1
    YYYN	Text 2
    YYNN	Text 3
    YNNN	Text 4
    NNNN	Text 5
    NNNY	Text 6
    NNYY	Text 7
    NYYY	Text 8
    Each cell in A1:A4 contains either "Y" or "N"

    This regular formula returns the Col_H text that corresponds to the A1:A4 concatenated value
    A5: =INDEX(H1:H8,MATCH(A1&A2&A3&A4,G1:G8,0))

    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    12-13-2012
    Location
    Fribourg, Switzerland
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Multiple logical functions resulting in multiple outcomes

    Quote Originally Posted by Ron Coderre View Post
    For simplicity...try this example:
    G1:H8 contains this list
    YYYY	Text 1
    YYYN	Text 2
    YYNN	Text 3
    YNNN	Text 4
    NNNN	Text 5
    NNNY	Text 6
    NNYY	Text 7
    NYYY	Text 8
    Each cell in A1:A4 contains either "Y" or "N"

    This regular formula returns the Col_H text that corresponds to the A1:A4 concatenated value
    A5: =INDEX(H1:H8,MATCH(A1&A2&A3&A4,G1:G8,0))

    Is that something you can work with?
    By George, I think I can! Preliminary results seem favourable.
    Many, many thanks.

+ 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