Forum Discussion
Lyle Lazarus
Sep 27, 2018Copper Contributor
Excel Formula help - IF statements?
Hi guys, I want to differentiate these two columns. If the difference in time between "Order Date" and "Printed Date" is less than 24 hours I want the data to say "Stocked". If the differe...
Lorenzo Kim
Sep 28, 2018Bronze Contributor
try:
=IF((CONVERT(L2,"day","hr")-CONVERT(K2,"day","hr"))>24,"Not stocked","Stocked")
hope this helps..
=IF((CONVERT(L2,"day","hr")-CONVERT(K2,"day","hr"))>24,"Not stocked","Stocked")
hope this helps..
Lorenzo Kim
Sep 28, 2018Bronze Contributor
the cell where the formula will be put must be formatted to "General" NOT TIME..
- Lyle LazarusSep 28, 2018Copper Contributor
Wow, thank you so much!! You've literally saved me hours
- Lorenzo KimSep 28, 2018Bronze Contributorglad to help...