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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T20:52:38+00:00 2026-06-15T20:52:38+00:00

I am having a cell with values XX 99999 – X99, XX 99999 –

  • 0

I am having a cell with values

XX 99999 - X99, XX 99999 - X99, XX 99999 - X99

X – denote Alphabets
9 – denote Number

i have to read this cell and

  • split it using “,” to get array of XX 99999 - X99
  • Spit it using ” ” and “-” there after to get array of xx, 99999, and X99.

Can this be done without using “text to column”, that is using some functions in excel?
Since i need to use the separated contents to filter some other data.

  • 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-15T20:52:39+00:00Added an answer on June 15, 2026 at 8:52 pm

    Look at the Split function on MSDN. The below is split into two sections.

    1. The below code firstly splits the string and assigns each comma seperated value to strSplit.
    2. It then further splits the sub string by ” ” and assigns each piece to pieceSplit() which is then output into the immediate window.

    The last part you can change and apply to your project.

    Dim str As String, piece As Variant
    Dim strSplit() As String, pieceSplit() As Variant
    Dim i As Double, j As Double
    
    str = "XX 99999 - X99, XX 99999 - X99, XX 99999 - X99"
    
    strSplit = Split(str, ",")
    ReDim pieceSplit(UBound(strSplit)) As Variant
    
    For i = 0 To UBound(strSplit)
    
        pieceSplit(i) = Split(strSplit(i), " ")
    
    Next
    
    For Each piece In pieceSplit
    
        For j = 0 To UBound(piece, 1)
    
            Debug.Print piece(j)
    
        Next j
    
    Next
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my iphone application I have 4 cell in uiTable, and each cell having
I've got a table and want to get an array of cell values which
I'm having some trouble reading from an Excel spreadsheet in C#. I have this
I am using jqgrid 3.8. I have a grid which is having some editable
I'm having an issue where I can't get values to go into a certain
I am having problem updating table cell value using jQuery 1.4.2. it all works
I'm having an issue when exporting values (using VBA code, not via an export
I am trying to read in an excel sheet using xlrd, but I'm having
I am having an issue when reshaping a cell array: w = size(im,1); %
I am having some problems comparing the elements in different cell arrays. The context

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.