multiple formula

P

Paul

Hi All,

I have to provide a date for 2 variables

A1 will need 3 days added and A2 needs 2 days added

I have entered into A3 the following but need the formula for the 2 days
also in A3....I'm stuck

=IF(WEEKDAY(A1+3)=1,A1+5,IF(WEEKDAY(A1+3)=7,A1+6,A1+3))

cheers Paul
 
P

Paul

THanks Bob,

Looking at my question I dont think I was clear. I need to add 3 days if A1
is populated so my formula works however sometimes A1 will be blank and A2
will be populated with a date. A3 need to pick up either not both as this
will never happen
 
P

Paul

Yes and bank holidays. The formula in A3 currently as shown works great for
data in A1 ,I just dont know how I can add

=IF(WEEKDAY(A2+2)=1,A2+5,IF(WEEKDAY(A2+2)=7,A1+6,A2+2))

into A3 also.
 
B

Bob Phillips

This should so what you want

=WORKDAY(IF(ISNUMBER(A1),A1,A2),2,holidays)

where holidays is a range of holiday dates
 
P

Paul

cheers

Bob Phillips said:
This should so what you want

=WORKDAY(IF(ISNUMBER(A1),A1,A2),2,holidays)

where holidays is a range of holiday dates

--
__________________________________
HTH

Bob
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top