Work out elapsed time spent at a location

chakyt

New Member
Joined
Mar 4, 2015
Messages
6
I am trying to find out how long (in days) a ship is spending at a specific location by analysing satellite data.


This would be easy if the ship gave out consistent data, but due to technical issues it gives out inconsistent signals giving incorrect results. The satellite data also gives time data, but I’m not interested in that, only dates - hence the duplicate 02/12/14.


Is there any way to take a subtotal count of location A (e.g. 5 satellite signals) as well as working out the elapsed days between 02/12 > 18/12 (e.g.: 16 days) spent at location A?
09IWFPR.png


Thanks!
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
This is a CSE formula which requires you to confirm it by hitting the CTRL-Shift-ENTER keys simultaneously (do not just hit the ENTER key):
=MAX(IF(A4:A11="A",B4:B11))-MIN(IF(A4:A11="A",B4:B11))
 
Upvote 0
Hi RonB1111,

Thanks very much for your reply! Unfortunately that formula is returning "0". I've pressed Ctrl-shift-enter but doesn't seem to work.
Can I maybe send my spreadsheet to you so you can have a look?
http://i.imgur.com/62v5WEu.png

Thanks,
Chakyt
 
Upvote 0
Change "100.13" to 100.13 without the quotes in both instances in your formula. The 100.13 is a numeric value in column A. Only use the quotation marks if it is text.
 
Upvote 0
what if you´re changing column A to B instead. You seem to have a rounding on the location, perhaps location A contains more decimals.
 
Upvote 0
Please verify a couple things:
1. Make sure the 100.13 in A2 is not, for instance 100.12895. (in format cells, increase the number of decimals to verify its 100.13000000)
2. Make sure the dates in Col D are in Excel Date Format, and not text in the form of 2014-12-14 (if you format the cell as a Number, it should display 41,997)
 
Upvote 0
Yeh, I thought that might make a difference so I've gotten rid of that column and am just using the visible values now. How about this? It's still returning 0 though...
SqyaAri.png
 
Upvote 0

Forum statistics

Threads
1,223,275
Messages
6,171,126
Members
452,381
Latest member
Nova88

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