Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 80
Default Records re-allocation problem.

Dear all,
Theres a table A in a sheet in excel, in this table ,the records are
placed row byrow,for example,if there are 20 records,then it occupies 1-21
rows(including column heading.)
And I have to use the records in another table B,but the pattern of table B
is for every four rows ,the first equals the one row in table A,and the other
three rows are kept null,for example,(the second row in table B= the second
row in table A;the sixth row in table B= the third row in table A;the tenth
row in table B= the forth row in table A;etc)
How can I relize it?Thanks.
Best regards.
Dawn Wu
Shanghai,China

  #2   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Records re-allocation problem.

Some thoughts to realize it ..

Suppose table A's data is within A2:C21
Place in say, E2:
=IF(MOD(ROWS($1:1)-1,4)=0,OFFSET(A$2,INT((ROWS($1:1)-1)/4),),"")
Copy E2 across to G2, then fill down as far as required to exhaust the
extract from table A. What you'd get should be the desired results that you
seek: 1st row of data from table A, then 3 blank rows, then the 2nd row of
data from table A, then 3 blank rows, and so on.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Dawn" wrote:
Dear all,
Theres a table A in a sheet in excel, in this table ,the records are
placed row byrow,for example,if there are 20 records,then it occupies 1-21
rows(including column heading.)
And I have to use the records in another table B,but the pattern of table B
is for every four rows ,the first equals the one row in table A,and the other
three rows are kept null,for example,(the second row in table B= the second
row in table A;the sixth row in table B= the third row in table A;the tenth
row in table B= the forth row in table A;etc)
How can I relize it?Thanks.
Best regards.
Dawn Wu
Shanghai,China

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,646
Default Records re-allocation problem.

=INDIRECT("TableA!"&ADDRESS(FLOOR(ROW()/4,1)+IF(ROW()=1,1,2),1,4,1))
returns the required row of column A
=INDIRECT("TableA!"&ADDRESS(FLOOR(ROW()/4,1)+IF(ROW()=1,1,2),2,4,1))
of column B, etc.

Regards,
Stefi

Dawn ezt *rta:

Dear all,
Theres a table A in a sheet in excel, in this table ,the records are
placed row byrow,for example,if there are 20 records,then it occupies 1-21
rows(including column heading.)
And I have to use the records in another table B,but the pattern of table B
is for every four rows ,the first equals the one row in table A,and the other
three rows are kept null,for example,(the second row in table B= the second
row in table A;the sixth row in table B= the third row in table A;the tenth
row in table B= the forth row in table A;etc)
How can I relize it?Thanks.
Best regards.
Dawn Wu
Shanghai,China

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
shift allocation Andrew@rushington[_2_] Excel Worksheet Functions 3 December 11th 07 03:49 PM
Allocation Dinesh Excel Worksheet Functions 4 June 28th 07 10:06 PM
Please-please-Help - Need to Resolve this - Allocation problem Chunkey Pandey Excel Discussion (Misc queries) 4 November 25th 06 04:36 PM
F-key allocation HELLBOY787 Excel Discussion (Misc queries) 1 June 30th 05 11:21 AM
re-allocation problem Sienayr Excel Discussion (Misc queries) 1 March 21st 05 10:03 PM


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