excelstudentnl
New Member
- Joined
- Sep 12, 2022
- Messages
- 6
- Office Version
- 365
- 2021
- 2019
- Platform
- Windows
ok, so it basically comes down to making an excel sheet with the hours/minutes spend cleaning machines.
I've made a dropdown list in excel "B2" with 5 items (machines)
Cell B2 = (dropdown list) machine 1, machine 2, machine 3, machine 4, machine 5.
Cell B5 = contains the Start (at what time cleaning started) example: 01-01-2022 14:20 "I use 24hours instead of AM/PM"
Cell B6 = contains the End ( which adds 16 hours to the start date "we have 16 or 24 hours MAX to spend on a cleaning a specific machine"
so in Cell B6 my formula =
the problem however is:
machines 1 to 3 = have 16 hours max to spend on cleaning
but machines 4 & 5 = have 24 hours max to spend on cleaning
So now my question is, how can I make the dropdown list so that Machine 1 to 3 adds the formula : B5+16/24 to Cell B6
And if I choose Machine 4 or 5 it adds the formula: B5+24/24 to Cell B6
I don't have alot of experience with excel, I'm guessing I got to work with the =IF formula to make this work
or perhaps use a totally different approach? =IF(B2="Machine 3",B6= ........? )
I hope somebody can help me or atleast point me in the right direction
Thankyou in advance!
I've made a dropdown list in excel "B2" with 5 items (machines)
Cell B2 = (dropdown list) machine 1, machine 2, machine 3, machine 4, machine 5.
Cell B5 = contains the Start (at what time cleaning started) example: 01-01-2022 14:20 "I use 24hours instead of AM/PM"
Cell B6 = contains the End ( which adds 16 hours to the start date "we have 16 or 24 hours MAX to spend on a cleaning a specific machine"
so in Cell B6 my formula =
Excel Formula:
=B5+16/24
the problem however is:
machines 1 to 3 = have 16 hours max to spend on cleaning
but machines 4 & 5 = have 24 hours max to spend on cleaning
So now my question is, how can I make the dropdown list so that Machine 1 to 3 adds the formula : B5+16/24 to Cell B6
And if I choose Machine 4 or 5 it adds the formula: B5+24/24 to Cell B6
I don't have alot of experience with excel, I'm guessing I got to work with the =IF formula to make this work
or perhaps use a totally different approach? =IF(B2="Machine 3",B6= ........? )
I hope somebody can help me or atleast point me in the right direction
Thankyou in advance!