Consulting

Results 1 to 3 of 3

Thread: having the average of last saturday to wednesday

  1. #1

    Question having the average of last saturday to wednesday

    i have a column for dates. the other column is for numbers.
    i need a vba code to calculate the average of numbers from (last Saturday to last Wednesday) of last week(not current week).
    for example if today is Thursday i wanna have the average from (last Saturday to last Wednesday) of last week not this Wednesday.

  2. #2
    Moderator VBAX Sage SamT's Avatar
    Joined
    Oct 2006
    Location
    Near Columbia
    Posts
    7,814
    Location
    What if today is Wednesday or Friday, or any other day?
    I expect the student to do their homework and find all the errrors I leeve in.


    Please take the time to read the Forum FAQ

  3. #3
    Quote Originally Posted by SamT View Post
    What if today is Wednesday or Friday, or any other day?
    one week is defined from Saturday to Friday in my country. Thursdays and Fridays are always off. we have some random days off according to the calendar so on these days no data is written
    whatever today is, I'll need an average for the whole previous week (from sat to wed). i attached a sample
    Attached Files Attached Files
    Last edited by ffarshadd; 06-09-2017 at 02:42 PM.

Posting Permissions

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