Excel Days between Dates in a Table

funcppl5

New Member
Joined
Nov 22, 2010
Messages
3
I have a Excel Table, I am trying to get the amount of days between to dates but per individual unit.

Unfortunately I can not download a picture so I will try to describe it.

In Column A I have PLUG I.D. (these are Numbers or Letters)
In Column B I have SETTING DATE
In Column C I want TIME BETWEEN SETTING

Say in A1 I Have Plug "L" set on 1/01/2017
and in A20 is the next Plug "L" and it was set on 2/15/2017
and there are multiple other plugs set between these dates, but I would like them all to go off the Plug I.D.

I have tried DATEDIF function and it works until you filter the list by PLUG I.D.

I would really appreciate any help I could get.
Have a great day
Shawn
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Hi Shawn, with your example, enter below formula in C20:-

=B20-MAX(IF($A$1:$A$19="L",$B$1:$B$19,""))

Confirm with ctrl shift enter, not just enter and format C20 as General.

Regards,
DILIPandey
 
Upvote 0
Thank you for your reply DILIPandey.

When you are looking in Cloumn A for the individual Plug ID ("L") do you know how to make it adjustable?

Thank you
 
Upvote 0

Forum statistics

Threads
1,215,924
Messages
6,127,725
Members
449,401
Latest member
TTXS

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