Results 1 to 7 of 7

Capitalization of cell upto first number

Threaded View

  1. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2505 Win 11
    Posts
    24,754

    Re: Capitalization of cell upto first number

    Using Power Query, load your file to PQ. Split the column based upon the delimeter "Non Digit to Digit." Upper Case the split column. Merge the columns back together. Here is the Mcode for that action

    let
        Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
        #"Split Column by Character Transition" = Table.SplitColumn(Source, "Source", Splitter.SplitTextByCharacterTransition((c) => not List.Contains({"0".."9"}, c), {"0".."9"}), {"Source.1", "Source.2"}),
        #"Uppercased Text" = Table.TransformColumns(#"Split Column by Character Transition",{{"Source.1", Text.Upper, type text}}),
        #"Merged Columns" = Table.CombineColumns(#"Uppercased Text",{"Source.1", "Source.2"},Combiner.CombineTextByDelimiter("", QuoteStyle.None),"Merged")
    in
        #"Merged Columns"
    File attached for your review.
    Attached Files Attached Files
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Extract line items in a cell upto the specific number
    By Sekars in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-17-2019, 10:48 PM
  2. [SOLVED] Count the number of occurrence upto now and assign a unique sequence number
    By chathuranga in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-22-2016, 07:25 AM
  3. Formula for refering a cell upto particular number of columns
    By laansesu in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-19-2015, 05:04 AM
  4. Return a number upto a maximum value
    By leiski in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-09-2011, 03:10 PM
  5. Sum everything upto the current row number
    By lampas89 in forum Excel General
    Replies: 6
    Last Post: 04-06-2009, 12:37 PM
  6. Fill the Cell with Zeros upto a fixed number of characters
    By hsmeet in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-15-2008, 10:24 PM
  7. Capitalization of first word in a cell
    By Dave in forum Excel General
    Replies: 5
    Last Post: 04-25-2006, 03:10 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1