Vlookup & hlookup??

sbartmasser

New Member
Joined
Mar 19, 2010
Messages
17
Good day.. I am trying to look up an item in a row on tab one and then look at the top row in serveral columns in tab two and bring back the data. The top row in each column might change monthly so I don't want to formula to find the column and then bring back the data. Below is an example:

Data- Tab 2
CusipDescriptionBookYieldDatedDateBegBookValueBegMarketValueBegParValue
BOFA1.953/26/2010200000200758200000
BANK OF WEST1.83/3/2010200000200549.4200000
WELLS FARGO2.7001103956/30/2010606834.18603225500000
Tab 1
CusipDescriptionBegBookValueDatedDateBookYield
BOFA 200,000.00 3/26/20101.95
BANK OF WEST 200,000.00 3/3/20101.8
WELLS FARGO 606,834.18 6/30/20102.700110395
Any help would be greatly appreciated..



<COLGROUP><COL style="WIDTH: 76pt; mso-width-source: userset; mso-width-alt: 3865" width=101><COL style="WIDTH: 57pt; mso-width-source: userset; mso-width-alt: 2892" width=75><COL style="WIDTH: 49pt; mso-width-source: userset; mso-width-alt: 2508" width=65><COL style="WIDTH: 64pt; mso-width-source: userset; mso-width-alt: 3276" width=85><COL style="WIDTH: 74pt; mso-width-source: userset; mso-width-alt: 3763" width=98><COL style="WIDTH: 44pt" width=59><TBODY>
</TBODY>
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Try...

=INDEX($B$2:$E$8,MATCH(F1,$A$2:$A$8,0),MATCH(F2,$B$1:$E$1,0))

Where $B$2:$E$8 houses data to return
Where F1 and F2 are the criteria
Where $A$2:$A$8 and $B$1:$E$1 are row and column headers
 
Upvote 0
I would agree with Brian, but if you tweak it a little you can drag it down and across to all of your cells.

=INDEX('Tab2'!$A$1:$J$10,MATCH('Tab1'!$A2,'Tab2'!$A$1:$A$10,0),MATCH('Tab1'!B$1,'Tab2'!$A$1:$J$1,0))

Note: Sheets are named Tab1, Tab2; Data table in Tab2 goes from A1 to J10; and use the row- and column-absolute references as appropriate ($A2, B$1 in my example).
 
Upvote 0
Thank you both for your quick response. I had heard about the Index / Match, but have never used it. This worked perfectly...and now I have a new tool in my Excel tool belt.

:cool:Sharon
 
Upvote 0

Forum statistics

Threads
1,214,951
Messages
6,122,449
Members
449,083
Latest member
Ava19

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top