#### buddy1000

##### Active Member
I have this formula..

=WORKDAY(DATE(YEAR(\$Z\$10),MONTH(\$Z\$10)+6,DAY(\$Z\$10)+0)-1,1,'Holidays'!A2:A60)

It looks at date Z10 and adds 6 months. If this results is a weekend or a holiday it returns the next workday. In column Z, I have different dates. Now I have to change the 6 to 12 to 18 months etc. etc.

Is it possible to alter it to do this automatic? I tried to use rOW but got lost a bit.

Any ideas?

### Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.

##### Well-known Member
Hello,

which cell is this formula in? and which cells do you want the 12 and 18 months to be in. I'm sure there is a way of using row. (there will be a different way for sure.)

#### buddy1000

##### Active Member
Formula is in cell A2
add 12 months should be in A3
add 18 months should be in A4
add 24 months should be in A5
etc.
etc.

##### Well-known Member
Hello,

in A2 enter

=WORKDAY(DATE(YEAR(\$Z\$10),MONTH(\$Z\$10)+(ROW()-1)*6,DAY(\$Z\$10)+0)-1,1,'Holidays'!A2:A60)

and copy down as far as required.

Is this giving expected results?

#### buddy1000

##### Active Member
PERFECT...
but now lets say that instead of A2, it should be in Z11.

What changes in the formula.

#### buddy1000

##### Active Member
sorry..I should ofcourse just change () to A2.....

thanks

#### barry houdini

##### MrExcel MVP
Perhaps use EDATE to simplify, e.g. in Z11 copied down

=WORKDAY(EDATE(Z\$10,6*ROWS(Z\$11:Z11))-1,1,'Holidays'!A\$2:A\$60)

Replies
3
Views
738
Replies
8
Views
138
Replies
2
Views
230
Replies
5
Views
211
Replies
5
Views
207

1,191,346
Messages
5,986,134
Members
440,004
Latest member
Dynawoman

### 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.

### Which adblocker are you using?

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

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