Index Match with time range criteria?

sleeplab

New Member
Joined
May 31, 2018
Messages
1
The Problem
So the raw data I'm using looks like this:

DateTimeActivityCode
8/31/2017

<tbody>
</tbody>
16:05107
8/31/2017 17:1351
9/1/201715:0014

<tbody>
</tbody>

And I'm trying to format it to look like this:

DateActivity_15:00Code_15:00Activity_16:00Code_16:00Activity_17:00Code_17:00
8/31/2017 10751
9/1/201714

<tbody>
</tbody>

Criteria: Timestamp on the code must be within 15 minutes of the hour

So I figured I'd use an index match to compare the time stamp to an independent table with times (ie. 15:45/16:15). However I'm running into problems trying to create an array, and being able to select both the activity value, and code value.

Am I using the correct function with a index match, or vlookup?

Thanks.
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
It is hard to build a formula that uses the values in the first row. If you can rearrange your values in the first row?

Date Activity_15:00 Code_15:00 Activity_16:00 Code_16:00 Activity_17:00 Code_17:00

to something like this:

Activity_15:00 Activity_16:00 Activity_17:00
 
Upvote 0

Forum statistics

Threads
1,221,510
Messages
6,160,226
Members
451,632
Latest member
purpleflower26

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