Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 49
Default Lookup working days

Hi,
I have a column set up with a drop down menu listing the priority of a
job(1-5). I have another column set up which gives the predicted finish date
of the job as dd/mm/yyyy hh/mm. I have made a function with lookup that
gives the predicted finish date when any one of the 1-5 are chosen.

1 priority takes 2 hours
2 4 hours
3 1 day
4 2 days
5 1 week

This is the formula i have used:
=LOOKUP(J38,{1,2,3,4,5},E38+{"0.083333333333333333 333333333333333","0.166666666666666666666666666666 67","1","2","7"})

How can i adjust it to take into account working days (mon-fri 9am-5pm)

Thanks.


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Lookup working days

=IF(J382,WORKDAY(E38,LOOKUP(J38,{3,4,5},{"1","2", "7"})),E38)+(TIME(2,0,0)*(J38=1))+(TIME(2,0,0)*(J3 8=2)*2)

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"DaveAsh" wrote in message
...
Hi,
I have a column set up with a drop down menu listing the priority of a
job(1-5). I have another column set up which gives the predicted finish
date
of the job as dd/mm/yyyy hh/mm. I have made a function with lookup that
gives the predicted finish date when any one of the 1-5 are chosen.

1 priority takes 2 hours
2 4 hours
3 1 day
4 2 days
5 1 week

This is the formula i have used:
=LOOKUP(J38,{1,2,3,4,5},E38+{"0.083333333333333333 333333333333333","0.166666666666666666666666666666 67","1","2","7"})

How can i adjust it to take into account working days (mon-fri 9am-5pm)

Thanks.




  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 49
Default Lookup working days

This still allows for times which are out of hours, i.e. still predicting
times between 5pm and 9am

"Bob Phillips" wrote:

=IF(J382,WORKDAY(E38,LOOKUP(J38,{3,4,5},{"1","2", "7"})),E38)+(TIME(2,0,0)*(J38=1))+(TIME(2,0,0)*(J3 8=2)*2)

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"DaveAsh" wrote in message
...
Hi,
I have a column set up with a drop down menu listing the priority of a
job(1-5). I have another column set up which gives the predicted finish
date
of the job as dd/mm/yyyy hh/mm. I have made a function with lookup that
gives the predicted finish date when any one of the 1-5 are chosen.

1 priority takes 2 hours
2 4 hours
3 1 day
4 2 days
5 1 week

This is the formula i have used:
=LOOKUP(J38,{1,2,3,4,5},E38+{"0.083333333333333333 333333333333333","0.166666666666666666666666666666 67","1","2","7"})

How can i adjust it to take into account working days (mon-fri 9am-5pm)

Thanks.





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
How to calculation no. of days (only working days) between two dat Vivian Chan Excel Discussion (Misc queries) 1 July 26th 07 09:16 AM
Non working days The Rook[_2_] Excel Discussion (Misc queries) 4 March 31st 07 09:00 PM
5.5 working days Amy Excel Discussion (Misc queries) 0 March 22nd 07 03:59 AM
Working days Andrew Mackenzie Excel Discussion (Misc queries) 8 January 3rd 07 02:39 PM
Working Days Mike Hebblewhite Excel Discussion (Misc queries) 0 January 30th 06 11:00 AM


All times are GMT +1. The time now is 08:21 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"