+ Reply to Thread
Results 1 to 2 of 2

combining column number and hlookup

Hybrid View

  1. #1
    Registered User
    Join Date
    01-29-2007
    Posts
    1

    combining column number and hlookup

    hi

    i'm performing an hlookup of a single value, where the value can be found in any column within the lookup row.

    is there way to return the column that the lookup value was found in?

    thanks

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,720
    If your hlookup was something like

    =HLOOKUP("x",A1:Z2,2,0)

    then you can find the number of the column with

    =MATCH("x",A1:Z1,0)

    e.g. if "x" is found first in F1 this will give 6

    If you actually want to return "F" then try

    =SUBSTITUTE(ADDRESS(ROW(A1),MATCH("x",A1:Z1,0),4),ROW(A1),"")

+ 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