web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Extract Parts of an Ex...
Power Automate
Unanswered

Extract Parts of an Excel Cell Data

(0) ShareShare
ReportReport
Posted on by 2

Good day,

 

I have an excel file with 10000 plus rows and need to extract particular cell data. Some cells contain data the is a combination of numbers and letters (12345ABCD). I would like to extract the 12345 to another cell and delete it from the cell containing 12345ABCD. In this case i want to operate in excel sheet and not table.

 

Thanks in Advance. 

I have the same question (0)
  • Highboy Profile Picture
    1,183 Super User 2024 Season 1 on at

    You could read the cell containing the Nummber/Letter combination
    Use Parse text to split it into two variables that you can write to the cells you want.

    Highboy_0-1674209168187.png


    For the numbers

    Highboy_1-1674209223825.png

    And for the letters

    Highboy_2-1674209251169.png

     

  • VJR Profile Picture
    7,635 on at

    In order to offer an appropriate solution please share more examples of all possible values in that column.

    Are they all of this format and length?

    12345ABCD

    98765PQRS

    11111WXYZ

     

  • MDK2nd Profile Picture
    2 on at

    Thanks for the feedback. 

    The possible values in the column will be of varied lengths with the only constant being the first 4 characters which will always be ABCD and the next 10 numeric values will be assorted/mixed but they will always be 10 numeric values 

    ABCD0123456789 CHARACTERS

    ABCD9012345678 SOMEMORECHARACTERS

    ABCD056234789 SOMECHARACTERS

    ABCD0129956789 LESSCHARACTERS

    I want to a) Check if column B is empty and if so b) pick the ABCD0123456789 part from column C, delete it from Column C and paste it in Column B. Column C should only have the remaining characters. 

    Hoping this is more clear now.

  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    Anything that has to be done row by row is not going to work. It will essentially take forever. 

    im going to give you the Excel workflow, and you will automate this, it will be much faster. 

    select column B

    on the Home menu, far right, left click “Go To” -> Special -> Blanks ‘now all the blank cells in column B should be highlighted and the first blank cell should be active. For the following formula, I am going to assume B2 is the first blank cell in columnB, but instead what you want to do is send keys for =Left({Right},14). So in the case of B2, you would get:

    =Left(C2,14)

    then send keys {Control}({LShiftKey}({Enter}))

    Ctrl + Shift + Enter copied the formula to all selected cells, so to recap

     

    Select Column B

    Go to Special -> Blanks

    =Left([Cell to the Right],14)

    Ctrl + Shift + Enter

     

    Done. 

     

     

  • XRQ57 Profile Picture
    206 on at

    Hi,

    why don't you try with Powerquery?

    It will easier to manipulate and one you have build your query, you can use it at any time using the actualisation button.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard