+ Reply to Thread
Results 1 to 6 of 6

Using the Index Function

  1. #1
    Registered User
    Join Date
    07-08-2008
    Location
    Here
    Posts
    15

    Using the Index Function

    Hello everyone,

    I am attempting to use the index and match function in excel but it is giving me a problem. Here it is:

    =IF(P23="U",INDEX($AB$3:$AF$3,R23,MATCH(S23,$AB$2:$AF$2,0))

    The table that it refers to is as follows:

    |9 10 11 12 13
    ------------------
    U | 21 23 25 28 35
    ------------------

    So when Someone enters in a "9" for cell S23, and a U for P23, it should give "21".

    Any help would be appreciated.
    Thanks

  2. #2
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Hi,

    Try this

    =IF(P23="U",INDEX($AB$3:$AF$3,R23,MATCH(S23,$AB$2:$AF$2,0)))
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  3. #3
    Forum Expert
    Join Date
    12-24-2004
    Location
    Sweden
    Posts
    1,256

    Hlookup?

    It looks like this could work:
    =IF(P23="U",HLOOKUP(S23,$AB$2:$AF$3,2,0),"")
    //Ola

  4. #4
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Nice one Ola - works for me too

  5. #5
    Forum Expert
    Join Date
    12-24-2004
    Location
    Sweden
    Posts
    1,256

    ...

    Thanks :-)
    //Ola

  6. #6
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Quote Originally Posted by emad1001
    =IF(P23="U",INDEX($AB$3:$AF$3,R23,MATCH(S23,$AB$2:$AF$2,0))
    What's the purpose of R23

+ 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