+ Reply to Thread
Results 1 to 11 of 11

How to change all the times

  1. #1
    Registered User
    Join Date
    02-03-2010
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    7

    Smile How to change all the times

    Hi,
    I'd like to change only all the times as C2.
    Which formula could I put in B1?

    Thank you very much
    Attached Files Attached Files
    Last edited by Biscuits; 02-07-2010 at 03:44 AM.

  2. #2
    Forum Contributor
    Join Date
    04-18-2009
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2016
    Posts
    269

    Re: How to change all the times

    It is not very clear which times you wish to change. Can you elaborate a little more?

    Regards,
    Karan

  3. #3
    Registered User
    Join Date
    02-03-2010
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: How to change all the times

    Quote Originally Posted by karan View Post
    It is not very clear which times you wish to change. Can you elaborate a little more?

    Regards,
    Karan
    Hi Karan,
    In the attached xls, the time 00:01:13,083 --> 00:01:19,250 in C2 is the same to A2.
    I'd like C6=A6, C10=A10....etc. (others not changed)

    Thank you ^_^

  4. #4
    Forum Expert
    Join Date
    11-27-2007
    Location
    New Jersey, USA
    MS-Off Ver
    2013
    Posts
    1,669

    Re: How to change all the times

    if you want all 4th cells after C2 changed to respective cells from A, then see attached file.
    when you click on RUN, it will make all C2, C6, C10.... etc. same as A2, A6, A10... etc.

    Otherwise, redefine what you need.

    modytrane
    Attached Files Attached Files

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: How to change all the times

    like this?
    i did it by
    1. in b1 put
    =IF(OR(LEFT(C1,2)={"00","01"}),ROW()+6000,ROW()) and dragged down
    then copied paste back special values
    then sorted by col b
    whent to first 6XXX row and in cxxx put = axxxx wher xxxx is row number
    drag down to last value
    copy col c paste back special values
    in a spare cell put 6000
    copied that
    selected all 6XXX values pasted special subtract
    select all colls again and sorted by col b
    deleted contents col b
    mind you probably easier just to
    =IF(OR(LEFT(C1,2)={"00","01"}),A1,C1) in another column drag down then copy paste special over c and delete the formulas
    Attached Files Attached Files
    Last edited by martindwilson; 02-05-2010 at 10:49 AM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  6. #6
    Forum Expert
    Join Date
    11-27-2007
    Location
    New Jersey, USA
    MS-Off Ver
    2013
    Posts
    1,669

    Re: How to change all the times

    Ok, I missed it. I didn't realize that it's not every 4th row.
    I have modified the macro to look for "00:" as first three chars in column A.
    see attached file.

    modytrane
    Attached Files Attached Files

  7. #7
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: How to change all the times

    Another route might be:

    B2: =IF(A2="","",IF(ISNUMBER(A1),A2,C2))
    copied down for all records

    Copy paste results as values over C2 etc...

  8. #8
    Forum Expert
    Join Date
    11-27-2007
    Location
    New Jersey, USA
    MS-Off Ver
    2013
    Posts
    1,669

    Re: How to change all the times

    DO,
    I think you meant

    Please Login or Register  to view this content.
    modytrane

  9. #9
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: How to change all the times

    No, I meant what I entered... the number resides in the row above (A1) not the current row (A2)... thanks though.

  10. #10
    Forum Expert
    Join Date
    11-27-2007
    Location
    New Jersey, USA
    MS-Off Ver
    2013
    Posts
    1,669

    Re: How to change all the times

    Sorry, DO;
    you were right with

    Please Login or Register  to view this content.
    modytrane

  11. #11
    Registered User
    Join Date
    02-03-2010
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: How to change all the times

    Nice!
    Thanks a lot, Karan, modytrane, martindwilson, and DonkeyOte ^_^

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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