More Than 24 hours and Less Than 24 Hours

maheshrk81

Board Regular
Joined
Jan 5, 2010
Messages
153
Hi All,

I have below tables which shows Query received time and Query resolved time. Now i need a formula in Column C to show, if the query is resolved with 24 hours or after 24 hours. Can someone please help

[TABLE="width: 642"]
<colgroup><col span="2"><col></colgroup><tbody>[TR]
[TD]Query Received[/TD]
[TD]Resolved[/TD]
[TD]Duration[/TD]
[/TR]
[TR]
[TD]2017-10-17 10:16:15[/TD]
[TD]2017-10-18 11:39:59[/TD]
[TD]More Than 24 Hours[/TD]
[/TR]
[TR]
[TD]2017-10-17 10:16:15[/TD]
[TD]2017-10-17 00:16:15[/TD]
[TD]Less Than 24 Hours[/TD]
[/TR]
</tbody>[/TABLE]

Thanks,
Mahi
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Hi,

In excel, as date and time are represented as numbers (date is the whole number and time is the decimal part), you can simply subtract "Query Received" column from "Resolved" column. If the result is greater than 1, it took "More than 24 hr" to resolve the issue or else "Less than 24 hr".

In row#2 of your sample data, resolved time is earlier than the query received time. If the time is in 12-hr format, you may have to mention AM or PM for accurate results. Hope this helps.

Regards.
 
Upvote 0
Try this...
=IF(B2-A2>1,"More","Less")&" than 24 hours"

Note that in your 2nd example, you resolved it before you received it
 
Upvote 0
Hi All,

Thanks a lot for the immediate response. This solved my issue. If i need to check for 48 hours, then what i need to use? Is it >2 or anything else?

Thank you once again for the help.

Mahi
 
Upvote 0

Forum statistics

Threads
1,223,247
Messages
6,171,007
Members
452,374
Latest member
keccles

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top