Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Ben Ben is offline
external usenet poster
 
Posts: 509
Default First Business day of the month?

Hi all,

Is there a quick way to find the first business day of the month? I could
find it using a loop in conjuction with the Weekday function. But I was
wondering if there is a more concise and elegant approach. Thanks for
sharing your thoughts.

Ben

--

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default First Business day of the month?

Try =workday(DATE(2005,11,0),1)

where 11 is the month number.

WORKDAY is part of the Analysis Toolpak, so that needs to be installed.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Ben" wrote in message
...
Hi all,

Is there a quick way to find the first business day of the month? I could
find it using a loop in conjuction with the Weekday function. But I was
wondering if there is a more concise and elegant approach. Thanks for
sharing your thoughts.

Ben

--



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,651
Default First Business day of the month?

On Wed, 2 Nov 2005 06:27:02 -0800, Ben wrote:

Hi all,

Is there a quick way to find the first business day of the month? I could
find it using a loop in conjuction with the Weekday function. But I was
wondering if there is a more concise and elegant approach. Thanks for
sharing your thoughts.

Ben


With some date of the month in A1:

=WORKDAY(A1-DAY(A1),1)

will do it as a worksheet function, provided you have the Analysis Tool Pack
installed. The ATP can also be used in a VBA routine.

Without ATP, note that, where Dt=some date in a month,

Dt-Day(Dt)

will always be the last day of the previous month. You could then loop through
weekends and optionally also through Holidays.


--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
Month calculation from cost for a business plan - please help Juergen L Excel Discussion (Misc queries) 3 December 23rd 08 09:18 PM
How can I display the first business day of the month? Needhelp! Excel Worksheet Functions 6 May 16th 08 10:42 AM
WHERE CAN I GET A BUSINESS PROPOSAL OR A BUSINESS EXPENSE SHEET? FELICITA ROSALES New Users to Excel 1 August 18th 05 10:27 PM
Generating business days in a calendar month, EXCLUDING holidays jacob Excel Worksheet Functions 1 April 12th 05 05:38 AM
Generating business days in a calendar month, EXCLUDING holidays jacob Excel Worksheet Functions 0 April 12th 05 04:57 AM


All times are GMT +1. The time now is 08:38 AM.

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

About Us

"It's about Microsoft Excel"