![]() |
select every other cell in a column
How can I select every other cell in Row B, from row 2 thru row 250?
Data looks like this... Item1 price1 Item2 price2 I need... Item1 price1 Item2 price2 so if I can select every other cell in the column, i can move them the correct column. -- deb |
select every other cell in a column
Hi,
With a Macro. Right click your sheet tab, view code and psate this in and run it Sub everyother() Dim rRow As Long, rEverySecond As Range On Error Resume Next For rRow = 2 To 250 Step 2 If rEverySecond Is Nothing Then Set rEverySecond = Cells(rRow, "B") Else Set rEverySecond = Union(rEverySecond, Cells(rRow, "B")) End If Next rRow rEverySecond.Select End Sub Mike "deb" wrote: How can I select every other cell in Row B, from row 2 thru row 250? Data looks like this... Item1 price1 Item2 price2 I need... Item1 price1 Item2 price2 so if I can select every other cell in the column, i can move them the correct column. -- deb |
select every other cell in a column
I like Mike's option , but you can also do a formula in cell b, say item1 is
in cell A1 , then in cell B1 put =A2 and drag that down. Then in C1 put 1, then in c2 put =if(c1=1,0,1) and drag that down. Then filter on column C so only the 1's are showing. You can copy this or what ever but a line with item1, price , and 1 will be showing. good luck "deb" wrote: How can I select every other cell in Row B, from row 2 thru row 250? Data looks like this... Item1 price1 Item2 price2 I need... Item1 price1 Item2 price2 so if I can select every other cell in the column, i can move them the correct column. -- deb |
select every other cell in a column
Instead of copying and pasting, try this formula, which will give you the
data configuration that you're looking for. Enter this formula *anywhere*, then copy across one column. Then, select *both* cells, and drag down the 2 cell selection as far as needed. =INDEX($B$2:$B$250,2*ROWS($1:1)+COLUMNS($A:A)-2) After you have all the data displayed as needed, you can remove the formulas and leave just the data behind by copying to itself and then "Paste Special", and click on "Values", then <OK. -- HTH, RD ================================================== === Please keep all correspondence within the Group, so all may benefit! ================================================== === "deb" wrote in message ... How can I select every other cell in Row B, from row 2 thru row 250? Data looks like this... Item1 price1 Item2 price2 I need... Item1 price1 Item2 price2 so if I can select every other cell in the column, i can move them the correct column. -- deb |
All times are GMT +1. The time now is 10:32 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com