Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 1
Unhappy column to row draging

I have a column of data (say) in Column A. Then I need to copy each 5 data into a row. For example, A1, A2..., A5 into D1, E1, F1, G1, H1; A6, A7,..., A10 into D2, E2, F2, G2, H2; A11, A12,..., A15 into D3, E3, F3, G3, H3.....
.......
My idea is to type A1 into D1, the using drag for E1=A2, F1=A3, G1=A4, H1=a5. then type A6 into D2, the using drag for E2=A7, F2=A8, .... , H2=A10. and so on.

Unfortunately, once I drag D1 to the right, I get E1=B1, F1=C1, G1=D1, H1=E1. Putting $D1 does not work neither. Any help? Thanks.
  #2   Report Post  
Senior Member
 
Location: Belo Horizonte, Brazil
Posts: 170
Thumbs up

Quote:
Originally Posted by peterbn74 View Post
I have a column of data (say) in Column A. Then I need to copy each 5 data into a row. For example, A1, A2..., A5 into D1, E1, F1, G1, H1; A6, A7,..., A10 into D2, E2, F2, G2, H2; A11, A12,..., A15 into D3, E3, F3, G3, H3.....
My idea is to type A1 into D1, the using drag for E1=A2, F1=A3, G1=A4, H1=a5. then type A6 into D2, the using drag for E2=A7, F2=A8, .... , H2=A10. and so on.
Unfortunately, once I drag D1 to the right, I get E1=B1, F1=C1, G1=D1, H1=E1. Putting $D1 does not work neither. Any help? Thanks.
Dear Peterbn74, Good afternoon.

Try to do this:

D1 -- =INDIRECT((ADDRESS((ROW())+((ROW()-1)*4),1,3,1,)))
E1 -- =INDIRECT((ADDRESS((ROW())+((ROW()-1)*4)+1,1,3,1,)))
F1 -- =INDIRECT((ADDRESS((ROW())+((ROW()-1)*4)+2,1,3,1,)))
G1 -- =INDIRECT((ADDRESS((ROW())+((ROW()-1)*4)+3,1,3,1,)))
H1 -- =INDIRECT((ADDRESS((ROW())+((ROW()-1)*4)+4,1,3,1,)))

Now you can push down the formulas.

Please, try this one and tell me if it worked for you.
__________________
I hope it can help you.

Best regards,
Marcilio Lobão
---------------------------
Belo Horizonte, Brazil

Last edited by Mazzaropi : November 7th 12 at 02:33 PM
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
draging formula jez Excel Programming 0 November 25th 08 09:31 PM
double clicking and draging a column in a chart to chg data Tom of inns Charts and Charting in Excel 1 October 27th 08 07:21 PM
Draging VLOOKUP to last cell. mohd21uk via OfficeKB.com New Users to Excel 4 May 15th 06 04:27 PM
Draging horozontal swissforestry Excel Discussion (Misc queries) 1 February 7th 06 05:48 PM
Draging a conditional format Robert Excel Worksheet Functions 1 December 9th 04 02:08 PM


All times are GMT +1. The time now is 12:17 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"