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 8567971
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T18:00:08+00:00 2026-06-11T18:00:08+00:00

In this case, I want to extract the beginning text in a cell and

  • 0

In this case, I want to extract the beginning text in a cell and leave the remainder intact.
e.g. a series of cells contain:

2nd Unit. Miami
3rd Production Staff. Toronto
1st Ad. San Francisco

I want to break this up without using Text to columns as previous rows are formatted differently and these last few rows are outliers that I want to handle.

I thought Regular Expressions might do it, but that seems a bit complex.

My algorithm idea is:
1. grab the wanted text (what function or custom sub would do that?)
2. Past the text to it’s new location
3. Cut the text from the cell, leaving the remaining text.

Seems simple but I’m still wending my way through VBA forest, and at the rate I’m going it’s going to end up faster doing it by hand. But this seems like a good opportunity to learn some VBA tricks.

TIA

Update:
I want to take the text up to the “.\ ” and move it to a different column, keeping the remainder where it is.

  • 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-11T18:00:10+00:00Added an answer on June 11, 2026 at 6:00 pm

    Since you seem to want to modify the cell text in place, VBA will be required.

    Inside a loop that sets cl to the cell to be processed:

    str = cl.value
    i = Instr(str, ".\")
    cl = Trim(Mid$(str, i + 2))  ' assuming you want to exclude the ".\"
    cl.Offset(0, 1) Trim(Left$(str, i - 1)) ' Places the original first part one cell to the right
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to extract only the sales rank (which in this case is 5)
I Have two problem in this Case : I want to pass a JSON
I'm working on the issue of design patterns. In this case I want to
I want to upload files directly to IIS7 (in this case I am using
I want to have two EntityManagerFactories ( org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean in this case), with each of
I want to write a String to a Stream (a MemoryStream in this case)
I want to loop true certain elements, in this case all with the class
I'm not sure how to target the element I want in this case: var
Basically, I want to generate an item, in this case, a ring. I have
I want to make a case sensitive comparision like this: If ARGV[0].eql? /word/i print

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.