Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

MS Excel combine 4 rows into one row without using macro

Posted on 2010-09-16
8
Medium Priority
?
381 Views
Last Modified: 2012-05-10
I need to combine 4 rows into one row. Like below.
1
2
3
4
1
2
3
4
.
.

combine to 

1234
1234
1234
1234
.
.

Open in new window



I know how to write a macro to do this. But my fuzzy end user doesn't like to use macro.
So is there some other way to do this, like using a few button clicks, or text import wizard, or formulas?

Thanks!
0
Comment
Question by:scarlett_lee
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
  • +1
8 Comments
 
LVL 59

Expert Comment

by:Chris Bottomley
ID: 33690286
in a word ... no!

Even if for example trying to use filters, cut, paste , row insertion/delete and concatenation it would be a lot of work and highly specialised in terms of there is no generic functions to help with doing it.

Chris
0
 
LVL 85

Accepted Solution

by:
Rory Archibald earned 260 total points
ID: 33690297
Assuming your data starts in A1, in B1 enter:
=INDEX(A:A,(ROW()-1)*4+1)&INDEX(A:A,(ROW()-1)*4+2)&INDEX(A:A,(ROW()-1)*4+3)&INDEX(A:A,(ROW()-1)*4+4)
and copy down as far as necessary.
0
 
LVL 59

Expert Comment

by:Chris Bottomley
ID: 33690343
Oh phooeey - I was gobsmacked that Rory posted so went to see how it could work - I really really need to read the question .. I thought it was 11 22 33 44 to gather the like rows.

Thankfully there are others who are awake!

Chris
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 50

Assisted Solution

by:Ingeborg Hawighorst (Microsoft MVP / EE MVE)
Ingeborg Hawighorst (Microsoft MVP / EE MVE) earned 240 total points
ID: 33690375
here is my version. Took me a bit longer than rorya to work it out, but it also works on my data sample

=INDEX(A:A,ROW()*4-3)&INDEX(A:A,ROW()*4-2)&INDEX(A:A,ROW()*4-1)&INDEX(A:A,ROW()*4)

cheers, teylyn
0
 
LVL 50
ID: 33690407
Chris, I thought at this time of day the UK should be wide awake. At least, when I feel like keeling over, down under, you are in the middle of your productive phase, no? (Unless you're moonlighting at EE of course).

cheers, teylyn
0
 
LVL 50
ID: 33690443
I like the concept of "fuzzy users". Reads like you can just wipe them away, like a piece of irritating fluff. They're not really there. You can only see them if you concentrate hard. If you don't concentrate, you'll look straight through them.

:-))

Sorry, scarlett lee, but this was too tempting to pass by.

I hope with the tips you get here at EE, you'll be able to satisfy your fussy users and get lots of warm, fuzzy feelings back from them.

cheers, teylyn
0
 

Author Comment

by:scarlett_lee
ID: 33690517
Hehe...
0
 

Author Closing Comment

by:scarlett_lee
ID: 33820103
The question was answered
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

604 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question