+ Reply to Thread
Results 1 to 7 of 7

Add I hour to column cells

  1. #1
    Forum Contributor
    Join Date
    03-30-2014
    Location
    https://t.me/pump_upp
    MS-Off Ver
    Excel 2013
    Posts
    274

    Add I hour to column cells

    I would like to add 1 hour to these cells in column A:A (varied length daily)
    I have sample data as follows
    Vba would be good but i will be happy with any solution as I have a headache from trying to get a solution
    12:30 Staw (AUS) Place
    12:35 Cona (AUS) Place
    12:50 Lism (AUS) Place
    13:00 Staw (AUS) Place
    13:10 Cona (AUS) Place
    13:25 Lism (AUS) Place
    13:30 Staw (AUS) Place
    13:45 Cona (AUS) Place
    14:00 Staw (AUS) Place
    14:05 Lism (AUS) Place
    14:25 Cona (AUS) Place
    Where it is 12:30 Staw (AUS) Place
    it should read 13:30 Staw (AUS) Place
    any help will again be appreciated
    Graham

  2. #2
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Add I hour to column cells

    Give this a go.
    Hope this clears your headache.

    Please Login or Register  to view this content.
    Last edited by bakerman2; 10-22-2017 at 10:40 PM.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  3. #3
    Forum Contributor
    Join Date
    03-30-2014
    Location
    https://t.me/pump_upp
    MS-Off Ver
    Excel 2013
    Posts
    274

    Re: Add I hour to column cells

    Thanks for your effort, but the headache has been extended (LOL)
    I have error on line 3

    st = TimeValue(Split(sn(i, 1), " ")(0)) + TimeSerial(1, 0, 0)

    Says error 13 type mismatch
    any Ideas please
    Graham

  4. #4
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Add I hour to column cells

    Post a sample file with actual data because when I copy data from your first post all works well.

  5. #5
    Forum Contributor
    Join Date
    03-30-2014
    Location
    https://t.me/pump_upp
    MS-Off Ver
    Excel 2013
    Posts
    274

    Re: Add I hour to column cells

    Ok Thanks Bakerman2
    here it is
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    10-12-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016 in 2024
    Posts
    857

    Re: Add I hour to column cells

    Hi Graham

    you have the title of "Race" in row 1, so change this line:

    Please Login or Register  to view this content.
    to

    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    03-30-2014
    Location
    https://t.me/pump_upp
    MS-Off Ver
    Excel 2013
    Posts
    274

    Re: Add I hour to column cells

    Thanks Bakerman2 works a treat....headache over
    Regards And A big thanks
    Graham

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Formula to convert 24 hour day to 8 hour (working) day?
    By miro2021 in forum Excel General
    Replies: 4
    Last Post: 07-31-2017, 10:06 AM
  2. Replies: 4
    Last Post: 10-02-2015, 10:00 AM
  3. Subtract 4 hour from all cells in a column
    By RandyD123 in forum Excel General
    Replies: 9
    Last Post: 03-15-2014, 02:24 PM
  4. Replies: 0
    Last Post: 03-07-2014, 11:26 AM
  5. 24 hour clock problems text to column
    By andyspeak in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 01-19-2014, 10:50 PM
  6. How do I? Hour by Hour Occurrences between a Date Range?
    By lesoies in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-06-2013, 09:01 PM
  7. [SOLVED] convert decimal numbers to a fraction of an hour for payroll hour
    By Flower in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-10-2006, 03:50 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1