IF formula with Workday condition

horizonflame

Board Regular
Joined
Sep 27, 2018
Messages
184
Office Version
  1. 2013
Hi,

In Column A I have dates, and in Column B I have text ‘LARGE’ or SMALL’.

In Column C I want to reference the date from Column A with the condition that if the text in Column B is ‘SMALL’ then it adds 60 workdays taking into account a holiday range in Column D cells D1:D7. If the text is ‘LARGE’ then the date is reference as stated.

Many thanks for help with the formula. ?
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
How about:


Book1
ABCD
1DateSizeNew Date1/1/2019
25/4/2019Large5/4/20191/27/2019
32/2/2019Small4/26/20195/27/2019
46/15/2019Small9/10/20197/4/2019
510/1/2019Small12/26/20199/2/2019
612/15/2019Small3/9/202011/28/2019
712/15/2019Large12/15/201912/25/2019
Sheet9
Cell Formulas
RangeFormula
C2=IF(B2="Large",A2,WORKDAY(A2,60,$D$1:$D$7))
 
Upvote 0
Hi Eric, thank you for your help. My criteria is more complex that first thought. Can you help with modifying the below please?


Date
Size
Team
Hols
01/04/2019
Large
Team 1
01/01/2019
01/06/2019
Small
Team 2
26/08/2019
01/08/2019
Large
Team 3
25/12/2019
01/10/2019
Small
Team 4
26/12/2019

<tbody>
</tbody>

IF OR Criteria:

1) Large <ref value="" current="">--- ref current value only
2) Small AND Team 1 or Small AND Team 2<ref days="" +60=""> --- ref current value +60 days
3) Small AND not Team 1 or Team 2 (any other cell value) --- ref current value only<ref value="" current="">

Many thanks!</ref></ref></ref>
 
Last edited:
Upvote 0
Try:


Book1
ABCDE
1DateSizeTeamNew DateHolidays
24/1/2019LargeTeam 14/1/20191/1/2019
36/1/2019SmallTeam 28/26/20191/27/2019
48/1/2019LargeTeam 38/1/20195/27/2019
510/1/2019SmallTeam 410/1/20197/4/2019
69/2/2019
711/28/2019
812/25/2019
Sheet9
Cell Formulas
RangeFormula
D2=IF(AND(B2="small",OR(C2={"Team 1","Team 2"})),WORKDAY(A2,60,$E$2:$E$8),A2)
 
Upvote 0

Forum statistics

Threads
1,214,644
Messages
6,120,709
Members
448,983
Latest member
Joaquim_Baptista

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top