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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T04:05:46+00:00 2026-05-23T04:05:46+00:00

An application I use exports strings of data in an array in one cell,

  • 0

An application I use exports strings of data in an array in one cell, like so:

"data1"= value1; "data2"= value2; "data3"= value3; "data4"= value4; "data5"= value5;

I’d like an equation or macro or something that could split it like this:

----------------------------------------------------------------
|   |  data0  |  data1  |  data2 |  data3  |  data4  |  data5  |
----------------------------------------------------------------
| 1 |  ARRAY  |  value1 | value2 |  value3 |  value4 |  value5 |
----------------------------------------------------------------
| 2 |  ARRAY  |  value1 | value2 |  value3 |  value4 |  value5 |
----------------------------------------------------------------
| 3 |  ARRAY  |  value1 | value2 |  value3 |  value4 |  value5 |
----------------------------------------------------------------
. . . . and so on.

Is this possible?

Here is a string from the document:

"search-terms1" = Chinese jade; "search-terms2" = Chinese archers; "search-terms3" = Antique jade; "search-terms4" = Asian jade; "search-terms5" = China history;

It will always be search-terms1 – search-terms5, but the ‘values’ will be different for each row.

Excel 2003 on Windows XP

  • 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-05-23T04:05:47+00:00Added an answer on May 23, 2026 at 4:05 am

    This will start in A2 and go down for how ever many rows have data. It’s splits the values out into the columns to the right.

    Sub SplitSearch()
    
        Dim vaTerms As Variant
        Dim vaSearch As Variant
        Dim rCell As Range
        Dim vaOutput As Variant
        Dim i As Long
    
        For Each rCell In Sheet1.Range("A2", Sheet1.Cells(Sheet1.Rows.Count, 1).End(xlUp)).Cells
            vaSearch = Split(rCell.Value, ";")
            ReDim vaOutput(1 To 1, 1 To UBound(vaSearch))
            For i = LBound(vaSearch) To UBound(vaSearch)
                vaTerms = Split(vaSearch(i), "=")
                If UBound(vaTerms) > -1 Then
                    vaOutput(1, i + 1) = Trim(vaTerms(UBound(vaTerms)))
                End If
            Next i
            rCell.Offset(0, 1).Resize(1, UBound(vaOutput, 2)).Value = vaOutput
        Next rCell
    End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am wanting to expose some data service endpoints for internal application use and
we use an application that has an export to excel feature that doesn't work
Can the application use set same char in the XON and XOFF? If yes,
Somebody said that when your PHP code and application use global variables then it
I'm using Visual Studio to create my installation package. My application use some bitmap
My application makes use of a SQLite database to store the user's inputs. The
An application I use, Mozy Backup , adds its own drive to Windows Explorer
We have an application for use in medical offices, and with CCHIT certification becoming
In my application I use a UIAlertView to display to the user a message
I try to use C++ DLL function in my Delphi application. I've the problem

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.