VLOOKUP calculation on a filtered list

Barnes2912

New Member
Joined
Jan 21, 2018
Messages
2
Hello all,

I would really appreciate your help on this!

I have a table [Project Plan Table] with a list of different projects that I manage (column A), names of people in my team (column B) [Resource] and the number of billable hours that they are should book against each project (column C), along with a second worksheet with another table of allocate hours for each staff member [Allocated Hours].

{=((VLOOKUP([Resource],[Allocated Hours],2,FALSE)))-(SUBTOTAL(109,[Jan]))}

Where [Resource] is the column name of the member of staff in the [Project Plan Table].

The way the subtotal function will sum only the number of hours that are visible on a filtered table, I want to be able to do the same for a vlookup. If I filter by a member of staff's name in my table, I want my vlookup to pick up that filtered name (in column B - [Resource]) to be able to find the matching name in the other table [Allocated Days].

When I use the slicer tool, the formula works but only for the first name in the table, rather than the filtered name.

Please can you help with this query please? I hope this makes sense!
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.

Forum statistics

Threads
1,215,766
Messages
6,126,754
Members
449,336
Latest member
p17tootie

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