Delete Duplicates Or Adding Extra Cells To Keep The 24 Hour Time Sequence Intact?

Apr 26, 2014

i am trying to remove some duplicates in a sequence and add new cells for missing ones

View 9 Replies


24 Hour Time Adding

Apr 2, 2009

I have a start time in cell A1 (say 9am entered as 900), cell B1 has a time interval (25min), Cell C1 gives total (925). Cell B2 has the next time interval (56min). How do I get cell C2 to give total of 1021 rather than 981? Values in columns B and C continue on down.

View 3 Replies View Related

Counting The Number Of Extra People Working Each Hour?

Aug 19, 2014

I am trying to count the number of extra people scheduled for each hour of the day, from 2 dropdowns in A3:B7

The formula in (1) D11:D26 works, but when the shift passes over the midnight it will not count accurately.

The formula in (2) E11:E26 also works well, but only counts the number of times a particular hour is mentioned, but not the number of extras in C3:C7.

The results in (3) F11: F26 are what I need, which is based on looking at the times from the dropdowns and using the number of extras in C3:C7.

View 2 Replies View Related

Changing Date/time To Run A 12 Hour Production Schedule, And Not 24 Hour

Sep 4, 2006

I have created a daily schedule which has a number of factory variables taken into consideration which determine the date and time a particular product should, barring any mechanical problems, come off the machine. (see attached spreadsheet).

The date at the top will be editable by me only so that when I update the production quantities, the “date/time off” column automatically re-adjusts to the remaining quantities.

The formulas are a little long winded, but I have left them that way whilst I try and develop it. I should be able to figure out how to condense them later.

My problem is that the “date/time off” on the right works excellent, but over a 24 hr period.

Ordinarily, we work a 12 hour day (6am to 6pm) with overlapping shifts to cover breaks, and 20 mins warm up at the start of the day for the machine, thus maximising a 12 hour day.

Of course if demand exceeds the allotted time we put on overtime.

Is it possible to specify that normal days are only 12 hours so that if a product exceeds 6pm, it flows into the next day with the balance starting at 6:20am?

And, if the production for the week exceeds the time could I stipulate particular days which we deem are suitable for overtime? Ie, we decide Wednesday is a 14 hour day and not 12.

I had toyed with the idea of creating a 365 day table/calendar, on another worksheet which would have its individual allocated hours in an adjacent column and somehow link them to the date/time off, perhaps by way of a VLOOKUP, but I have been chasing my tail trying to figure out how to implement it.

View 9 Replies View Related

Delete Extra Useless Cells From Excel File?

Jan 20, 2013

I have some excel files that contain data when I'VE finished entering data >> I saved it when I open the file >>> I FIND THE DATA INTACT .. NO PROBLEM BUT I FIND ALOT OF EMPTY CELLS THAT ARE USELESS I WANT TO DELETE THESE EXTRA EMPTY CELLS... SO WHEN I OPEN THE FILE I CAN FIND ONLY the data .

I have attached a file as an example

View 14 Replies View Related

Format Cells So 24 Hour Time May Be Input Without Colon

Nov 30, 2003

Is there a way to format cells so 24 hour time may be input without the colon, as an example 1425 instead or 14:25? We can do it in Access. One would think it possible in Excel, yet I have not discover how if indeed its possible.

View 9 Replies View Related

Adding Time: Adding Individual Cells Works, But SUM Doesn't

Mar 28, 2008

I have a column of times: e.g. 10:03:00 and I would like to add them all up.

=A1+A2 works fine.

=sum(A1:A10) does not.

View 14 Replies View Related

Convert To 12-hour Time From 24-hour Time

Mar 7, 2008

I'd like to convert from 24 hour standard time to 12 hour time using VBA code. For example: instead of 13:00 I need 1:00.

View 9 Replies View Related

CONVERT 24-Hour Time To 12-Hour Time

May 8, 2008

I have a list of FLIGHT departure times that are listed in MIL TIME, however, there is no : in the format. Its just 4 or 3 digit numbers. I need to convert these to time in 12-hour clock. If I go to FORMAT/CELL/TIME and select 1:30pm it simply makes the time ZERO!

View 9 Replies View Related

Adding Contents Of Cells For Duplicates

Dec 18, 2009

I have an employee sheet which has multiple hours rows for one employee, i want to select an employee ID and add corresponding hours and place both in a separate sheet. Here's my code so far.

Sub dup()
Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual
Set NewSheet = Worksheets.Add
NewSheet.Name = "NEW"
Set NewSheet = Worksheets.Add
supcount = 2
countresources = 0
Do While Sheets("RS Nov 2009").Range("A" & supcount).Value ""
countresources = countresources + 1
supcount = supcount + 1................

View 9 Replies View Related

Adding Extra Line In A Cell

Oct 4, 2009

I have some data in Cell A1 and B1, I want that data in combined in one cell but in diffetent lines.. For example if i have 123 in A1 and 456 in B1, I need it to show the result as below in C2


View 2 Replies View Related

Adding An Extra Condition To An IF Statement

Nov 17, 2009

=IF(SUM(Q4)=0,"",MAX(0,G4-MAX(F4,Q4))/7) - to calculate number of days for year

=IF(SUM(TODAY()>G4),(G4-MAX(F4,Q4))/7,SUM(TODAY()-MAX(F4,Q4))/7) - to calculate number of days year to date

I am using this condition to calculate the length of a service which falls with in a specific review period, eg

Service starts 1 Feb 09 and finishes 30 April 09

The review period is 1 Mar 09 and finishes 31 May 09.

I would need to measure the number of days that fall within the review period, which would be 1 Mar 09 - 30 April 09

At the moment I am missing a condition which identifies whether to subtract from 'service end date' or 'review end date'.

View 6 Replies View Related

Worksheet_selectionchange Adding Extra Line

Jul 13, 2007

The attached file receives information from another program in cells A2:D2. It then carries out a copy/pastespecial, and then does a copy insert. The script is supposed to update when new data enters the cell, however it keep adding an additional null line. Does anyone know why this is or how to fix it?

View 2 Replies View Related

Remove Duplicates Cells Not Delete Row VBA?

May 30, 2014

I have scroll a column and clear (not delete) the content of those cells that they are repeated. not delete the row

I tried with this code but doesn't work, why?

[Code] ......

View 1 Replies View Related

Remove Duplicates And Delete Cells...

Feb 20, 2009

I am using the following code to grab installed software on a remote computer through a macro in Excel 2007. I don't have the entire code I'm using as the majority of it works, this section here though is where I'm having problems.

View 4 Replies View Related

Concatenate Cells And Delete Duplicates

Apr 1, 2009

I have an excel 2007 spreadsheet that lists
items on multiple rows for the same customer.

Each sheet will list anywhere from 25 to 100 individual customers.

I need to identify the duplicates, concatenate
the "Items" to a single cell on the first row, and
delete the duplicate rows. eg:

Cust #| Item
1 | A
1 | B
1 | C
2 | B
2 | E
3 | A
3 | C
3 | E

The result should look like:

Cust# | New Item
1 | A, B, C
2 | B, E
3 | A, C, E

View 14 Replies View Related

Formula To Calculate Time Allotted Minus Time Used And Show Difference In Hour And Minutes?

Apr 27, 2014

Formula to calculate time allotted minus time used and show the difference in hour and minute.

View 1 Replies View Related

Analysis Of Adding Extra Row To A Model With Lot Of Macros

Apr 27, 2014

I have recently started working on a model built by some one else and I need to add a extra row to model. The Model has lot of macros on every page. So i need to know how adding an extra row is going to affect the macros.

I understand the main problem would be that the references in the macro wont get updated which might lead the macro to malfunction.

Whats the best way to analyze which macros are getting effected.

View 1 Replies View Related

Adding In Extra Spaces For Post Codes

Mar 2, 2009

I have a table of postcodes and I need to import them into a bespoke application. The aaplication requires them to have extra spaces depending on the postcode i.e.

BS35 2JW - this is fine because it has the maximum amount of characters 8

BS1 2JW - I need to add 1 space

B1 2JW - I need to add 2 spaces

View 9 Replies View Related

Delete All Duplicates (all Cells) In Range Specific

Apr 20, 2013

I need a code to delete all duplicates (all cells) in the range A1: F100?



View 5 Replies View Related

Changing Elapsed Time Into Time As Portion Of An Hour

Sep 11, 2013

In A1 I have 35 min elapsed time and need to change it to time as a portion of an hour. It reads the 35 min as TIME, therefore I am currently using

=IF(A1>=0.5,A1-0.5,A1)*24. Output is .58, which is perfect.

(output column formatted as a number)

Likewise 3:28 becomes 3.47.

View 1 Replies View Related

Sequence Adding Based On Name?

Jul 1, 2014

I want the numbers to increase based on the labels from a list, such as the first john chosen will get a 1 on the first cell on sheet 2, if john is chosen again the 2nd john will get a 2 on the next cell on sheet 2 and so on for the other names.

I tried to use IF(COUNTIF(D:D,D2)=1,LARGE(IF(D:D=D2,E:E)+1),1) but it didn't work out.

View 3 Replies View Related

VBA Macro Not Working To Copy Cells Then Delete Duplicates

May 29, 2013

I need it to clear the contents from the cells, then copy a number of sets of cells from selector, paste them in to AM call plan and then delete the duplicates. My code is getting stuck very early in the whole thing. The copy, paste sequences, were originally recorded as a macro, then added to trying to get it to work.

Here is the code, and the red line of code is where it is stopping:

Sub Call_Plan_Targets()
' Call_Plan_Targets Macro
Dim LR As Long
Application.ScreenUpdating = False
LR = ActiveSheet.UsedRange.Rows.Count


View 1 Replies View Related

Time W/in Each Hour Of Day Btwn A Time Range

Dec 20, 2007

I need a formula to calculate the time (in hours/fractions of an hour) that is "covered" for each hour of the day between a range of times. In other words, I have a "START TIME" and an "END TIME" and for each hour of the 24-hour clock, I want to know how much time this range covers.

For example, if my start time is 3:30am and my end time is 5:15am, for the 3am hour, the formula would return 0.5 hours, for the 4am hour it would return 1.0 hours, for the 5am hour it would return 0.25 hours, and for all other hours it would return 0.0 hours. The range of START TIME and END TIME can be up to 24 hours (but not more), but the tricky part is that the START TIME can be on the day BEFORE the END TIME (e.g., START TIME of 10:35pm and END TIME of 5:45pm the next day).

View 9 Replies View Related

Time Sheet :: 12 Hour Time Format With AM/PM

Mar 13, 2008

I found a formula for calculating time in the HH:MM AM/PM


This formula was to give me total hours in the cell for which it is entered, and cell format for the formula was in military format.

I cannot find this post. The formula worked in OpenOffice Calc program, but when it came to converting to excel, I came up with #value!

I want to enter the time in 12 hour format and using am/pm to designate. I am making it for someone to make work schedules with and they do not know military time.

View 11 Replies View Related

Copy / Paste To Text File Adding Extra Quotation Mark

Nov 3, 2011

I'm using =CONCATENATE() to create Html code.

HTML Code:
=CONCATENATE("<img class=",""""&"alignleft size-medium"&""""," ","title=",""""&D6&""""," ","src=",""""&
"http://www."&E6&"/images/"&C6&""""," ","alt=",""""&F6&""""," />")

The code looks good in the cell:

HTML Code:
<img class="alignleft size-medium" title="Image title here" src=
"" alt="Image alt here" />

But when I copy/paste onto a txt file, its adding an extra (unnecessary) Quotation mark (see code below)

HTML Code:
<img class=""alignleft size-medium"" title=""Image title here"" src=
"""" alt=""Image alt here"" />

View 8 Replies View Related

Delete Date & Time Cells Based On Time

Dec 6, 2006

I have a large dataset where the first column is date and time i.e. "20/01/2005 03:41:06" and I want to delete certain rows based on the times. I have already tried playing about with macro's but failed fairly spectacularly so far. I have code from someone else to delete cells if the value equals a certain time but this doesn't work as the cell contains the date too.

I have already recorded one macro to reformat the data to as the software return 10 timestamped samples per hour and I want 8 i.e. every three hours so there is constant separation for statistical purposes. Both the macros are shown below so you can see what I have.

Ideally I would like to replace the line - If (r.Cells(n, 1) = TimeValue("22:41:06")) ............ - with one that reads - If (r.Cells(n, 1) CONTAINS TimeValue........ - but I don't know if that is possible? If not is there a way to separate the time from the date into 2 columns and then I can delete rows based on the time column using the code below? .......

View 9 Replies View Related

Adding Time Cells Together

Jul 14, 2006

1) I am trying to find a way to add together the total number of hours worked from shift start time to the end of the shift start time throughout the week.

2) Add together the total number of hours travelled. again from the start and end times throughout the week...(presumably, if I solve the first problem, it in itself will provide the second solution.!! (Grin)

Where shift start and end times are concerned, the cells are formatted as time, but I want the sheet to produce the results of the total number of hours worked, so that I may cost the hours and make payment. Ie: 62 hours worked = £ at such and such a rate, and 25hrs travel paid at £ different rate.

View 8 Replies View Related

Delete Thousands Of Extra Columns

Dec 4, 2012

My production spreadsheet has thousands of unwanted columns and I am unsure as to how they appeared. I want to delete them. I have tried selecting all of them and deleting them, but nothing happens. I have tried go to > blanks, but it freezes because there are so many columns.

Also, I tried to copy paste to a new sheet, but the formulas get messed up.

For a mental picture, the spreadsheet is approx 225 rows by 25 columns.

View 14 Replies View Related

Delete Extra Spaces After Text

Jun 20, 2014

Please refer to attached file.

Column A have data and i need VB Code (Not formula) to check each cell in column A and delete any spaces and make sure that there is no spaces after end of the text.

As an example you can see Cell cell A15 thru A22 have spaces after the text so need to delete those spaces


View 3 Replies View Related

Copyrights 2005-15, All rights reserved