Easy...Simple....Can't figure it out

tae0039

New Member
Joined
Nov 2, 2017
Messages
8
Have this:

A1=val
A2=val
A3=val
A4=val
A5=val
A6=val
A7=val
A8=val

Need to turn next column into this:
B1=A1
B2=A1
B3=A2
B4=A2
B5=A3
B6=A3

Excel won't pick up on the pattern, any tips?
Basically need to turn "X" number of cells into twice as many cells, duplicating each cell below itself or into a new row idc. :rolleyes::):):)
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Try

B1 copied down
=IF(2*ROWS(A$1:A$8)>=ROWS(B$1:B1),INDEX(A$1:A$8,INT((ROWS(B$1:B1)-1)/2)+1),"")

M.
 
Upvote 0
Put this in B1 and copy down

=INDEX(A:A,ROW()/2)



AlphaFrog......NAILED IT......took me a second to fully appreciate the delicate simplicity of this

3/2=1.5roundsTO= 2
4/2=.................= 2
5/2=2.5roundTO= 3
6/3=...............=3

perdy

thanks
 
Upvote 0
I seem to have different results. It's not ROUNDING up, instead it's TRUNCATING 1.5 becomes 1.
1/2 = 0.5, Truncated to 0, INDEX(A:A,0) = A1
2/2 = 1, INDEX(A:A,1) = A1
3/2 = 1.5. It's NOT rounded to 2, it's Truncated to 1.
4/2 = 2, INDEX(A:A,2) = A2


Excel 2013/2016
AB
1aa
2ba
3ca
4db
5eb
6fc
7gc
8hd
Sheet1
Cell Formulas
RangeFormula
B1=INDEX(A:A,ROW()/2)
B2=INDEX(A:A,ROW()/2)
B3=INDEX(A:A,ROW()/2)
B4=INDEX(A:A,ROW()/2)
B5=INDEX(A:A,ROW()/2)
B6=INDEX(A:A,ROW()/2)
B7=INDEX(A:A,ROW()/2)
B8=INDEX(A:A,ROW()/2)
 
Last edited:
Upvote 0
This works
=INDEX(A:A,(ROW()-1)/2+1)

But if a row is inserted above the data it fails.
That's why i prefer the formula i've suggested above - a little bit complex but more robust.

M.
 
Upvote 0
It seemed to work for me, Jonmo1.

This should force it to round up.

=INDEX(A:A,CEILING(ROW()/2,1))
 
Upvote 0
Yes, B1.
I'm using Excel 2003.

Apparently it worked for the OP as well. Don't know what version he has.

Check your calculation options. Maybe precision as displayed. Just guessing. Don't know if that would make a difference.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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