Solved

MS Excel combine 4 rows into one row without using macro

Posted on 2010-09-16
8
376 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
  • 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 65 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
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
LVL 50

Assisted Solution

by:Ingeborg Hawighorst
Ingeborg Hawighorst earned 60 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

Expert Comment

by:Ingeborg Hawighorst
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

Expert Comment

by:Ingeborg Hawighorst
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

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

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

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

821 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