+ Reply to Thread
Results 1 to 4 of 4

HLOOKUP formula

  1. #1
    Forum Contributor
    Join Date
    10-30-2007
    Posts
    125

    HLOOKUP formula

    Please see attachment.

    I have a Horizonal table of monthly salaries. In cell A2 there is a drop-down menu with a list of all the months. I want a formula that will be able to look-up the month from the table and gives me the salaries that correspond to that month. My formula is =HLOOKUP($A$2,$C$2:$N$4,3). I get bogus amount or #N/A. Please assist.

    TIA,

    ExcelNewby
    Attached Files Attached Files

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    You need to add the false statement

    =HLOOKUP($A$2,$C$2:$N$4,3,FALSE)
    or could use
    =INDEX($C$4:$N$4,MATCH(A2,$C$2:$N$2,0))
    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,526
    =HLOOKUP(A2,C2:N4,3,0)
    should do the trick

  4. #4
    Forum Contributor
    Join Date
    10-30-2007
    Posts
    125

    HLOOKUP formula

    I Love You Guys@exceltip!! It Works...

+ 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