LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.newusers,microsoft.public.excel.programming,microsoft.public.excel.worksheet.functions,microsoft.public.excel.worksheetfunctions
external usenet poster
 
Posts: 29
Default Time array


I have this question in an early post "I want to create a time array. For
example, cell A1 is the starting time of 6:00 AM, and cell B1 which contains
the ending time of 2 PM. From 6 am to 2 pm is exactly 8 hours. I want to
create an array of 8 elements with the
starting value of 6:00 AM, and the last value in the array with the value of
2 pm. Of course, the array will start
from cell C1 to J1 or 8 elements cell. Is there a formula
to do? or is it possible to do this inexcel at all? It would be similar to
the one below."

Thanks to T. volko who came up a solution and a formula below:
=IF(COUNT($A1:$B1)<2,"",IF($A1+(COLUMNS($A:A)-1)/24$B1,"",$A1+(COLUMNS($A:A)-1)/24))

Thanks to To Ogilvy who pointed out that I need 9 elements instead of 8.

All work. However, here is the twist. I inserted a row, making all
imformation from above bumped into row2. Starting from C1 which is now a
blank cell I typed 12:00 AM and dragged it across to 11 pm, which is 24
hours. Now, I want to create a time array for row2, which can only visible
or start if a time in row1 match the starting time in cell A1, and it must
end with 1 element less than the array, in which the previous example ended
with 2 pm(9 elements) pm, but now it will end (8 elements) with1pm.
Maybe the below drawing can help explain my question. Can anybody help?
A B C D E
start end 12:00 AM 1:00 AM--6:00 AM
6:00 AM 2:00 PM



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
meaning of : IF(Switch; Average(array A, array B); array A) DXAT Excel Worksheet Functions 1 October 24th 06 06:11 PM
combining cells and array from different sheets into an array to pass to IRR() [email protected] Excel Discussion (Misc queries) 3 September 11th 06 07:17 AM
Use array to return array of values Brad Excel Worksheet Functions 2 March 30th 06 05:58 PM
Goal Seek On Members of an Array within Array LostInVBA Excel Worksheet Functions 1 June 27th 05 11:01 PM
Matching an Array in one Tab with an Array with another Tab LanceMSU Excel Worksheet Functions 4 February 22nd 05 02:16 AM


All times are GMT +1. The time now is 01:23 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"