Select to view content in your preferred language

MOVE GROUPS IN LAYERS INSIDE OF ARCGIS FOR EXCEL

227
3
Friday
EfrainDeLaRocha
New Contributor

HOW HARD WOULD IT BE TO ALLOW TO SORT GROUPS IN ALPHABETICAL NUMERICAL ORDER IN ARCGIS FOR EXCEL.  FROM WHAT I NOTICE IS THAT IT CHOOSE FROM MOST ROWS  AT THE TOP AND LEAST AT THE BOTTOM.  WHY NOT CHANGE THAT.  ALLOW FOR SORTING OR AT LEAST NUMBERING THE GROUPS.

0 Kudos
3 Replies
VenkataKondepati
Occasional Contributor

You’ve spotted a real limitation in ArcGIS for Excel today. Right now, when you add a feature layer and use “Group by,” the groups are ordered by row count (most features first), not alphabetically or numerically. There isn’t a toggle in the add-in to change that sort order.

Why it works this way

ArcGIS for Excel is following the same logic as the ArcGIS REST API statistics/groupBy operation, which by default sorts by count unless you explicitly order results. The Excel add-in doesn’t expose a UI for changing that.

What you can do today

  • After grouping, use Excel’s native sort to reorder the groups alphabetically or numerically.

  • If you’re comfortable with REST calls, you can build the query manually in ArcGIS Online/Enterprise and specify orderByFields=GroupField ASC, but that’s outside what the Excel add-in exposes.

What to ask Esri for

This is one of those “Ideas” items—many users have requested exactly what you described: a simple option to sort group values alphabetically or numerically inside ArcGIS for Excel. Here are two steps that help:

  • Upvote / add your voice on ArcGIS Ideas: ArcGIS for Excel Ideas

  • In your feedback, ask for a “Sort groups” option with choices: Alphabetical, Numerical, By Count.

Short answer: You can’t change the group sort inside ArcGIS for Excel today. The only workaround is to sort inside Excel after grouping. If this matters to your workflows, upvoting the Idea is the best way to push it onto the roadmap.

0 Kudos
EfrainDeLaRocha
New Contributor

i been playing around with the data and so far the best workaround i found is to create a sort column in my data with two digits 01 02 03 so that there easy to spot.  im using Inspectors names for the mapping.  so i add a column that adds the sort name to the begging of the column like 01 - Anthony 02 - Beverly 03 - Charley  and so fort.  heres what im using =TEXT(MATCH([@[ARCGIS LABEL]], SORT(UNIQUE([ARCGIS LABEL])), 0), "00") .  than i can go in remove all groups that get added automatically in the map and add them one by one using my cutom sort.  but its tedious especially when new users get added since id have to resort everyone individually.  so if we simply change the "add all" button to say sort before adding all would this not fix what users have been wanting.?

ShannonCardoza
Esri Contributor

Hello @EfrainDeLaRocha, We appreciate your post and welcome all ideas to improve our product. 

@VenkataKondepati Thank you so much for the thoughtful and thorough reply. 

I will share this idea with my greater team and see what we can do in a future release. So please stay tuned...

Have a nice weekend, 

SC

Shannon Cardoza
Product Engineer