• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Add weekend values to weekdays

freshtomm

Member
Hi guys,

i need a VBA code to lookup for Saturday and Sunday rows, and values from that rows add to Friday values. After that, replace Saturday and Sunday values with zeroes. But if Saturday or Sunday are first days in a month, add those values to Monday. Is that possible?

File included.

Thanks.

Tomas
 

Attachments

  • Performance.xlsx
    9.4 KB · Views: 4
Yes, it is possible, but with your example, No Go, you are not working with dates.
Attached, no VBA but this can be the next step.
(Dutch example)
In the example, hollydays and weekends are colored grey.
It is in Dutch but the tab feestdagen = hollydays (where I live) adjust the dates to your needs.
zondag = sunday etc, not that hard to understand.
The first step you have to take is rebuild your file and work with real dates. Sat and Sun are just text in your example, excel can't calculate with text.
 

Attachments

  • weekend en feestdagen kleuren.xlsx
    21.5 KB · Views: 2
Back
Top