Group Minutes In Defined Intervals

kumara_faith

Well-known Member
Joined
Aug 19, 2006
Messages
922
Office Version
  1. 365
Hi,

I have the following data:

Excel Workbook
K
1Wait Period
20:00:42
30:00:11
40:00:57
50:00:21
60:05:52
70:06:04
80:11:45
90:20:57
100:00:12
110:00:28
120:01:22
130:10:29
140:21:23
150:00:15
160:04:53
170:03:21
180:03:15
190:10:33
200:00:17
210:00:09
220:04:05
230:08:01
240:12:27
250:12:45
260:21:09
270:21:40
280:21:08
290:29:20
Data


I need to group the above data in intervals of 0-5,5-10,10-15,15-20 and above 30 minutes. If the waiting time is 3 minutes, the formula should return "0-5". Is there a way to achieve this via formula?
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Your quickest method would be to create a table and lookup the interval

For example


Book1
QR
100:00:000-5
200:05:005-10
300:10:0010-15
400:15:0015-20
500:20:0020-30
600:30:0030+
Sheet1


Then use a simple formula


Book1
KL
1Wait PeriodInterval
200:00:420-5
300:00:110-5
400:00:570-5
500:00:210-5
600:05:525-10
700:06:045-10
800:11:4510-15
900:20:5720-30
1000:00:120-5
1100:00:280-5
Sheet1
Cell Formulas
RangeFormula
L2=VLOOKUP(K2, $Q$1:$R$5, 2, 1)
 
Upvote 0
Hi,

I have tried but the results are as follows:

Excel Workbook
KLMNOP
1Wait PeriodRangeRangeResults
20:00:42#N/A0:00:000-5
30:00:11#N/A0:05:005-10
40:00:57#N/A0:10:0010-15
50:00:21#N/A0:15:0015-20
60:05:52#N/A0:20:0020-30
70:06:04#N/A0:30:00>30
80:11:45#N/A
90:20:57#N/A
100:00:12#N/A
110:00:28#N/A
120:01:22#N/A
130:10:29#N/A
140:21:23#N/A
150:00:15#N/A
160:04:53#N/A
170:03:21#N/A
Data


The result in column L in #N/A. Please assist.
 
Upvote 0
If you look at my formula the last parameter is set to 1 (TRUE), not 0 (FALSE). False will return an exact match, true will return the nearest lower value.
 
Upvote 0

Forum statistics

Threads
1,214,908
Messages
6,122,187
Members
449,071
Latest member
cdnMech

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