ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   If function for workday & weekend (https://www.excelbanter.com/excel-worksheet-functions/55206-if-function-workday-weekend.html)

insplkm

If function for workday & weekend
 

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.


--
insplkm
------------------------------------------------------------------------
insplkm's Profile: http://www.excelforum.com/member.php...o&userid=28771
View this thread: http://www.excelforum.com/showthread...hreadid=484600


Tom Ogilvy

If function for workday & weekend
 
=if(weekday(today()-1,2)<6,C2,C2/3)

--
Regards,
Tom Ogilvy


"insplkm" wrote in
message ...

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.


--
insplkm
------------------------------------------------------------------------
insplkm's Profile:

http://www.excelforum.com/member.php...o&userid=28771
View this thread: http://www.excelforum.com/showthread...hreadid=484600




Ron Rosenfeld

If function for workday & weekend
 
On Sat, 12 Nov 2005 18:43:35 -0600, insplkm
wrote:


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.


=if(weekday(today()-1,3)<=4,c2,c2/3)


--ron


All times are GMT +1. The time now is 11:19 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com