How to group data into ranges in Excel

questforexcel

Board Regular
Joined
Jan 18, 2019
Messages
92
Hi,

If I have a set of repetitive data i.e. individual data points which fall under the same range cell, is there a way to group them together in excel.

For eg.

All the below data fall under Zone 6. Is there a way I could club all the numbers together for ease of reference. Something like 500-519 would be Zone 6.

Thank you

Dest Zip/Postal Code Zone
5006
5016
5026
5036
5046
5056
5066
5076
5086
5096
5106
5116
5126
5136
5146
5156
5166
5176
5186
5196

<colgroup><col><col></colgroup><tbody>
</tbody>
 

Some videos you may like

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.

Jeffrey Mahoney

Well-known Member
Joined
May 31, 2015
Messages
1,768
You are using this table as reference, right?

When using =VLOOKUP(514,ZipTable,TRUE/FALSE). The third parameter allows you to either find the exact value (FALSE), or a value between a lower and upper end (TRUE). If you use TRUE, the reference table must be sorted by the left column.

If you name your table ZipTable (below), the following formulas would give you the following results:
=VLOOKUP(514,ZipTable,TRUE) = 6
=VLOOKUP(520,ZipTable,TRUE) = 7
=VLOOKUP(521,ZipTable,TRUE) = 7
=VLOOKUP(524,ZipTable,TRUE) = 7

Code:
Dest Zip/Postal Code	Zone
500	6
520   7
525   8
534   9


Or are you asking to actually format the table you provided?
 

Watch MrExcel Video

Forum statistics

Threads
1,108,989
Messages
5,526,095
Members
409,685
Latest member
Bellybb

This Week's Hot Topics

Top