Formula help

KatSlif

New Member
Joined
Apr 3, 2014
Messages
28
Hello
Hoping you can help me with a formula

Scenario:

Id Date Location Location Start Date time Location End Date Time
123 09/01/2018 AAA 10/01/2018 06:30 12/01/2018 14:00
123 09/01/2018 BBB 09/01/201808:10 10/01/201806:30

I need help with a formula that looks at the Id and brings through the firstlocation the person was at using Location Start Date Time – in the abovescenario it would bring through location BBB.

Can this be done?
If you could let me know that would be great
Kind Regards
Katherine
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Hi,

Try this : An array formula , Ctrl+Shift+Enter NOT just Enter

J2 =INDEX(C2:C3,MATCH(MIN(D2:D3+E2:E3),D2:D3+E2:E3,0))




ABCDEFGHIJ
1IdDateLocation StratDatetimeLocation EndDateTime
212309/01/18AAA10/01/1806:3012/01/1814:00BBB
312309/01/18BBB09/01/1808:1010/01/1806:30

<colgroup><col span="3"><col><col span="2"><col><col span="4"></colgroup><tbody>
</tbody>
 
Upvote 0
Hi,

Try this : An array formula , Ctrl+Shift+Enter NOT just Enter

J2 =INDEX(C2:C3,MATCH(MIN(D2:D3+E2:E3),D2:D3+E2:E3,0))




A
B
C
D
E
F
G
H
I
J
1
Id
Date
Location Strat
Date
time
Location End
Date
Time
2
123
09/01/18
AAA
10/01/18
06:30
12/01/18
14:00
BBB
3
123
09/01/18
BBB
09/01/18
08:10
10/01/18
06:30

<tbody>
</tbody>

Hello

I have tried the above and it is bringing through the same value for every record?
 
Upvote 0
Hi,

Ctrl+Shift+Enter NOT just Enter

J2 =INDEX($C$2:$C$5,MATCH(MIN(IFERROR(1/($A$2:$A$5=A2)*($B$2:$B$5<>0)*($B$2:$B$5)+($E$2:$E$5),9^9)),$B$2:$B$5+$E$2:$E$5,0))


ABCDEFGHIJ
1IdDateLocation StratDatetimeLocation EndDateTime
212309/01/18AAA10/01/1806:3012/01/1814:00DDD
312404/01/18BBB05/01/1808:1010/01/1806:30CCC
412404/01/18CCC05/01/1807:2010/01/1806:30CCC
512308/01/18DDD05/01/1807:2010/01/1806:30DDD

<colgroup><col span="3"><col><col span="2"><col><col span="4"></colgroup><tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,214,932
Messages
6,122,323
Members
449,077
Latest member
jmsotelo

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