Re: Help using two different values in a lookup table
From: Peo Sjoblom (terre08_at_mvps.org)
Date: 05/26/04
- Next message: Peo Sjoblom: "Re: Excel formula NEED HELP"
- Previous message: Allierz: "Stuck on a anlysis formula 2"
- In reply to: shadestreet: "Help using two different values in a lookup table"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 25 May 2004 22:45:16 -0400
=INDEX(A1:S50,MATCH(Origin_cell,A1:A50,0),MATCH(Destination_cell,A1:S1,0))
will return the cell in the table where the intersection is, so if it looks
up H1 and A30 then the
returned value will be from H30
-- For everyone's benefit keep the discussion in the newsgroup. Regards, Peo Sjoblom "shadestreet >" <<shadestreet.16udha@excelforum-nospam.com> wrote in message news:shadestreet.16udha@excelforum-nospam.com... > Help using the Lookup Function > I need to search for a value based on two different criteria. > > I have only used VLookup or HLookup for 1 criteria, and would like to > know how to use a combination of the two. I am sure there are multiple > approaches, but I wanted to know the simplest method. > > Basically, I have created a spreadsheet to calculate distances which > are dependant on "origin" and "destination". There are 8 possible > locations, any of them can be the origin or the destination. I made a > distance matrix on a different sheet that has the travel distance for > each of the 64 combinations. > > On my my first sheet (titled "Distance") I use two adjacent cells, one > titled "origin", and the other "Destination". The user will select the > origin and destination from the Validation list, and I want the third > adjacent cell to lookup and return the distance from the matrix on the > second page (titled "DMatrix"). > > Last month I posted basically the same question and Frank was kind to > answer, but I couldn't get it work (used a combination of Index and > matching). Can someone explain how to achieve this? > > Thanks > > > --- > Message posted from http://www.ExcelForum.com/ >
- Next message: Peo Sjoblom: "Re: Excel formula NEED HELP"
- Previous message: Allierz: "Stuck on a anlysis formula 2"
- In reply to: shadestreet: "Help using two different values in a lookup table"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|