Interposing rows.

serge

Well-known Member
Joined
Oct 8, 2008
Messages
1,444
Office Version
  1. 2007
Platform
  1. Windows
Hi everyone,
I'm looking for a formula that will interpose 2 sets of row into 5 columns.
In A:E there is 5 cells : date, 3 digits and a $ amount and the same from G:K.
Those are lottery draws that happen twice per day, that's why each row has the same date, one is Mid day and the other is Evening.
What I'm looking for is to interlace those 2 draws per day into just 5 columns from M:Q like the example show.
Thank you.

Capture.PNG
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Book1
ABCDEFGHIJKLMNOPQ
201-Jan123$40001-Jan192021$80001-Jan123400
302-Jan456$45002-Jan222324$85001-Jan192021800
403-Jan789$50003-Jan252627$90002-Jan456450
504-Jan101112$55004-Jan282930$95002-Jan222324850
605-Jan131415$60005-Jan313233$1,00003-Jan789500
706-Jan161718$65006-Jan343536$1,05003-Jan252627900
804-Jan101112550
904-Jan282930950
1005-Jan131415600
1105-Jan3132331000
1206-Jan161718650
1306-Jan3435361050
14
15
Sheet1
Cell Formulas
RangeFormula
M2:Q13M2=INDEX($A$2:$K$15,INT((ROWS($1:1)-1)/2)+1,IF(ISODD(ROWS($1:1)),0,6)+COLUMNS($A:A))
 
Upvote 0
Very nice, Than you bebo021999, your formula works like a charm for what I need, I really appreciate the help.
 
Upvote 0
Hello, I'm not sure if I need to open a new tread or keep going with this one since it's the same subject ?

bebo021999 solve my problem, Thank you again.
I found that that some other games have 3 draws per day so I would need the formula to be modified to add 1 more draw to my column !
To look like this example below :

This is the formula that I use :
=INDEX($A$3:$K$331,INT((ROWS($1:1)-1)/2)+1,IF(ISODD(ROWS($1:1)),0,6)+COLUMNS($A:A))

555.PNG


Thank you.
 
Upvote 0
Could you post a mini-sheet like I did before?
 
Upvote 0
Using the layout in Post#2, you can modify @bebo021999's formula to:

=INDEX($A$2:$Q$15,INT((ROWS($1:1)-1)/3)+1,COLUMNS($A:A)+MOD(ROWS($1:1)-1,3)*6)

Apologies for jumping in. I started at your other post: Overlapping rows.
 
Upvote 0
Could you post a mini-sheet like I did before?
Hi bebo021999,
I tried to installed it multiple time but it doesn't work maybe because I'm running on Excel 07, I don't now I would really like to have it it would make it easier for me sometime to explain my file but it can't be install on my excel !!!
 
Upvote 0

Forum statistics

Threads
1,223,602
Messages
6,173,294
Members
452,509
Latest member
CSHOCK

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top