Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Grouping 1

Status
Not open for further replies.

bnsSteve

Technical User
May 3, 2010
94
CA
Hi there,

I'm wondering if there is a way/formula to group entries that have the same city name but have different country codes for the same country. Some have for example,
"*ABC 123 JM" or
"*ABC 123 J JM" or
"ABC 123 JM JM".
I would like these entries to be combined into one group.

Any help is greatly appreciated, thank you.

 
We would have to have a better idea of the variation in country names, but you could try something like this for the results above:

left(replace({table.country},"*",""),9)

-LB
 
Thanks LB. It was a lot simplier than I had originally thought, but I used your idea of truncating the field then grouped it. Worked great.

thanks again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top