Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
insplkm
 
Posts: n/a
Default 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

  #2   Report Post  
Tom Ogilvy
 
Posts: n/a
Default 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



  #3   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default 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
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Date & Time mully New Users to Excel 4 May 23rd 05 11:56 AM
Conversion SVC Excel Worksheet Functions 9 February 28th 05 02:29 PM
HOW CAN I GET OFFICE 2003 EXCEL BASIC TO NEST FUNCTIONS LIKE EXCE. Robert AS Excel Worksheet Functions 4 December 2nd 04 10:49 AM
Re-assigning weekend days in "Networkdays" Function sts75 Excel Discussion (Misc queries) 0 November 26th 04 10:45 AM
Find a Function to use accross different worksheets R. Hale Excel Worksheet Functions 3 November 25th 04 07:07 AM


All times are GMT +1. The time now is 01:55 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"