#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 661
Default multiple formula

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,A 1+3))

cheers Paul


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,420
Default multiple formula

=A1+3+(WEEKDAY(A1+3)=1)+(WEEKDAY(A1+3)=7)*2

--
__________________________________
HTH

Bob

"Paul" wrote in message
...
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,A 1+3))

cheers Paul




  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 661
Default multiple formula

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

"Bob Phillips" wrote:

=A1+3+(WEEKDAY(A1+3)=1)+(WEEKDAY(A1+3)=7)*2

--
__________________________________
HTH

Bob

"Paul" wrote in message
...
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,A 1+3))

cheers Paul





  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,420
Default multiple formula

Aren't you trying to bypass weekend with the new date as well?


--
__________________________________
HTH

Bob

"Paul" wrote in message
...
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

"Bob Phillips" wrote:

=A1+3+(WEEKDAY(A1+3)=1)+(WEEKDAY(A1+3)=7)*2

--
__________________________________
HTH

Bob

"Paul" wrote in message
...
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,A 1+3))

cheers Paul







  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 661
Default multiple formula

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,A 2+2))

into A3 also.

"Bob Phillips" wrote:

Aren't you trying to bypass weekend with the new date as well?


--
__________________________________
HTH

Bob

"Paul" wrote in message
...
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

"Bob Phillips" wrote:

=A1+3+(WEEKDAY(A1+3)=1)+(WEEKDAY(A1+3)=7)*2

--
__________________________________
HTH

Bob

"Paul" wrote in message
...
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,A 1+3))

cheers Paul










  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,420
Default multiple formula

This should so what you want

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

where holidays is a range of holiday dates

--
__________________________________
HTH

Bob

"Paul" wrote in message
...
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,A 2+2))

into A3 also.

"Bob Phillips" wrote:

Aren't you trying to bypass weekend with the new date as well?


--
__________________________________
HTH

Bob

"Paul" wrote in message
...
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

"Bob Phillips" wrote:

=A1+3+(WEEKDAY(A1+3)=1)+(WEEKDAY(A1+3)=7)*2

--
__________________________________
HTH

Bob

"Paul" wrote in message
...
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,A 1+3))

cheers Paul










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
formula to add multiple lines with multiple meanings chubbybat Excel Discussion (Misc queries) 1 March 3rd 08 10:28 AM
Formula to sum multiple columns on multiple criteria vito Excel Discussion (Misc queries) 2 November 15th 07 03:30 PM
multiple formula holyman Excel Discussion (Misc queries) 1 January 20th 07 02:11 AM
Multiple IF formula DBYRON Excel Discussion (Misc queries) 1 October 5th 05 10:02 PM
Multiple IF formula Kim46770 Excel Discussion (Misc queries) 1 May 19th 05 06:59 PM


All times are GMT +1. The time now is 05:52 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"