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

  • Home
  • SEARCH
  • 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 8562657
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T16:46:37+00:00 2026-06-11T16:46:37+00:00

I have report.xlsx file which contains data from 2 other excel workbook which got

  • 0

I have report.xlsx file which contains data from 2 other excel workbook which got merged based on some unique value. Pool_RAM column has data from file1.xlsx and Pool_HDD column has data from file2.xlsx. Both the column contains some duplicate values. Now I want to group the rows based on similar values and put in format as mentioned below.

Report.xlsx Actual Data

enter image description here

And I want data to in the below format.

Expected Format

enter image description here

Please let me know if you need any other information.

  • 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-11T16:46:38+00:00Added an answer on June 11, 2026 at 4:46 pm

    Try this macro and adjust it to your needs:

    Sub GroupMyData()
    'Assuming the data source is in column F and G, from row 2 to 1000
    'The result will be put in column K and L
    'part1: filter to unique values, put in column J temporarily
        Range("F2:F1000").AdvancedFilter Action:=xlFilterCopy, CopyToRange:=Range("J2" _
            ), Unique:=True
    
    'part2: fill the data
        Range("K1") = Range("F1")
        Range("L1") = Range("G1")
        Range("J2").Select
        Range(Selection, Selection.End(xlDown)).Select
        n = Selection.Count
        Range("K2").Select
        ck = 2
        cl = 2
        For i = 1 To n
          txt = Range("J" & (i + 1))
          numf = WorksheetFunction.CountIf(Range("F2:F1000"), txt)
          For j = 1 To numf
            Range("K" & ck) = txt
            ck = ck + 1
          Next
          numg = WorksheetFunction.CountIf(Range("G2:G1000"), txt)
          For j = 1 To numg
            Range("L" & cl) = txt
            cl = cl + 1
          Next
          If (ck > cl) Then
            cl = ck
          Else
            ck = cl
          End If
          ck = ck + 1
          cl = cl + 1
        Next
    'part 3: delete the temporary data
        Range("J2:J1000").Select
        Selection.ClearContents
        Range("K2").Select
    
    End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have problem related to file protection when changed the Jasper Report output from
I have report that I must convert to PDF using xsl-fo from xml data
I have a report which grabs a whole bunch of statistical data that represent
I have a report that I would like to display with some data hidden
I have already created a report using list of data from my database. i
I have a report that renders data returned from a stored procedure. Using profiler
I am working on a file management application which parses excel files from the
we have a system to generate xlsx file from xlsx templates using jxls, Now
Which web site tracking tools do not have Report Data Sampling? Currently, I'm using
I have a report that is getting info from bsis, bsas, bsid, bsad, vbrk,

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.