+ Reply to Thread
Results 1 to 4 of 4

Using offset function to move the result one row down

  1. #1
    Registered User
    Join Date
    06-02-2010
    Location
    Melbourne
    MS-Off Ver
    Excel 2007
    Posts
    96

    Using offset function to move the result one row down

    Hi all,

    I have a sheet where a user presses a number of buttons and have a macro in place that counts the amount of times the button was pushed. Now I would like to add a column that records the time at which each click occured.

    Eg Using column J to display the data;

    Starting from cell J6 which will display the first time at which the button was pushed

    Every time the button is pressed i would like the time it was clicked displayed on row below the cell that displays the previous time it was pushed

    Ie 1st push J6 = 9:00am
    2nd push J7 = 10:13am
    3rd push J8 = 3:40pm

    and so on

    I beleive this is possible with a looping of an offset function, but wasnt exactly sure of how to fine tune it.

    If anyone could assist that would be great

    Cheers

  2. #2
    Forum Expert contaminated's Avatar
    Join Date
    05-07-2009
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Excel 2013
    Posts
    1,430

    Re: Using offset function to move the result one row down

    Hi. Please take a look a attachment. I used this code..

    Please Login or Register  to view this content.
    But I don't believe you will be able to apply this to your code. The main goal here is to show you technique of how to do that..
    Люди, питающие благие намерения, как раз и становятся чудовищами.

    Regards, ?Born in USSR?
    Vusal M Dadashev

    Baku, Azerbaijan

  3. #3
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,454

    Re: Using offset function to move the result one row down

    Along similar lines, this code should do as you ask.

    Please Login or Register  to view this content.
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  4. #4
    Registered User
    Join Date
    06-02-2010
    Location
    Melbourne
    MS-Off Ver
    Excel 2007
    Posts
    96

    Re: Using offset function to move the result one row down

    Thanks, its works perfectly. Cheers

+ 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