+ Reply to Thread
Results 1 to 10 of 10

if todays date then stamp a set of values.

  1. #1
    Registered User
    Join Date
    01-11-2007
    Location
    Aberdeen, Scotland, UK
    Posts
    21

    if todays date then stamp a set of values.

    I have table of values which a total is calculated for each product type as it is updated at the end of each day.

    Is there a way to setup another sheet to lookup the totals and then stamp them under the date, but not dissapear when the day ends.

    In the end i'm looking for a daily record of the totals..

    Hope you can help.

    Thanks
    Z

    I don't have the knowledge of VBR to make this macro,
    I can get it to copy and paste, but when it comes to making it match the column date to todays date and then copying and pasting the values into that specisfic row, that is a problem....

    Any Ideas...

    I got the formula : =IF(H$2=$A$1,$F5)

    A1 : =TODAY()
    H2 : COLUMN HEADING DATE
    F5 : VALUE

    Which is working fantastic and pulling the values under todays date.
    The problem comes tomorrow, when the date has changed;
    Todays values will go blank and tomorrows will be populated.

    I need yesterdays values to remain...

    Anyone??

    Z
    Last edited by TypeR; 02-16-2007 at 10:13 AM.

  2. #2
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,

    Daily totals can be done more easily ... it depends on the number of conditions ...
    Feel free to upload a zipped sample of your worksheet for a precise answer ...
    HTH
    Carim


    Top Excel Links

  3. #3
    Registered User
    Join Date
    01-11-2007
    Location
    Aberdeen, Scotland, UK
    Posts
    21
    Conditions, just need to be something along the lines of IF the line heading matches todays date, then the value of the cell = that days value.
    The problem comes when its not todays date anymore as I want the values to stay, and provide a daily history.

    Sorry can't uplooad the file..
    Z
    Last edited by TypeR; 02-16-2007 at 05:25 AM.

  4. #4
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,

    Look into the Sumif() function ....and adjust today() to a cell ...
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    01-11-2007
    Location
    Aberdeen, Scotland, UK
    Posts
    21
    Thanks for that,

    I think its simpler then that...
    I don't need to sum anything the sum'd value is already there for the picking.
    I just need a way of making it stay once it has been picked.. if you know what I mean.
    I don't want the next line to populate tommorrow and yesterdays values to return to 0.

    Hope you can help,
    Z

  6. #6
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Ok then ...

    Do you know the two step process :
    1. Edit Copy
    2. Edit PasteSpecial Values
    ...
    Does it help ... ?

  7. #7
    Registered User
    Join Date
    01-11-2007
    Location
    Aberdeen, Scotland, UK
    Posts
    21
    Thats what I do at the moment, but there must be a way of automating this.



    Thanks for all your help,

    Z

  8. #8
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Yes ... to automate ...
    Just turn on the macro recorder,
    Go through your actions
    See how VBA codes your steps in a macro ...

  9. #9
    Registered User
    Join Date
    01-11-2007
    Location
    Aberdeen, Scotland, UK
    Posts
    21
    Ah Marco... this could get messy.. I'll give it a try..

    Your a star..

    Z

  10. #10
    Registered User
    Join Date
    01-11-2007
    Location
    Aberdeen, Scotland, UK
    Posts
    21
    I don't have the knowledge of VBR to make this macro,
    I can get it to copy and paste, but when it comes to making it match the column date to todays date and then copying and pasting the values into that specisfic row, that is a problem....

    Any Ideas...

    I got the formula : =IF(H$2=$A$1,$F5)

    A1 : =TODAY()
    H2 : COLUMN HEADING DATE
    F5 : VALUE

    Which is working fantastic and pulling the values under todays date.
    The problem comes tomorrow, when the date has changed;
    Todays values will go blank and tomorrows will be populated.

    I need yesterdays values to remain...

    Anyone??

    Z

+ 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