Index Lookup - Multiple Criteria

JonesyUK

Board Regular
Joined
Oct 11, 2005
Messages
190
Office Version
  1. 365
Platform
  1. Windows
Hi Experts, please assist:

I need to populate a grid (yellow cells B2:C3) which picks up Grand Totals for Budget and Actuals by Month by finding the correct data from a PIVOT TABLE which can be seen here:

https://ibb.co/i0Ow9K

Normally, there is a BUDGET column, and an ACTUAL column for each period, but this is not always the case. Some departments, have no Budget, and others might have no Actuals. So in this example, cell B6 might say "Actual" or cell B5 might be month "P4"

Any ideas please?

Thanks!
 
Last edited:

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Hi, this seems to be working for me.

=IF(INDIRECT(ADDRESS(MATCH("Personnel Number",$A$1:$A$15,0),MATCH(B$1,$B$5:$G$5)+1))=$A2,INDIRECT(ADDRESS(MATCH("Grand Total",$A$1:$A$15,0),MATCH(B$1,$B$5:$G$5)+1)),IF(INDIRECT(ADDRESS(MATCH("Personnel Number",$A$1:$A$15,0),MATCH(B$1,$B$5:$G$5,0)+1))=$A2,INDIRECT(ADDRESS(MATCH("Grand Total",$A$1:$A$15,0),MATCH(B$1,$B$5:$G$5,0)+1)),""))
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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