How to group data into ranges in Excel

questforexcel

Board Regular
Joined
Jan 18, 2019
Messages
95
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>
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.

Jeffrey Mahoney

Well-known Member
Joined
May 31, 2015
Messages
2,061
Office Version
  1. 365
Platform
  1. Windows
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?
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,015
Messages
5,834,939
Members
430,327
Latest member
Mr_Himalayan778

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
Top