+ Reply to Thread
Results 1 to 4 of 4

HLookup or ???

  1. #1
    Registered User
    Join Date
    07-18-2008
    Location
    Dallas Texas
    Posts
    2

    HLookup or ???

    Hi! I have an array that contains values not text. I am trying to locate a formula(s) that will allow me to recognize the first column of each row that is not blank or is >0 and return the cell contents at the top of that column. HLookup won't get me there but it is the concept of what I want. Any help wouyld be appreciated.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    =INDEX($A$1:$J$1, MATCH(TRUE, A2:J2<>"", 0))

    This is an array formula, meaning it MUST be confirmed with Ctrl+Shift+Enter, not just Enter. (With the cursor in the formula bar, hold down Ctrl and Shift, then press Enter.) You'll know you did it correctly if curly braces appear around the formula in the Formula Bar; you cannot type in the braces directly.

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464
    Hi,

    Try the following in say D11 and copied down, adjusting the ranges as necessary

    =INDEX(A$10:C$10,1,MATCH(1E+307,A11:C11))

    where A10:C10 are the top of column values.

    HTH

  4. #4
    Registered User
    Join Date
    07-18-2008
    Location
    Dallas Texas
    Posts
    2

    Thank you

    I was able to adapt both of the index/array formulas provided. Many thanks.

+ 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