+ Reply to Thread
Results 1 to 5 of 5

Using INDEX() to Locate Variable Data

  1. #1
    Registered User
    Join Date
    08-21-2006
    Posts
    2

    Using INDEX() to Locate Variable Data

    Here is my formula for cell I26: =IF(G26=" Armor Slot 2","",INDEX(G1:P97,MATCH(G25,N3:O97,0),16))
    Here is an image of the sheet I'm working on: http://img301.imageshack.us/img301/1...lpsheetme1.jpg

    When I activate the dropdown menu for the cell that says Armor Slot 2 and choose another "armor", I get a #N/A error in cell I26. Since using a string of IF statements to check which armor I'm searching for would result in the formula being too long, can anyone please help me find out what I'm doing wrong in this formula that's resulting in an error? I'm trying to choose an armor from a list of cells in column N and then display the value that corresponds to it, from column P, into cell I26.

    (The list of armors extends down to row 97.)

    Help would be MUCH appreciated!
    Shadowboy

  2. #2
    Toppers
    Guest

    RE: Using INDEX() to Locate Variable Data

    Use VLOOKUP in I26 to retrieve value from column P

    =VLOOKUP(G25,N3:O97,2,FALSE)

    Looks up selection from G25 and finds corresponding entry in N:O

    To allow for errors:

    =If(ISERROR(VLOOKUP(G25,N3:O97,2,FALSE)),"",VLOOKUP(G25,N3:O97,2,FALSE))

    in J26 to retrieve value from column O

    =If(ISERROR(VLOOKUP(G25,N3:O97,3,FALSE)),"",VLOOKUP(G25,N3:O97,3,FALSE))

    HTH

    "Shadowboy" wrote:

    >
    > Here is my formula for cell I26: *=IF(G26=" Armor Slot
    > 2","",INDEX(G1:P97,MATCH(G25,N3:O97,0),16))*
    > Here is an image of the sheet I'm working on:
    > http://img301.imageshack.us/img301/1...lpsheetme1.jpg
    >
    > When I activate the dropdown menu for the cell that says Armor Slot 2
    > and choose another "armor", I get a #N/A error in cell I26. Since using
    > a string of IF statements to check which armor I'm searching for would
    > result in the formula being too long, can anyone please help me find
    > out what I'm doing wrong in this formula that's resulting in an error?
    > I'm trying to choose an armor from a list of cells in column N and then
    > display the value that corresponds to it, from column P, into cell I26.
    >
    > (The list of armors extends down to row 97.)
    >
    > Help would be MUCH appreciated!
    > Shadowboy
    >
    >
    > --
    > Shadowboy
    > ------------------------------------------------------------------------
    > Shadowboy's Profile: http://www.excelforum.com/member.php...o&userid=37804
    > View this thread: http://www.excelforum.com/showthread...hreadid=573668
    >
    >


  3. #3
    Dave Peterson
    Guest

    Re: Using INDEX() to Locate Variable Data

    Typo alert.

    Without reading the OP's message...

    If the formula is retrieving from column P, shouldn't it be included in the
    lookup range--and if that look up range starts in column O, then it would be the
    3rd column:

    =VLOOKUP(G25,N3:O97,2,FALSE)
    becomes
    =VLOOKUP(G25,N3:p97,3,FALSE)

    (in all the formulas)



    Toppers wrote:
    >
    > Use VLOOKUP in I26 to retrieve value from column P
    >
    > =VLOOKUP(G25,N3:O97,2,FALSE)
    >
    > Looks up selection from G25 and finds corresponding entry in N:O
    >
    > To allow for errors:
    >
    > =If(ISERROR(VLOOKUP(G25,N3:O97,2,FALSE)),"",VLOOKUP(G25,N3:O97,2,FALSE))
    >
    > in J26 to retrieve value from column O
    >
    > =If(ISERROR(VLOOKUP(G25,N3:O97,3,FALSE)),"",VLOOKUP(G25,N3:O97,3,FALSE))
    >
    > HTH
    >
    > "Shadowboy" wrote:
    >
    > >
    > > Here is my formula for cell I26: *=IF(G26=" Armor Slot
    > > 2","",INDEX(G1:P97,MATCH(G25,N3:O97,0),16))*
    > > Here is an image of the sheet I'm working on:
    > > http://img301.imageshack.us/img301/1...lpsheetme1.jpg
    > >
    > > When I activate the dropdown menu for the cell that says Armor Slot 2
    > > and choose another "armor", I get a #N/A error in cell I26. Since using
    > > a string of IF statements to check which armor I'm searching for would
    > > result in the formula being too long, can anyone please help me find
    > > out what I'm doing wrong in this formula that's resulting in an error?
    > > I'm trying to choose an armor from a list of cells in column N and then
    > > display the value that corresponds to it, from column P, into cell I26.
    > >
    > > (The list of armors extends down to row 97.)
    > >
    > > Help would be MUCH appreciated!
    > > Shadowboy
    > >
    > >
    > > --
    > > Shadowboy
    > > ------------------------------------------------------------------------
    > > Shadowboy's Profile: http://www.excelforum.com/member.php...o&userid=37804
    > > View this thread: http://www.excelforum.com/showthread...hreadid=573668
    > >
    > >


    --

    Dave Peterson

  4. #4
    Toppers
    Guest

    Re: Using INDEX() to Locate Variable Data

    ..... bad day at the office (home actually)! Thanks ...again!

    "Dave Peterson" wrote:

    > Typo alert.
    >
    > Without reading the OP's message...
    >
    > If the formula is retrieving from column P, shouldn't it be included in the
    > lookup range--and if that look up range starts in column O, then it would be the
    > 3rd column:
    >
    > =VLOOKUP(G25,N3:O97,2,FALSE)
    > becomes
    > =VLOOKUP(G25,N3:p97,3,FALSE)
    >
    > (in all the formulas)
    >
    >
    >
    > Toppers wrote:
    > >
    > > Use VLOOKUP in I26 to retrieve value from column P
    > >
    > > =VLOOKUP(G25,N3:O97,2,FALSE)
    > >
    > > Looks up selection from G25 and finds corresponding entry in N:O
    > >
    > > To allow for errors:
    > >
    > > =If(ISERROR(VLOOKUP(G25,N3:O97,2,FALSE)),"",VLOOKUP(G25,N3:O97,2,FALSE))
    > >
    > > in J26 to retrieve value from column O
    > >
    > > =If(ISERROR(VLOOKUP(G25,N3:O97,3,FALSE)),"",VLOOKUP(G25,N3:O97,3,FALSE))
    > >
    > > HTH
    > >
    > > "Shadowboy" wrote:
    > >
    > > >
    > > > Here is my formula for cell I26: *=IF(G26=" Armor Slot
    > > > 2","",INDEX(G1:P97,MATCH(G25,N3:O97,0),16))*
    > > > Here is an image of the sheet I'm working on:
    > > > http://img301.imageshack.us/img301/1...lpsheetme1.jpg
    > > >
    > > > When I activate the dropdown menu for the cell that says Armor Slot 2
    > > > and choose another "armor", I get a #N/A error in cell I26. Since using
    > > > a string of IF statements to check which armor I'm searching for would
    > > > result in the formula being too long, can anyone please help me find
    > > > out what I'm doing wrong in this formula that's resulting in an error?
    > > > I'm trying to choose an armor from a list of cells in column N and then
    > > > display the value that corresponds to it, from column P, into cell I26.
    > > >
    > > > (The list of armors extends down to row 97.)
    > > >
    > > > Help would be MUCH appreciated!
    > > > Shadowboy
    > > >
    > > >
    > > > --
    > > > Shadowboy
    > > > ------------------------------------------------------------------------
    > > > Shadowboy's Profile: http://www.excelforum.com/member.php...o&userid=37804
    > > > View this thread: http://www.excelforum.com/showthread...hreadid=573668
    > > >
    > > >

    >
    > --
    >
    > Dave Peterson
    >


  5. #5
    Registered User
    Join Date
    08-21-2006
    Posts
    2
    Thank you both for your fanstastic responses. My problem is solved and I'm continuing along my way.

+ 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