Multiple value lookup & sum

KMeuwissen

New Member
Joined
Apr 26, 2016
Messages
2
Hello all.
I'm creating a machine capacity file in Excel, counting the total hours available and deduct some loss of hours.
However I'm having trouble finding a correct formula to make a lookup in a 2d table, getting back 1 value which combines the values of multiple fields.
Simplified, my data looks as follows :

machine
week date A B C D
17 01/04/16 8 8
17 03/04/16 8
17 04/04/16 8
18 08/04/16 8
18 09/04/16 8

I have inserted a slicer to choose the machine, choices of the slicer are being put into 1 row (eg 1st value in A1, 2nd in A2, etc...)
This means multiple machines can be selected.
Depending on this selection I would need to retrieve the corresponding data from the table
Example -> for wk 17, when selecting machine A, B & D the returned value should be 24
Any suggestions ?
Thanks in advance
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
To clarify the data (sorry, I'm new :))

[table="width: 500, class: outer_border, align: center"]
[tr]
[td][/td]
[td]A[/td]
[td]B[/td]
[td]C[/td]
[td]D[/td]
[/tr]
[tr]
[td]17[/td]
[td]8[/td]
[td]8[/td]
[td][/td]
[td][/td]
[/tr]
[tr]
[td]17[/td]
[td][/td]
[td][/td]
[td]8[/td]
[td][/td]
[/tr]
[tr]
[td]17[/td]
[td][/td]
[td][/td]
[td][/td]
[td]8[/td]
[/tr]
[tr]
[td]18[/td]
[td]8[/td]
[td][/td]
[td][/td]
[td][/td]
[/tr]
[tr]
[td]18[/td]
[td][/td]
[td][/td]
[td]8[/td]
[td][/td]
[/tr]
[/table]
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,915
Members
452,366
Latest member
TePunaBloke

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