Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 08-03-2024, 03:49 PM
Alansidman's Avatar
Alansidman Alansidman is offline Unique, Sequential, Alpha-Numeric Number Generation for Projects Windows 11 Unique, Sequential, Alpha-Numeric Number Generation for Projects Office 2021
עַם יִשְׂרָאֵל חַי
 
Join Date: Apr 2019
Location: Steamboat Springs
Posts: 121
Alansidman has a spectacular aura aboutAlansidman has a spectacular aura aboutAlansidman has a spectacular aura about
Default

Using Power Query, here is the Mcode. If you add data to the source table and click on Refresh All on the Data Tab, it will automatically update the output. Try it on my sample attached.
Code:
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    #"Split Column by Character Transition" = Table.SplitColumn(Source, "Column1", Splitter.SplitTextByCharacterTransition((c) => not List.Contains({"0".."9"}, c), {"0".."9"}), {"Column1.1", "Column1.2"}),
    #"Sorted Rows" = Table.Sort(#"Split Column by Character Transition",{{"Column1.1", Order.Ascending}, {"Column1.2", Order.Ascending}}),
    #"Merged Columns" = Table.CombineColumns(#"Sorted Rows",{"Column1.1", "Column1.2"},Combiner.CombineTextByDelimiter("", QuoteStyle.None),"Merged")
in
    #"Merged Columns"
Attached Files
File Type: xlsx PQ Sort alphanumeric.xlsx (17.5 KB, 5 views)
__________________
Alan עַם יִשְׂרָאֵל חַ Using O365 v2511
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Some alpha/numeric data missing when I run MS Query Baldeagle Excel Programming 1 01-28-2015 01:00 PM
first character NOT Alpha numeric or Tilde (~) delete. ksridh Word VBA 5 03-17-2014 12:45 AM
Labeling sequential forms with a unique number krau0231 Word 1 10-18-2012 03:33 PM
Unique, Sequential, Alpha-Numeric Number Generation for Projects How to do an alpha numeric Sort By? Opul3nce Excel 1 10-15-2012 11:11 PM
Unique, Sequential, Alpha-Numeric Number Generation for Projects [How To] Generate Alpha Numeric Values in Excel 2010 stnicholas81 Excel 1 07-25-2011 01:31 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:25 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft