Multiple If True Values - IF Function Excel

hue

New member
Joined
Jun 24, 2011
Messages
2
Reaction score
0
Points
0
Not an expert so I need allot of help. In a production schedule I have various models to make with X number of units per model in a day. Using VLOOKUP I have a time value (production time) column for each model multiplied by its number of units, so I know the time it takes to produce each individual model in a day. I now need to include a PST (Production Standard Time) column for each model so workers can know at what time they should finish each of the models in the daily schedule. During our work hours (7:00am - 5:06pm) I have 3 lunch/rest breaks one @ 9:20 am(lasts 19min), 12:30 pm(lasts 29min) and 3:00 pm(lasts 9min) so I need to add to the PST that specific lunch/rest time if a model is finished during any of the lunch/rest periods, so I’ll assure the PST is accurate. How can achieve this using one single formula, considering the 3 criteria?

Criteria #1: IF((A1+B1)>=timevalue("9:20 am") but <=timevalue("12:30 pm"), (A1+B1)+time(0,19,0), (A1+B1))
Criteria #2: IF((A1+B1)>=timevalue("12:30 pm") but <=timevalue("3:00 pm"), (A1+B1)+time(0,29,0), (A1+B1))
Criteria #3: IF((A1+B1)>=timevalue("3:00 pm"), (A1+B1)+time(0,9,0), (A1+B1))

Since the values will be adding up as the day goes, it can occur, that the value (A1+B1) falls directly into the second criteria (eg. 1:37 pm), I need then for it to add the 29 minutes plus the 19 of the first criteria, and so on and so forth. Thanks so much in advance.
 

Ken Puls

Administrator
Staff member
Joined
Mar 13, 2011
Messages
2,519
Reaction score
4
Points
38
Location
Nanaimo, BC, Canada
Website
www.excelguru.ca
Excel Version(s)
Excel Office 365 Insider
Hi there, and welcome to the forum. :)

I've set this up so that you can actually change the shifts easily (the green cells in the first table), as well as put in the times required and quantities in the second table. Hopefully I followed what you were after.
 

Attachments

  • xlgf238-1.xls
    30 KB · Views: 168

hue

New member
Joined
Jun 24, 2011
Messages
2
Reaction score
0
Points
0
Dear Ken,

I appreciate your time and efforts to help in this issue. I am still having problems with your solution offer, so lease review the image below to see if I can explain myself:

u8JKVbDRzZHM9YIpigTms8tZ5bgznTIVX44CV8BiFqM


Thank you. hue
 
Top