473,395 Members | 2,795 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Populate spreadsheet with month, day and 24 hr time in half hour increments

11
Hi, I need to create a spreadsheet with Month, Day, and Time in Col A, B, and C respectively. My first time point is 5/17/2013 at 2200. How can I enter a formula that will populate the time in half hour increments and loop back to "0000" after "2330"? Also, I need the date alongside each time point. I entered the first day (B2) and time (C2) manually and applied this formula to B3: =IF(C3>0,B2,B2+1)

A B C
1 Month Day Time
2 5 17 2200
3 5 17 2230
4 5 17 2300
5 5 17 2330
6 5 17 0000
7 5 18 0030
8 5 18 0100

This works well for all time points >0, but when the formula encounters the time point "0000", it enters the previous date for that time point, when it is actually the first record for the subsequent day. If there was a way to use an advanced "find and replace" rule I could fix this by creating this rule: FIND where C (time point)="0000", REPLACE adjacent cell in column B(day) with the cell below. So in data above, the rule would FIND C6 and REPLACE B6 with B7.
Any advice would be appreciated, I tried to make this question thorough but concise. Thank you!!
Jan 8 '14 #1
1 2510
Luuk
1,047 Expert 1GB
In cell A2 (value): '5/7/2013 22:00'
In cell B2 (formula): =A2
In cell C2 (formula): =A2
A3 (formula): =A2+30/(24*60)
B3 (formula): =A3
C3 (formula): =A3
copy row 3 down, as far as you like.......

Format column A as 'm'
Format column B as 'd'
Format column C as 'uu:mm'
Jan 12 '14 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Justin | last post by:
I am developing a voting system. How to preventing a user votes continuously? Maybe cookie is useful here, but I don't know how to use it. Could you give me a example? Thanks.
14
by: tlyczko | last post by:
I am looking to validate time worked in quarter-hour increments, e.g. ..25, .5, .75, 1.0, etc. etc. I know I can use a modulo statement for the evaluation but I could not find an explanation of...
2
by: lds | last post by:
I have inhertited and old asp application that I have to make a few changes to and I am having difficulties with a page that retrives data from the database, and places it into an Excel...
2
by: spoonerstreet | last post by:
I am trying to take standard MS Time: 2/22/2006 8:56:37 AM (stored in MS Decimal Format) and convert it to the half hour of the day it occurred in: 2/22/2006 8:56:37 AM would be in the 18th...
13
by: maflatoun | last post by:
Hi, I have the following function to convert UTC time to Local time. It works perfect for GMT- (Minus) time zones however it provides incorrect results for GMT+(Plus) time zones? // Format to...
0
by: fhmm | last post by:
hellow everybody i need your help i have problem in counting the waiting time for a person for example if we need to count the waiting time for a person from which he has come to the time 15:30...
2
by: nex85 | last post by:
hi! HOUR FROM TIME i) does anyone know how to determine which hour a time value lies in? the arrival time is in hh:mm:ss format. for e.g.: for an arrival time of 17:00:26, the correct conversion...
3
cori25
by: cori25 | last post by:
Hello... I am attempting to create code in a query to state: If the occurred in the previous month then 1, otherwise 0. This is what I attempted to do: OTLast...
6
by: olala123 | last post by:
i have created following drop down box for displaying year... i want to populate the drop down box upto current year.. and need to write a java script for this .. any pointers in this regard will be...
5
by: UdayKumarB | last post by:
Hi All, Did Anyone of you are aware of How to Find Windows Application(Winform) Idle time and If so, Close the Application. Thanks, Uday.
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.