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
[TABLE="width: 247"]
<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>[TR]
[TD="width: 65"]Shift[/TD]
[TD="class: xl65, width: 111, align: right"]TimeStamp[/TD]
[TD="class: xl65, width: 111, align: right"][/TD]
[TD="width: 74"]Job ID[/TD]
[TD="width: 78, align: right"]Qty[/TD]
[/TR]
[TR]
[TD="width: 65"]Night[/TD]
[TD="class: xl65, width: 111, align: right"]24/11/2017 06:39[/TD]
[TD="class: xl65, width: 111, align: right"][/TD]
[TD="width: 74"]00602531[/TD]
[TD="width: 78, align: right"]27990[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Day[/TD]
[TD="class: xl65, bgcolor: transparent, align: right"]24/11/2017 15:11[/TD]
[TD="class: xl65, bgcolor: transparent, align: right"][/TD]
[TD="bgcolor: transparent"]00602531[/TD]
[TD="bgcolor: transparent, align: right"]26434[/TD]
[/TR]
[TR]
[TD]Evening[/TD]
[TD="class: xl65, align: right"]24/11/2017 22:34[/TD]
[TD="class: xl65, align: right"][/TD]
[TD]00602531[/TD]
[TD="align: right"]25678[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Night[/TD]
[TD="class: xl65, bgcolor: transparent, align: right"]25/11/2017 06:28[/TD]
[TD="class: xl65, bgcolor: transparent, align: right"][/TD]
[TD="bgcolor: transparent"]00602531[/TD]
[TD="bgcolor: transparent, align: right"]26661[/TD]
[/TR]
[TR]
[TD]Day[/TD]
[TD="class: xl65, align: right"]25/11/2017 14:39[/TD]
[TD="class: xl65, align: right"][/TD]
[TD]00602455[/TD]
[TD="align: right"]22323[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Evening[/TD]
[TD="class: xl65, bgcolor: transparent, align: right"]25/11/2017 22:30[/TD]
[TD="class: xl65, bgcolor: transparent, align: right"][/TD]
[TD="bgcolor: transparent"]00602455[/TD]
[TD="bgcolor: transparent, align: right"]26513[/TD]
[/TR]
[TR]
[TD]Evening[/TD]
[TD="class: xl65, align: right"]26/11/2017 22:59[/TD]
[TD="class: xl65, align: right"][/TD]
[TD]00602455[/TD]
[TD="align: right"]1580[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Night[/TD]
[TD="class: xl65, bgcolor: transparent, align: right"]27/11/2017 05:29[/TD]
[TD="class: xl65, bgcolor: transparent, align: right"][/TD]
[TD="bgcolor: transparent"]00602455[/TD]
[TD="bgcolor: transparent, align: right"]24975[/TD]
[/TR]
[TR]
[TD]Day[/TD]
[TD="class: xl65, align: right"]27/11/2017 07:29[/TD]
[TD="class: xl65, align: right"][/TD]
[TD]00602455[/TD]
[TD="align: right"]25389[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Evening[/TD]
[TD="class: xl65, bgcolor: transparent, align: right"]27/11/2017 22:30[/TD]
[TD="class: xl65, bgcolor: transparent, align: right"][/TD]
[TD="bgcolor: transparent"]00602455[/TD]
[TD="bgcolor: transparent, align: right"]24861[/TD]
[/TR]
[TR]
[TD]Night[/TD]
[TD="class: xl65, align: right"]28/11/2017 06:58[/TD]
[TD="class: xl65, align: right"][/TD]
[TD]00602455[/TD]
[TD="align: right"]27639[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Day[/TD]
[TD="class: xl65, bgcolor: transparent, align: right"]28/11/2017 14:41[/TD]
[TD="class: xl65, bgcolor: transparent, align: right"][/TD]
[TD="bgcolor: transparent"]00602455[/TD]
[TD="bgcolor: transparent, align: right"]23564[/TD]
[/TR]
[TR]
[TD]Evening[/TD]
[TD="class: xl65, align: right"]28/11/2017 22:42[/TD]
[TD="class: xl65, align: right"][/TD]
[TD]00602455[/TD]
[TD="align: right"]26612[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Night[/TD]
[TD="class: xl65, bgcolor: transparent, align: right"]29/11/2017 05:17
[/TD]
[TD="class: xl65, bgcolor: transparent, align: right"][/TD]
[TD="bgcolor: transparent"]00602455[/TD]
[TD="bgcolor: transparent, align: right"]23101[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
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,224,823
Messages
6,181,179
Members
453,021
Latest member
Justyna P

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