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

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"

Forum statistics

Threads
1,215,066
Messages
6,122,948
Members
449,095
Latest member
nmaske

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