Combining rows

toomb

New Member
Joined
Aug 24, 2018
Messages
5
Office Version
  1. 365
Platform
  1. Windows
Hi, I am looking for some help with an Excel formula (unsurprisingly)

I have 4,000+ rows of data in the format below. Every row only has one result in one of the year columns. I am looking for a way to combine the rows into something like in the second image, and have been tearing my hair out trying to work out how to do it.

Excel_Pic.png


Excel_Pic1.png


Any help would be very gratefully accepted
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Welcome to the MrExcel board!

Hi, I am looking for some help with an Excel formula
If you are looking to do this with a formula, then you will need to create a separate table as shown below. Here are two suggestions.

A) The solution in columns J:Q requires the CONCAT function that is only available in recent Excel versions.
J2 is copied down
K2 is an array formula so should be entered without the {} but confirmed with Ctrl+Shift+Enter, not just Enter. If confirmed correctly, Excel will insert the {}. The formula can then be copied across and downdown.

B) The solution in columns S:Z requires Excel 2010 or later.
S2 copied down
T2 is a standard-entry formula and again copied across and down.

(For the future, you will get many more potential helpers if you explain your problem clearly in words and, if needed, post a small (copyable) screen shot or two directly in your post. My signature block below has help regarding that. Helpers cannot copy from images like you posted and generally shy away from having to type out sample data manually. :))

Excel Workbook
ABCDEFGHIJKLMNOPQRSTUVWXYZ
1Player2003200420052006200720082009Player2003200420052006200720082009Player2003200420052006200720082009
2Player 1aPlayer 1aaPlayer 1aa
3Player 1aPlayer 2bbbbbbPlayer 2bbbbbb
4Player 2b
5Player 2b
6Player 2b
7Player 2b
8Player 2b
9Player 2b
Combine Rows
 
Last edited:
Upvote 0
Thank you so much for the help, that has worked perfectly.

(and for the point on how I displayed the question!)

Thanks again
 
Upvote 0

Forum statistics

Threads
1,224,827
Messages
6,181,197
Members
453,021
Latest member
pingpong7117

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top