+ Reply to Thread
Results 1 to 4 of 4

How to get index of selected item in drop down list?

Hybrid View

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

    Re: How to get index of selected item in drop down list?

    nleahcim,

    Attached is a sample workbook based on the criteria provided. I did expand it to 10 columns and 100 rows, though. I put the Row drop-down list in cell N2 and the Column drop-down list in cell N3. N4 contains the result using the following formula:
    =IF(OR(N2="",N3=""),"",INDIRECT("R"&MATCH(N2,A2:A101,0)+1&"C"&MATCH(N3,B1:K1,0)+1,FALSE))


    Hope that helps,
    ~tigeravatar
    Attached Files Attached Files

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

    Re: How to get index of selected item in drop down list?

    nleahcim,

    Alternate formula in cell N4 using VLookup:
    =IF(OR(N2="",N3=""),"",VLOOKUP(N2,A:K,MATCH(N3,A1:K1,0),FALSE))


    ~tigeravatar

  3. #3
    Registered User
    Join Date
    01-07-2010
    Location
    Boston, MA
    MS-Off Ver
    Excel 2007
    Posts
    25

    Re: How to get index of selected item in drop down list?

    Quote Originally Posted by tigeravatar View Post
    nleahcim,

    Attached is a sample workbook based on the criteria provided. I did expand it to 10 columns and 100 rows, though. I put the Row drop-down list in cell N2 and the Column drop-down list in cell N3. N4 contains the result using the following formula:
    =IF(OR(N2="",N3=""),"",INDIRECT("R"&MATCH(N2,A2:A101,0)+1&"C"&MATCH(N3,B1:K1,0)+1,FALSE))


    Hope that helps,
    ~tigeravatar
    That's awesome. Your method makes perfect sense and it works great! Thanks so much for the prompt and super helpful response!

+ 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