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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T21:20:34+00:00 2026-06-18T21:20:34+00:00

I have data that I need to split into individual points. My macro charts

  • 0

I have data that I need to split into individual points. My macro charts the data, as a scatter plot, with: Column A as the title of the chart, Column B as the X axis, and Columns C and D as the Y axis. What I need is for when the Product ID has more than 1 number listed to split the numbers out into their own rows and keep the columns B, C, and D the same for each row created form the original. So for row 167, I would want 3 rows (001,002,003) each with packaging, 200, and 100, in B, C, and D respectively. I am not sure where to begin. I tried to build a macro but, I immediately got tripped up when I tried to record a “Find” Formula to run on the data. Any help would be greatly appreciated.

Column A: 001, 002, 003 // Column B:packaging // Column C:200 // Column D:100

Sorry I couldn’t post a screenshot of my data, the forum won’t let me. If you have any questions please let me know, I will be sure to check in frequently.

Thanks 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-18T21:20:35+00:00Added an answer on June 18, 2026 at 9:20 pm
    Sub DivideData()
    

    ‘This splits any codes combined into the same line, into their own separate lines with their own separate data

    Dim a, b, txt As String, e, s, x As Long, n As Long, i As Long, ii As Long
    With Range("a1").CurrentRegion
        a = .Value
        txt = Join$(Application.Transpose(.Columns(1).Value))
        x = Len(txt) - Len(Replace(txt, ",", "")) + .Rows.Count
        ReDim b(1 To x * 2, 1 To UBound(a, 2))
        For i = 1 To UBound(a, 1)
            For Each e In Split(a(i, 1), ",")
                If e <> "" Then
                    For Each s In Split(e, "-")
                        n = n + 1
                        For ii = 1 To UBound(a, 2)
                            b(n, ii) = a(i, ii)
                        Next
                        b(n, 1) = s
                    Next
                End If
            Next
        Next
        With .Resize(n)
            .Columns(1).NumberFormat = "@"
            .Value = b
        End With
    End With
    

    End Sub

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

Sidebar

Related Questions

I have a table of data that I need to dynamically add a column
I have a file that describes input data, which is split into several other
I have a flat data file that I need to import into my SQL
I have some strings of data separated by that needs to be split into
I have some data files that I need to install together with my application
I have many tens of thousands of rows of data that need to be
I have data from two different sources that I need to combine. Some data
I have couple of dozen pieces of data that I need to save and
I have a set of 'dynamic data' that I need to bind to the
I have table to test score data that I need to pivot and I

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.