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

Query ReceivedResolvedDuration
2017-10-17 10:16:152017-10-18 11:39:59More Than 24 Hours
2017-10-17 10:16:152017-10-17 00:16:15Less Than 24 Hours

<colgroup><col span="2"><col></colgroup><tbody>
</tbody>

Thanks,
Mahi
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
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,215,223
Messages
6,123,727
Members
449,116
Latest member
Aaagu

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