+ Reply to Thread
Results 1 to 3 of 3

Question abotu IF function

  1. #1
    Registered User
    Join Date
    07-18-2011
    Location
    york
    MS-Off Ver
    Excel 2003
    Posts
    1

    Question abotu IF function

    Hi everyone,
    I am new and have a quick question regarding excel. I have combinations where I want it so that if you type "June 2011" in one cell and "Live", you get automated get the code "r1." I would like to do this for combinations of "June 2011" and "Staged" to get "f1," Sept 2011" and "Live" to get "u1", "Sept 2011" and "Staged" to get "i1", "Dec 2011" and "Live" to get "x1, "Dec 2011" and "Staged" to get "l1", March 2012" and "Live" to get "o2", "March 2012" and "Staged to get "c2", "June 2012" and "Live" to get "r2," and "June 2012 and "Staged" to get "f2". Is there any way that I could include this in a single "if" function so that any combination I type separtely should produce the code I am looking for? Thanks in advance.

  2. #2
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Question abotu IF function

    Create a table of all concatenated combinations and result values and use VLOOKUP

    =VLOOKUP(A2&B2,lookup_table,2,False)

  3. #3
    Valued Forum Contributor
    Join Date
    07-17-2005
    Location
    Abergavenny, Wales, UK
    MS-Off Ver
    XL2003, XL2007, XL2010, XL2013, XL2016
    Posts
    608

    Re: Question abotu IF function

    Hi

    take a look at the attached file.
    I set up a list of your data on sheet2 and then defined some dynamic ranges, which will grow if you add more data.

    Then on sheet1, I placed Data Validation dropdowns in cells A2 and B2 and used an array entered Index match formula to return the result.

    To enter or amend an Array formula, use Control + Shift + Enter (CSE) instead of just Enter. Do not type the curly braces { } yourself. When you use CSE, Excel will enter them for you.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    --
    Regards
    Roger Govier
    Microsoft Excel MVP

+ 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