Return cell vallue based on 2 other cell values

jblayden

New Member
Joined
Jun 23, 2017
Messages
2
Hi,

I have a spreadsheet in which I have a 'Data' tab and a 'Report' tab. I drop data from an online system in to the 'Data' tab. I have formulas in the 'Report' tab which looks up headers in the 'Data' tab based on the corresponding headers and returns the value from the cell below. That is working fine when the header is in 1 cell. However, I also need the same lookup in other columns but based on 2 separate headers. So in my 'Report' tab I want to lookup 2 separate headers - 1. Standard (will always be on row 1) and Hours (will always be on row 2) and return the value from the cell below the 2 headers (on row 3). The trouble is, the report can differ week to week so the headers and data I need aren't always in the same column each week (headers are always on rows 1 and 2 and data in row 3 and below though). This week the headers I need to lookup are in cells AP1 and AP2 with the cell value I require being in AP3. However the headers could be in anywhere in rows 1 and 2 in the Data tab.

Any ideas would be much appreciated :-)
 

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)

Forum statistics

Threads
1,223,896
Messages
6,175,263
Members
452,627
Latest member
KitkatToby

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