How to group data into ranges in Excel

questforexcel

Board Regular
Joined
Jan 18, 2019
Messages
128
Office Version
  1. 2013
Platform
  1. Windows
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

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
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?
 
Upvote 0

Forum statistics

Threads
1,212,055
Messages
6,105,643
Members
447,974
Latest member
misspancake

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