+ Reply to Thread
Results 1 to 3 of 3

quick lookup query

Hybrid View

  1. #1
    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.
    =INDEX($B$3:$E$3,SMALL(IF($B4:$E4=$F4,COLUMN($B4:$E4)-COLUMN($B4)+1),COLUMN(A4)))
    Or if don't like to see the formula errors then input formula in cell G4 and copy across and copy down

    =IF(COUNTIF($B4:$E4,$F4)>=COLUMNS($G$4:G4),INDEX($B$3:$E$3,SMALL(IF($B4:$E4=$F4,COLUMN($B4:$E4)-COLUMN($B4)+1),COLUMN(A4))),"")
    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