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

[TABLE="width: 162"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD] Dest Zip/Postal Code[/TD]
[TD] Zone[/TD]
[/TR]
[TR]
[TD="align: right"]500[/TD]
[TD="align: right"]6[/TD]
[/TR]
[TR]
[TD="align: right"]501[/TD]
[TD="align: right"]6[/TD]
[/TR]
[TR]
[TD="align: right"]502[/TD]
[TD="align: right"]6[/TD]
[/TR]
[TR]
[TD="align: right"]503[/TD]
[TD="align: right"]6[/TD]
[/TR]
[TR]
[TD="align: right"]504[/TD]
[TD="align: right"]6[/TD]
[/TR]
[TR]
[TD="align: right"]505[/TD]
[TD="align: right"]6[/TD]
[/TR]
[TR]
[TD="align: right"]506[/TD]
[TD="align: right"]6[/TD]
[/TR]
[TR]
[TD="align: right"]507[/TD]
[TD="align: right"]6[/TD]
[/TR]
[TR]
[TD="align: right"]508[/TD]
[TD="align: right"]6[/TD]
[/TR]
[TR]
[TD="align: right"]509[/TD]
[TD="align: right"]6[/TD]
[/TR]
[TR]
[TD="align: right"]510[/TD]
[TD="align: right"]6[/TD]
[/TR]
[TR]
[TD="align: right"]511[/TD]
[TD="align: right"]6[/TD]
[/TR]
[TR]
[TD="align: right"]512[/TD]
[TD="align: right"]6[/TD]
[/TR]
[TR]
[TD="align: right"]513[/TD]
[TD="align: right"]6[/TD]
[/TR]
[TR]
[TD="align: right"]514[/TD]
[TD="align: right"]6[/TD]
[/TR]
[TR]
[TD="align: right"]515[/TD]
[TD="align: right"]6[/TD]
[/TR]
[TR]
[TD="align: right"]516[/TD]
[TD="align: right"]6[/TD]
[/TR]
[TR]
[TD="align: right"]517[/TD]
[TD="align: right"]6[/TD]
[/TR]
[TR]
[TD="align: right"]518[/TD]
[TD="align: right"]6[/TD]
[/TR]
[TR]
[TD="align: right"]519[/TD]
[TD="align: right"]6[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
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,224,823
Messages
6,181,170
Members
453,021
Latest member
Justyna P

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