G
Guest
Using a Vlookup table
named range:"xfactory
xfactory weekday day
cambodia Thursday
china Friday
Mauritius Tuesday
Mongolia Thursday
thailand Saturday
Turkey Thursday
named range: "weekday
MONDAY
TUESDAY
WEDNESDAY
THURSDAY
FRIDAY
SATURDAY
SUNDAY
named range: "formula
Friday Choose(weekday(F33+1),5,4,3,2,1,0,6)
Saturday Choose(weekday(F33+1),6,5,4,3,2,1,0)
Thursday Choose(weekday(F33+1),4,3,2,1,0,6,5)
Tuesday Choose(weekday(F33+1),2,1,0,6,5,4,3)
On sheet 1, cell f34 should equal F33 (formatted as date) + 1 day BUT the day itself should fall on the day based on criteria in named range "xfactory"; which will be at least 1 day more than F33. The country is selected by using a combo box (linked cell) in cell D2
I tried using the following formula:
=(F33+1)+VLOOKUP(F4,formula,2,FALSE
but my result is a #VALUE! error
Ex. f33=2/5/0
f34 = should equal 2/7/04 (if the criteria were a Saturday
Is there a way to do this
Thanks in advance!
named range:"xfactory
xfactory weekday day
cambodia Thursday
china Friday
Mauritius Tuesday
Mongolia Thursday
thailand Saturday
Turkey Thursday
named range: "weekday
MONDAY
TUESDAY
WEDNESDAY
THURSDAY
FRIDAY
SATURDAY
SUNDAY
named range: "formula
Friday Choose(weekday(F33+1),5,4,3,2,1,0,6)
Saturday Choose(weekday(F33+1),6,5,4,3,2,1,0)
Thursday Choose(weekday(F33+1),4,3,2,1,0,6,5)
Tuesday Choose(weekday(F33+1),2,1,0,6,5,4,3)
On sheet 1, cell f34 should equal F33 (formatted as date) + 1 day BUT the day itself should fall on the day based on criteria in named range "xfactory"; which will be at least 1 day more than F33. The country is selected by using a combo box (linked cell) in cell D2
I tried using the following formula:
=(F33+1)+VLOOKUP(F4,formula,2,FALSE
but my result is a #VALUE! error
Ex. f33=2/5/0
f34 = should equal 2/7/04 (if the criteria were a Saturday
Is there a way to do this
Thanks in advance!