Results 1 to 4 of 4

Thread: Multiple If True Values - IF Function Excel

  1. #1

    Unhappy Multiple If True Values - IF Function Excel



    Register for a FREE account, and/
    or Log in to avoid these ads!

    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.

  2. #2
    Administrator Ken Puls's Avatar
    Join Date
    Mar 2011
    Location
    Nanaimo, BC, Canada
    Posts
    2,027
    Articles
    79
    Blog Entries
    14
    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.
    Attached Files Attached Files
    Ken Puls, FCPA, FCMA, MS MVP (Excel)

    Master your data with Power Query: Purchase your copy of my book M is for Data Monkey today!

    Main Site: http://www.excelguru.ca -||- Blog: http://www.excelguru.ca/blog -||- Forums: http://www.excelguru.ca/forums
    Check out the Excelguru Facebook Fan Page -||- Follow Me on Twitter

    If you've been given VBA code (a macro) for your solution, but don't know where to put it, CLICK HERE.

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

    [IMG]<table style="width:auto;"><tr><td><a href="https://picasaweb.google.com/lh/photo/u8JKVbDRzZHM9YIpigTms8tZ5bgznTIVX44CV8BiFqM?feat=embedwebsite"><img src="https://lh4.googleusercontent.com/-m-UzQXd2448/Tgw7ggGla4I/AAAAAAAAAHQ/_kygoMClFBI/s144/Multiple%252520If%252520True%252520Values%252520-%252520IF%252520Function%252520Excel%252520-%252520Example%2525201.jpg" height="66" width="144" /></a></td></tr><tr><td style="font-family:arial,sans-serif; font-size:11px; text-align:right">From <a href="https://picasaweb.google.com/hescamillavideos/Escritorio?authkey=Gv1sRgCPWfp4vipNO3hwE&feat=embedwebsite">Multiple If True Values - IF Function Excel</a></td></tr></table>[/IMG]

    Thank you. hue

  4. #4
    Administrator Ken Puls's Avatar
    Join Date
    Mar 2011
    Location
    Nanaimo, BC, Canada
    Posts
    2,027
    Articles
    79
    Blog Entries
    14
    Hi Hue,

    I'll try and take a closer look at this this weekend.
    Ken Puls, FCPA, FCMA, MS MVP (Excel)

    Master your data with Power Query: Purchase your copy of my book M is for Data Monkey today!

    Main Site: http://www.excelguru.ca -||- Blog: http://www.excelguru.ca/blog -||- Forums: http://www.excelguru.ca/forums
    Check out the Excelguru Facebook Fan Page -||- Follow Me on Twitter

    If you've been given VBA code (a macro) for your solution, but don't know where to put it, CLICK HERE.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •