How to group time conditionally?

xlmaniac

Well-known Member
Joined
Jul 2, 2009
Messages
527
Office Version
  1. 2010
Platform
  1. Windows
Dear All,
I need to populate remarks based on the following time.
Time samples are in Column A
Desired results would be in Column B

22:01:36(A1) should be < 24 hours (B1)
36:19:56(A2) should be >24-<48 hours (B2)
54:30:45(A3) should be >48 hours
Pls help with the formulae in Column B which can yield the desired remarks as shown above.
Thanks
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
what do you want if the time is = 48 or -=24
you only say < 24 or > 24

try
=IF(A1<1,"< 24 hours",IF(A1<2,">24-<48 hours",">48 hours"))
this will Include 24:00 as ">24-<48 hours" and 48 hours as ">48 hours"

Book8
AB
122:01:36< 24 hours
236:19:56>24-<48 hours
354:30:45>48 hours
448:00:00>48 hours
524:00:00>24-<48 hours
Sheet1
Cell Formulas
RangeFormula
B1:B5B1=IF(A1<1,"< 24 hours",IF(A1<2,">24-<48 hours",">48 hours"))


otherwise include an equals =

Book8
AB
122:01:36< 24 hours
236:19:56>24-<48 hours
354:30:45>48 hours
448:00:00>24-<48 hours
524:00:00< 24 hours
Sheet1
Cell Formulas
RangeFormula
B1:B5B1=IF(A1<=1,"< 24 hours",IF(A1<=2,">24-<48 hours",">48 hours"))
 
Upvote 0
Solution
what do you want if the time is = 48 or -=24
you only say < 24 or > 24

try
=IF(A1<1,"< 24 hours",IF(A1<2,">24-<48 hours",">48 hours"))
this will Include 24:00 as ">24-<48 hours" and 48 hours as ">48 hours"

Book8
AB
122:01:36< 24 hours
236:19:56>24-<48 hours
354:30:45>48 hours
448:00:00>48 hours
524:00:00>24-<48 hours
Sheet1
Cell Formulas
RangeFormula
B1:B5B1=IF(A1<1,"< 24 hours",IF(A1<2,">24-<48 hours",">48 hours"))


otherwise include an equals =

Book8
AB
122:01:36< 24 hours
236:19:56>24-<48 hours
354:30:45>48 hours
448:00:00>24-<48 hours
524:00:00< 24 hours
Sheet1
Cell Formulas
RangeFormula
B1:B5B1=IF(A1<=1,"< 24 hours",IF(A1<=2,">24-<48 hours",">48 hours"))
Thank you so much for your help.
Really appreciate 😊
 
Upvote 0

Forum statistics

Threads
1,215,444
Messages
6,124,891
Members
449,194
Latest member
JayEggleton

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