+ Reply to Thread
Results 1 to 4 of 4

increase count on tracking sheet based on date entry between dates in another sheet

  1. #1
    Registered User
    Join Date
    12-16-2015
    Location
    Essex UK
    MS-Off Ver
    office 365
    Posts
    11

    increase count on tracking sheet based on date entry between dates in another sheet

    hi

    Back again, sorry.

    I have some code shown below, which increases the count in a column based on input into the relevant cell

    Private Sub Worksheet_Change(ByVal Target As Range) ' changes count when date changes

    If Target.Column = 4 Then
    Target.Offset(0, 1) = Target.Offset(0, 1) + 1
    End If

    End Sub

    I would also like to increase the count in another worksheet based on date of entry falling between set dates and one other criterion.

    in the attached workbook, if i change date in Sheet "safeguard" col D, i would like col E to increase by value of 1 and "tracking" rows 5-9 to increase by 1 based on date entered in "safeguard" col D and year group of student

    any pointers greatly appreciated

    cheers

    demo.xlsm

  2. #2
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: increase count on tracking sheet based on date entry between dates in another sheet

    Using the term "based on" is generic.

    Please tell us what specific numbers etc. would dictate what changes and in what cells.

    A specific example of what you would enter in a cell and what the other cells would change to and why, is required.

    Please use sheet names and cell addresses when telling us what to do.

    Example: Type 5 in Sheet1 cell A1 and cell B5 on Sheet2 should be 7 because etc...
    Click the * Add Reputation button in the lower left hand corner of this post to say thanks.

    Don't forget to mark this thread SOLVED by going to the "Thread Tools" drop down list above your first post and choosing solved.

  3. #3
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: increase count on tracking sheet based on date entry between dates in another sheet

    Try this...
    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  4. #4
    Registered User
    Join Date
    12-16-2015
    Location
    Essex UK
    MS-Off Ver
    office 365
    Posts
    11

    Re: increase count on tracking sheet based on date entry between dates in another sheet

    Great, thanks very much, works beautifully

+ 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. Replies: 4
    Last Post: 10-16-2015, 12:59 PM
  2. [SOLVED] Save sheet to new sheet and name it based on date on first sheet cell
    By dwheggen1 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-28-2015, 12:25 PM
  3. Tracking Sheet - Drop down list with dates <= Today ( )
    By excelsiors in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-18-2014, 06:35 AM
  4. VBA code to move data from a entry sheet to a historical sheet by date
    By rlh in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-17-2014, 07:15 PM
  5. As user fills out data sheet, then fill out a results sheet based on data sheet entry
    By clemsoncooz in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-13-2012, 03:57 PM
  6. Populate Sheet Based on Entry on Another Sheet
    By chocolate_ty2000 in forum Excel General
    Replies: 0
    Last Post: 03-15-2011, 02:29 PM
  7. VBA to count rows in a sheet and increase counter on another sheet then print
    By lgj32 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-19-2006, 07:10 AM

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