Multiple lookup

robrobby

New Member
Joined
Sep 14, 2012
Messages
22
Hi, I've been trying to figure out the fomulas to do the following:


I have the data below and what I want to do is a lookup on multiple criteria to fill in the cells on another sheet.
On my other sheet I have sections split into days as here:

A1 Date: 27/11/2017

A2 Night : 24975
A3 Day : 25389
A4 Evening :24861

I want to be able to do a lookup based on the date above and fill in the 3 qty values for night, day, evening for whatever I change the date to in cell A1
I've tried array lookups with no result (ctrl+shift+enter)

I've tried looking up the one date which works fine, and then offsetting the values below, but there are some dates which only have one entry, like the 26/11/17 it only has the evening slot, so this makes other things I try not work either. I need to be able to do a lookup on Shift+TimeStamp
If I did a test lookup with the word "Test" in column B on the data below I could get the qty, but the date/time in the TimeStamp column just doesn't work on just the date..

Any ideas on how to get this working???

Thanks
ShiftTimeStampJob IDQty
Night24/11/2017 06:390060253127990
Day24/11/2017 15:110060253126434
Evening24/11/2017 22:340060253125678
Night25/11/2017 06:280060253126661
Day25/11/2017 14:390060245522323
Evening25/11/2017 22:300060245526513
Evening26/11/2017 22:59006024551580
Night27/11/2017 05:290060245524975
Day27/11/2017 07:290060245525389
Evening27/11/2017 22:300060245524861
Night28/11/2017 06:580060245527639
Day28/11/2017 14:410060245523564
Evening28/11/2017 22:420060245526612
Night29/11/2017 05:17
0060245523101
<colgroup><col width="65" style="width: 49pt; mso-width-source: userset; mso-width-alt: 2377;"> <col width="111" style="width: 83pt; mso-width-source: userset; mso-width-alt: 4059;"> <col width="74" style="width: 56pt; mso-width-source: userset; mso-width-alt: 2706;"> <col width="78" style="width: 59pt; mso-width-source: userset; mso-width-alt: 2852;"> <tbody> </tbody>
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Hi, here is one way that you could try to adapt to your set-up.


Excel 2013/2016
ABCDEFGH
1ShiftTimeStampJob IDQtyDate:27/11/2017
2Night24/11/2017 06:3960253127990Night24975
3Day24/11/2017 15:1160253126434Day25389
4Evening24/11/2017 22:3460253125678Evening24861
5Night25/11/2017 06:2860253126661
6Day25/11/2017 14:3960245522323
7Evening25/11/2017 22:3060245526513
8Evening26/11/2017 22:596024551580
9Night27/11/2017 05:2960245524975
10Day27/11/2017 07:2960245525389
11Evening27/11/2017 22:3060245524861
12Night28/11/2017 06:5860245527639
13Day28/11/2017 14:4160245523564
14Evening28/11/2017 22:4260245526612
15Night29/11/2017 05:1760245523101
Sheet1
Cell Formulas
RangeFormula
H2=INDEX($E$2:$E$15,MATCH(1,INDEX((INT($B$2:$B$15)=H$1)*($A$2:$A$15=G2),0),0))
 
Upvote 0
That is exactly what I needed - I see how you've converted the date to an integer, I never thought of that. I tried variations of the index/match lookups but could never get it to work like yours does.

I can use this in so many other projects.

Thanks so much, it's really appreciated.
 
Upvote 0

Forum statistics

Threads
1,216,106
Messages
6,128,863
Members
449,473
Latest member
soumyahalder4

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