LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 47
Default User Function.

hi,
50% of by hair loss this year is due to problems with Analyst tool pack.
syncing with excel on several computers

i came up with whis formula in excel
where FERIADOS = array of dates
=SE(F60;SE(OU(DIA.DA.SEMANA(F6)=7;DIA.DA.SEMANA(F 6)=1;ÉNÚM(CORRESP(F6;FERIADOS;0)));workday((F6); 2;FERIADOS);workday((F6);1;FERIADOS));0)
translating
=IF(F60;IF(OR(WEEKDAY(F6)=7;WEEKDAY(F6)=1;ISNUMBE R(MACH(F6;FERIADOS;0)));workday((F6);2;FERIADOS);w orkday((F6);1;FERIADOS));0)

I would like some help on making it in VBA without needing Analyst tool pack

so the logic's of this
F6 = date
1) if F6 is Saturday, TRUE
2) if F6 is Sunday, TRUE
3) If 6 belongs to Holiday array, TRUE

if true then
date + 2 days skipping holidays
else
date + 1 days skipping holidays

my biggest problem is what the "workday" formula, do

any help is appreciate
 
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
User Function Question: Collect Condition in Dialog Box - But How toInsert into Function Equation? SteveM Excel Programming 1 January 3rd 08 03:45 PM
Using dcount function within user-defined worksheet function pongthai Excel Programming 3 January 15th 07 09:55 AM
Excel - User Defined Function Error: This function takes no argume BruceInCalgary Excel Programming 3 August 23rd 06 08:53 PM
Need to open the Function Arguments window from VBA for a user defined function. [email protected] Excel Programming 0 June 20th 06 03:53 PM
User-Defined Function pre-empting Built-in Function? How to undo???? MarWun Excel Programming 1 August 6th 03 09:31 PM


All times are GMT +1. The time now is 01:29 PM.

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"