Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I want to replace the following VBA code; ' guess 15-day date! InBy_Box.Text = DateValue(Referral_Box.Text) + 21 Where 21 days are guessed from the referral date, with the following equivlant formula; =A2+IF(B$2=0,0,SIGN(B$2)*SMALL(IF((WEEKDAY(A2+SIGN (B$2)*(ROW(INDIRECT("1:"&ABS(B$2)*10))),2)<6)*ISNA (MATCH(A2+SIGN(B$2)*(ROW(INDIRECT("1:"&ABS(B$2)*10 ))),C$2:C$3,0)),ROW(INDIRECT("1:"&ABS(B$2)*10))),A BS(B$2))) This Array formula is work around for the Workday function if no analysis tool pak can be included, however i need to know how this should be transcribed into VBA, so that upon entering the referral date in a form the future date (workdays) automatically calculates. Please help i'm really stuck and do not know much about this line of VBA. Thanks In Advance |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Array formula SUMIF with 2D sum_range array | Excel Worksheet Functions | |||
Array formula: how to join 2 ranges together to form one array? | Excel Worksheet Functions | |||
Find specific value in array of array formula | Excel Worksheet Functions | |||
Tricky array formula issue - Using array formula on one cell, then autofilling down a range | Excel Programming | |||
Convert Normal formula to array formula | Excel Programming |