Automatic Absolute Cell Reference Formula

QU4487

Board Regular
Joined
Jul 3, 2013
Messages
183
Please excuse the sanitised description. I have a list of people conducting a number of events each, over time. I need to be able to tell the time difference between the last event for each person and the previous events they conducted. I have attached an example of how I can do it manually, using absolute cell referencing, but the list is in the hundreds and it's a bit tedious doing it this way.

Any help would be greatly appreciated.


[TABLE="width: 700"]
<tbody>[TR]
[TD]Individual[/TD]
[TD]Event Date Time[/TD]
[TD]Difference From Final Event[/TD]
[TD]Formula[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]07/06/2013 14:50:07[/TD]
[TD]00:00:00
[/TD]
[TD]=B$2-B2[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]07/06/2013 14:27:47[/TD]
[TD]00:01:48[/TD]
[TD]=B$4-B3[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]07/06/2013 14:29:35[/TD]
[TD]00:00:00[/TD]
[TD]=B$4-B4[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]07/06/2013 14:28:11[/TD]
[TD]00:14:35[/TD]
[TD]=B$7-B5[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]07/06/2013 14:41:55[/TD]
[TD]00:00:51[/TD]
[TD]=B$7-B6[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]07/06/2013 14:42:46[/TD]
[TD]00:00:00[/TD]
[TD]=B$7-B7[/TD]
[/TR]
[TR]
[TD]D[/TD]
[TD]07/06/2013 13:50:52[/TD]
[TD]01:01:18[/TD]
[TD]=B$11-B8[/TD]
[/TR]
[TR]
[TD]D[/TD]
[TD]07/06/2013 13:50:53[/TD]
[TD]01:01:17[/TD]
[TD]=B$11-B9[/TD]
[/TR]
[TR]
[TD]D[/TD]
[TD]07/06/2013 14:13:24[/TD]
[TD]00:38:46[/TD]
[TD]=B$11-B10[/TD]
[/TR]
[TR]
[TD]D[/TD]
[TD]07/06/2013 14:52:10[/TD]
[TD]00:00:00[/TD]
[TD]=B$11-B11[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
As the last time is always on top, you can use =VLOOKUP() to find the previous time.

For example if your last entered individual B is on row 3, column A then the formula should be =IF(ISNA(VLOOKUP("B",A4:B1000,2,FALSE)),0,VLOOKUP("B",A4:B1000,2,FALSE))

Success,
Erik
 
Upvote 0
One possible way:
Excel Workbook
ABCD
1IndividualEvent Date TimeDifference From Final EventFormula
2A07/06/2013 14:5000:00:000:00:00
3B07/06/2013 14:2700:01:480:01:48
4B07/06/2013 14:2900:00:000:00:00
5C07/06/2013 14:2800:14:350:14:35
6C07/06/2013 14:4100:00:510:00:51
7C07/06/2013 14:4200:00:000:00:00
8D07/06/2013 13:5001:01:181:01:18
9D07/06/2013 13:5001:01:171:01:17
10D07/06/2013 14:1300:38:460:38:46
11D07/06/2013 14:5200:00:000:00:00
Sheet1
 
Upvote 0
Eric,

Thanks for the reply, it would do what I'm looking for. However, I think FormR and davesweep have come up with simpler solution. And I always prefer simple.

Guys, I'm in awe.

Many thanks
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,912
Members
452,366
Latest member
TePunaBloke

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