IF formula with Workday condition

horizonflame

Board Regular
Joined
Sep 27, 2018
Messages
186
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

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
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?


[TABLE="width: 219"]
<tbody>[TR]
[TD="width: 75, bgcolor: transparent"]Date
[/TD]
[TD="width: 64, bgcolor: transparent"]Size
[/TD]
[TD="width: 79, bgcolor: transparent"]Team
[/TD]
[TD="width: 75, bgcolor: transparent"]Hols
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]01/04/2019
[/TD]
[TD="bgcolor: transparent"]Large
[/TD]
[TD="bgcolor: transparent"]Team 1
[/TD]
[TD="bgcolor: transparent, align: right"]01/01/2019
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]01/06/2019
[/TD]
[TD="bgcolor: transparent"]Small
[/TD]
[TD="bgcolor: transparent"]Team 2
[/TD]
[TD="bgcolor: transparent, align: right"]26/08/2019
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]01/08/2019
[/TD]
[TD="bgcolor: transparent"]Large
[/TD]
[TD="bgcolor: transparent"]Team 3
[/TD]
[TD="bgcolor: transparent, align: right"]25/12/2019
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]01/10/2019
[/TD]
[TD="bgcolor: transparent"]Small
[/TD]
[TD="bgcolor: transparent"]Team 4
[/TD]
[TD="bgcolor: transparent, align: right"]26/12/2019
[/TD]
[/TR]
</tbody>[/TABLE]

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,224,732
Messages
6,180,622
Members
452,991
Latest member
JM_000888

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