Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 1
Red face Need to have data in one column

I have below data in my excel sheet:--

user1 a1 a2 a3
user2 b1 b2 b3
user3 c1 c2 c3


and i need it this way:--

user1 a1
user1 a2
user1 a3
user2 b1
user2 b2
user2 b3
user3 c1
user3 c2
user3 c3


Can anyone please help me in this...

Thanks in advance..!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 153
Default Need to have data in one column

I have below data in my excel sheet:--

user1 a1 a2 a3
user2 b1 b2 b3
user3 c1 c2 c3


and i need it this way:--

user1 a1
user1 a2
user1 a3
user2 b1
user2 b2
user2 b3
user3 c1
user3 c2
user3 c3


Here's one way, assuming there are always three rows for each user, and that the data starts at Sheet1!A1.

On another sheet, put this in A1:
=INDEX(Sheet1!$A$1:$A$20,INT((ROW()+2)/3),1)
and this in B1:
=INDEX(Sheet1!$B$1:$D$20,INT((ROW()+2)/3),MOD(ROW()-1,3)+1)
and copy down as far as needed. I used 20 for the number of rows in Sheet1; change the 20's in the formulas as needed for the maximum number of rows.

When a cell is empty, the two formulas produce zero. If you need to avoid this, wrap the formulas this way:
=IF(above_formula="", "", above_formula)

Hope this helps getting started.
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving data from column to row in groups of 250 per row for fourrows, then skip a row and continue the same throughout the data in column A Eric Hess Excel Programming 1 July 11th 11 11:35 PM
Search for a column based on the column header and then past data from it to another column in another workbook minkokiss Excel Programming 2 April 5th 07 01:12 AM
Based on a condition in one column, search for a year in another column, and display data from another column in the same row look [email protected] Excel Programming 2 December 30th 06 06:23 PM
Based on a condition in one column, search for a year in another column, and display data from another column in the same row look [email protected] Excel Discussion (Misc queries) 1 December 27th 06 05:47 PM
Matching one column against another column of data to show the same amount of data. dodat Excel Worksheet Functions 0 December 30th 05 06:19 PM


All times are GMT +1. The time now is 03:40 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"