+ Reply to Thread
Results 1 to 3 of 3

quick lookup query

  1. #1
    Registered User
    Join Date
    09-16-2007
    Posts
    1

    quick lookup query

    Hi

    I am just trying to do a 'negative Hlookup' with some data i have.

    \1

    Using the data above, column F has the largest values from each row.
    What i want to do is, use this largest value, look it up in the row and return the column name.(eg. maths or english.) how can i avoid the problem of having duplicate numbers also ?

    is this possible ?

    thanks

  2. #2
    Valued Forum Contributor
    Join Date
    02-09-2006
    Location
    Melbourne, Australia
    MS-Off Ver
    Office 2016
    Posts
    1,075
    In cell G3 put this formula, then fill it down.

    =INDEX($B$3:$E$3,MATCH(F4,$B4:$E4,0))
    Trish in Oz
    -------------
    A problem well defined is a puzzle half solved


    If you attach a sample of your workbook it will be easier to find a solution. Remember to remove/replace sensitive data before uploading the file. Look here if you need help with attachments:
    http://www.excelforum.com/faq.php?fa...b3_attachments

  3. #3
    Forum Contributor
    Join Date
    09-25-2004
    Posts
    269
    What if row 7 has 66 in math and English?

    If account for duplicates then try this formula below.

    Input formula in cell G4 and copy across and copy down.
    Please Login or Register  to view this content.
    Or if don't like to see the formula errors then input formula in cell G4 and copy across and copy down

    Please Login or Register  to view this content.
    Both formulas are arrays. Paste the formula in cell G4 double click inside the cell and hold down.

    Ctrl,Shift,Enter

    Hope it helps!
    Last edited by vane0326; 09-16-2007 at 07:07 PM.

+ 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