• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
    • Password Reset
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

combine list of data with same component number groupings|General Excel Questions & Answers|Excel Forum|My Online Training Hub

You are here: Home / combine list of data with same component number groupings|General Excel Questions & Answers|Excel Forum|My Online Training Hub
Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search|Last Search Results
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumGeneral Excel Questions & Answe…combine list of data with same comp…
sp_PrintTopic sp_TopicIcon
combine list of data with same component number groupings
Avatar
Annalisa Loh
Member
Members
Level 0
Forum Posts: 9
Member Since:
July 6, 2021
sp_UserOfflineSmall Offline
1
March 3, 2022 - 7:25 am
sp_Permalink sp_Print

Hello,

I'm wondering if there is a way to pull data into a different sheet that are grouped together into similar component numbers.  I have a list of asset component numbers with associated descriptions and I want to combine all the descriptions with the same component groupings (A2, A3, A4, A5, A6, etc.) and transfer to a different cell.

For example, anything that has an asset number beginning with A5, I want to be able to copy those descriptions into a single cell.  The attached spreadsheet shows the example of what we want to accomplish.  The Data sheet contains the list as is and the What we want sheet is what we need the original list to become.

Please let me know if you can help...any help would be very much appreciated

Thanks & have a nice day!

Annalisa

Avatar
Lionel Baijot
Member
Members
Level 0
Forum Posts: 114
Member Since:
September 9, 2020
sp_UserOfflineSmall Offline
2
March 3, 2022 - 4:32 pm
sp_Permalink sp_Print

Hi Annalisa Loh,

I suggest you work with Power Query.

  • The first step is to import your data into Power Query
  • Then you separate your data to get the 'Assest' code.
  • Then, you group your data by combining the different elements (by 'Assest')
  • Finally, you put your results back into Excel (Result sheet)

BR,

Lionel

Avatar
Jessica Stewart
Northern USA
Member
Members


Trusted Members
Level 0
Forum Posts: 205
Member Since:
February 13, 2021
sp_UserOfflineSmall Offline
3
March 3, 2022 - 4:44 pm
sp_Permalink sp_Print

You're looking for a simple Vlookup. In your original highlighted columns I used Xlookup if you have Microsoft 365; otherwise, in the non-highlighted columns I used Vlookup.

Avatar
Velouria
London or thereabouts
Moderator
Members


Trusted Members

Moderators
Level 4
Forum Posts: 627
Member Since:
November 1, 2018
sp_UserOfflineSmall Offline
4
March 3, 2022 - 7:42 pm
sp_Permalink sp_Print sp_EditHistory

You could do it with power query if you have it, as in the attached version of your workbook.

If you have 365 (or 2021 I think) you could use FILTER and TEXTJOIN.

 

Edit: apologies, I did not see that Lionel had already given you a PQ solution.

Avatar
Annalisa Loh
Member
Members
Level 0
Forum Posts: 9
Member Since:
July 6, 2021
sp_UserOfflineSmall Offline
5
March 4, 2022 - 7:16 am
sp_Permalink sp_Print

Thank you for all the replies/suggestions.

Lionel & Velouria,

Thank you for your help so that I am able to get the needed results.  I have a further question:

If I do this in Power Query, is there a way to have this repeated for many workbooks without having to create a new query for each file?  Basically, is there a way to have this query saved and then applied to other workbooks?  Or will I need to do this for every separate report?  The reports cannot be combined because they are for different sites and locations.

Any further help or suggestions would be greatly appreciated.

Thanks,

Annalisa

Avatar
Velouria
London or thereabouts
Moderator
Members


Trusted Members

Moderators
Level 4
Forum Posts: 627
Member Since:
November 1, 2018
sp_UserOfflineSmall Offline
6
March 4, 2022 - 7:17 pm
sp_Permalink sp_Print

If the data layout is the same, you could save the workbook as a template and just copy different data sets into it.

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online:
Guest(s) 9
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 871
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 219
Jessica Stewart: 205
A.Maurizio: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
stuart burge
Bruce Tang Nian
Scot C
Othman AL MUTAIRI
Misael Gutierrez Sr.
Attif Ihsan
Kieran Fee
Murat Hasanoglu
Brett Dryland
Saeed Aldousari
Forum Stats:
Groups: 3
Forums: 24
Topics: 6223
Posts: 27295

 

Member Stats:
Guest Posters: 49
Members: 31920
Moderators: 3
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook
 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.