+ Reply to Thread
Results 1 to 2 of 2

trying to write a lookup function

  1. #1
    Registered User
    Join Date
    06-13-2012
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    1

    trying to write a lookup function

    Hi there,

    I have about 60 columns of numbers, with anywhere between 5 and 50 numbers in each column. I'm trying to write a lookup function where a user can select one of the 60 column identififers from a drop-down menu and it will populate the column below the drop-down menu with the apporpriate numbers from the selected column. I was going to use nested named functions but it's getting out of hand and dI think it would be more efficient to use VBA.

    I'm brand new to the language though and have no idea what I'm doing. Can someone pls help?

    Thanks

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: trying to write a lookup function

    This should work

    =HLOOKUP($A$1,$C$1:$L$33,ROW(A2),0)

    The lookup value is in A1

    The table spans C1:L33 with the headers in row 1. >> Adjust to fit your needs

    Row(A2) will increment as you drag down
    HTH
    Regards, Jeff

+ 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