Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi, I have a spreadsheet similiar to the one below. Lets call it
Sheet1. Using an excel macro, on a new sheet, lets call it Sheet2, I want the first row to have the amount of time between start and stop (stop-start) for the value 20, and to copy the value in column D. So sheet 2 might look like: Sheet 2 Col A Col B Col C 20 13 days Dog Notice that sometimes stop is listed on the row before start, and sometimes start is before stop. Also, sometimes there is only a start or a stop for a value in A, bur not both - in this case, I'd like to ignore that set. Is there some way to say something like ColB.Stop - ColB.Start WHERE ColA = ColA or something like that?? Sheet 1 Col A Col B Col C Col D 20 Start 5/17/2006 6:26:58 AM Dog 20 Stop 5/30/2006 11:54:33 AM Dog 30 Stop 5/28/2006 11:26:12 AM Cat 30 Start 5/20/2006 1:54:32 AM Cat 32 Stop 5/22/2006 5:56:38 AM Horse Thank you soooo much!!!! Dan |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Tricky IF/Then Date based formula needed | Excel Worksheet Functions | |||
Tricky Date calculation: How to calculate a future date | Excel Discussion (Misc queries) | |||
Date stamp formula results? Tricky problem? | Excel Discussion (Misc queries) | |||
Tricky hour calculation (re overtime spreadsheet). | Excel Programming | |||
Coding to show first _weekday_ prior to a date, when date calculation happens to fall on weekend? | Excel Programming |