vlookup with stacked column headers

cimanaxe

New Member
Joined
Feb 3, 2013
Messages
6
Hi everyone,

I am trying to figure out how to use vlookup (or an equivalent) when there are two rows of column headers, and the lower row is repeating metrics.

For example, along row 2 you might have months, with each month spanning two columns wide. Then underneath each month, you would have the same two metrics (let's say PO Qty and Sales) for each month. Assuming my lookup criteria was Product Number, how could I find the PO Qty of a Product Number for a specific month?

Also, I realize there are better ways to structure the data, but these are reports from work.

Thanks!!
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Try to implement something like:

=VLOOKUP(ProdNum,Table,MATCH(Month,INDEX(Table,1,1),0)+IF(Required="PO Qty",0,1),0)

Table stands for the area where the data is, including the 2 rows with headers.
 
Upvote 0

Forum statistics

Threads
1,214,975
Messages
6,122,537
Members
449,088
Latest member
RandomExceller01

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