Hi, I need help to setup a function with the following concept:

in A1, If today()-1 is a workday, take value directly from C2, if its weekend, take value from C2 divide by 3.

Thanks.