+ Reply to Thread
Results 1 to 6 of 6

Nested logic to get 6 outputs from 3x2 matrix of inputs

  1. #1
    Registered User
    Join Date
    01-22-2009
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2007
    Posts
    11

    Nested logic to get 6 outputs from 3x2 matrix of inputs

    Hi everyone.
    I'm having a mental block with what should be some reasonably simple nested logic. Basically I've got 3 possible inputs in one field and 2 in another, and want to get 6 possible results out the other end.
    The sheet attached shows what i'm putting in (columns A and B) and what i'd like to get out the other end (C). The formula i need in column C is a bunch of AND's that i somehow keep getting wrong

    Thanks in advance
    Attached Files Attached Files
    Last edited by andysurtees; 02-15-2009 at 09:09 PM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Nested logic to get 6 outputs from 3x2 matrix of inputs

    First, fix the capitalization in column A.

    Then put this formula in C2 and copy down:

    =A2&(IF(B2<>"",", Pay Now, kit",", Free Trial, kit"))
    ...or
    =A2&(IF(B2="upfront",", Pay Now, kit",", Free Trial, kit"))
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Nested logic to get 6 outputs from 3x2 matrix of inputs

    JB, why not use PROPER(A2) ?

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Nested logic to get 6 outputs from 3x2 matrix of inputs

    Quote Originally Posted by DonkeyOte View Post
    JB, why not use PROPER(A2) ?
    In my opinion, it's one thing to use tricks like PROPER to correct incoming data, it's another thing to use it instead of just correcting your own data set one time.

  5. #5
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Nested logic to get 6 outputs from 3x2 matrix of inputs

    Fair enough JB

  6. #6
    Registered User
    Join Date
    01-22-2009
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Nested logic to get 6 outputs from 3x2 matrix of inputs

    Thanks JB.
    The data we get in is actually incorrectly capitalised, which i forgot to mention, so I've stuck the PROPER in there too, and now the whole thing works great

+ 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