Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8388257
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T18:26:07+00:00 2026-06-09T18:26:07+00:00

I have a spreadsheet with one column, Column M, that has rows containing alpha

  • 0

I have a spreadsheet with one column, Column “M,” that has rows containing alpha numeric values like the following: 103.14 Jose Dolorez Chavez. I am not sure if there is code out there that can loop through each row of cells, cut the numerical values and paste them into an adjacent column. So At the end, I would have:
one column: 103.14 another column: Jose Dolores Chavez

Could someone help me. I’m not sure where to start. The code would need to loop through all 500 rows in column “M,” find/cut the values, and paste them into column “N.”

Any advice would be greatly appreciated and thank you in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T18:26:09+00:00Added an answer on June 9, 2026 at 6:26 pm

    Here’s a VBA function you can use. It uses the Val function, which returns the numeric part at the beginning of a string. Just put it in a regular code module in your workbook:

    Function GetNumAtBeginOfString(StringWithNum)
    GetNumAtBeginOfString = Val(StringWithNum)
    End Function
    

    Then in column O put this formula (assumning your data starts in row 2):

    =GetNumAtBeginOfString(M2)
    

    And if column N put this formula:

    =TRIM(SUBSTITUTE(M2,O2,""))
    

    … and copy down.

    This leaves you with the original string and two new columns. If you want you can copy and paste over the original.

    EDIT: you can use this Excel formula in column O instead of the VBA function:

    =MAX(IF(ISNUMBER(LEFT(M2,ROW($A$1:$A$100))*1),(LEFT(M2,ROW($A$1:$A$100))*1),0))
    

    It’s an array formula and must be entered with Ctrl-Shft-Enter

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a spreadsheet that has a list of video filenames in one column.
I have one Excel spreadsheet which has the following columns: Surname / First Name
I have wrote a script that was run from a spreadsheet. I had One
Like many, I have spreadsheet that draws data from over 40 text files as
I have a spreadsheet that I am sorting based on an item number column.
I have a spreadsheet with multiple columns, one of which is an owner_id column.
We have an existing Traceability Matrix in Excel that has columns like: Project Business
I have an excel spreadsheet with two columns, one with a list of exercises
I have an Excel spreadsheed like the one shown below A B 10.02.2007 10
I have a spreadsheet I'm using to compile text that changes all the time.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.