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

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
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,231
Messages
6,170,884
Members
452,364
Latest member
springate

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