![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Feb 2002
Posts: 270
|
I have a task that has multiple steps. The number of steps vary between tasks.
I want to create a formula that can count the number of steps, (easy enough, that I can do that) then after the number of steps are determined, I want to assign two business days for each step. (Here is where I begion to stumble.) If the numbers of 2 day steps run into a weekend, I want the formula to move the date to the next workday. (I think the function WORKDAY can do this, but when I tried to get this done, Excel sneered at me) If I have to change a date, I want the worksheet to reflow with the new dates. Any help out there? It would be greatly appreciated. K |
|
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Denver, CO
Posts: 1,744
|
It would seem something such as
=WORKDAY(TODAY(),COUNT(A1:A10)*2) would suffice. Where tasks are listed in A1:A10. subsitute a different date for today() if needed. Now put down that lolipop and get to work. Who loves ya baby? good luck Quote:
|
|
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Feb 2002
Posts: 74
|
If you have a bunch of dates that you need populated, then the follwoing might be useful:
If A2 has the first date, then A3: =WORKDAY(A2,1) will have the second date for the first task. Then B2: =WORKDAY(A3,1) and B3: =WORKDAY(B2,1) will have the two dates for the next task, etc.
__________________
"Interfere? Of course we should interfere! Always do what you're best at, that's what I say!" -- The Doctor, Nightmare of Eden |
|
|
|
|
|
#4 |
|
Board Regular
Join Date: Feb 2002
Posts: 270
|
IML:
Thanks for the prompt reply. No joy. I get the infamous #NAME? I entered 1-11 in A1:A11, Scribbled in gibberish for each task, then entered your formula at c12. I also tried the formula at c1 with appropriate changes i.e. Workday(Today(),count(a1)*2) Both formulas gave me #NAME? As I really don't know what #NAME? means... K |
|
|
|
|
|
#5 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Denver, CO
Posts: 1,744
|
You need to install and select the analysis tool Pak under Tools Add-ins for excel to recognize the workday function. I hope that helps.
Quote:
|
|
|
|
|
|
|
#6 |
|
Board Regular
Join Date: Feb 2002
Posts: 270
|
Thank you both. I think I got it to work, thanks to you folks. I am in your debt.
Huge grin!!! |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|