Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / February 2007

Tip: Looking for answers? Try searching our database.

V lookup and H lookup together

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sissy - 15 Feb 2007 15:54 GMT
Is it possible to do a v lookup and an h lookup at the same time?  For
example I want to find the data that matches the row and column of the cell
I'm in?
vezerid - 15 Feb 2007 16:06 GMT
=INDEX(data,rownumber,colnumber)

data is a 2D array. row- and colnumber are either supplied as
constants or are computed by MATCH, if you need to locate row and
column by looking up.

HTH
Kostis Vezerides

> Is it possible to do a v lookup and an h lookup at the same time?  For
> example I want to find the data that matches the row and column of the cell
> I'm in?
Niek Otten - 15 Feb 2007 16:11 GMT
Hi Sissy,

Let's say your Horizontal keys are in B1:E1 and your Vertical keys in A2:A5. So your data is in B2:E5

Your Formula:

=INDEX(B2:E5;MATCH(H1;A2:A5;0);MATCH(G1;B1:E1;0))

Signature

Kind regards,

Niek Otten
Microsoft MVP - Excel

| Is it possible to do a v lookup and an h lookup at the same time?  For
| example I want to find the data that matches the row and column of the cell
| I'm in?
Sissy - 15 Feb 2007 21:50 GMT
Hi Niek,
Thank you, I'm trying this, but what's H1 and G1 in your formula?  Where
does it reference the other spreadsheet I'm trying to get data from?  Say
this is the sheet that contains data:
    01/01/2007 02/01/2007 02/14/2007 02/20/2007
Blue Shirts      1000    1200    1100    1300
Blue Pants     50    75    60    65
Red Shirts      500    700    400    300
Red Pants      20    25    15    10

And I want to fill in this spreadsheet in the appropriate places based on
the description and date:

    01/01/2007 01/15/2007 02/01/2007 02/15/2007
Red Pants               
Blue Pants               
Red Shirts               
Blue Shirts               

Thank you!  -Sissy

> Hi Sissy,
>
[quoted text clipped - 7 lines]
> | example I want to find the data that matches the row and column of the cell
> | I'm in?
Niek Otten - 16 Feb 2007 08:57 GMT
H1 is the row key to look for, G1 the column key
If you don't have exact matches for the horizontal key (which seems to be the case), change the 0 in the second MATCH function to
1.
Just use it as an example, then apply to your sheets with references to other sheets

Signature

Kind regards,

Niek Otten
Microsoft MVP - Excel

| Hi Niek,
| Thank you, I'm trying this, but what's H1 and G1 in your formula?  Where
[quoted text clipped - 28 lines]
| > | example I want to find the data that matches the row and column of the cell
| > | I'm in?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.