Hi guys, I have a sheet like: [TABLE="width: 500"]
<tbody>[TR]
[TD]SKU[/TD]
[TD]price[/TD]
[/TR]
[TR]
[TD]H100L200-245-PK10
[/TD]
[TD]1.09[/TD]
[/TR]
[TR]
[TD]H100L200-245-PK100
[/TD]
[TD]10.62[/TD]
[/TR]
[TR]
[TD]H100L245-290-PK10
[/TD]
[TD]1.37[/TD]
[/TR]
[TR]
[TD]H100L245-290-PK100
[/TD]
[TD]13.26[/TD]
[/TR]
</tbody>[/TABLE]
Now, in simple human logic, I need pack of 10 to take the price of it's 100 pack version. So, cell b2 (1.09) becomes 10.62. Cell b3 (10.62) remains as is. Then cell b4 becomes 13.26 and b5 remains as is.
Spreadsheet should after look like
[TABLE="width: 500"]
<tbody>[TR]
[TD]SKU[/TD]
[TD]price[/TD]
[/TR]
[TR]
[TD]H100L200-245-PK10
[/TD]
[TD]10.62[/TD]
[/TR]
[TR]
[TD]H100L200-245-PK100
[/TD]
[TD]10.62[/TD]
[/TR]
[TR]
[TD]H100L245-290-PK10
[/TD]
[TD]13.26[/TD]
[/TR]
[TR]
[TD]H100L245-290-PK100
[/TD]
[TD]13.26[/TD]
[/TR]
</tbody>[/TABLE]
I have 4518 rows(including header rows). So, cannot do it manually.
What I attempted:
In cell B2 I typed:
Then selected that cell along with b3 and dragged down. Works at treat if I drag down down to only b4 then reselect all and drag down again. But if I select and drag down further it doesn't work.
The pattern is being picked up in that formulae is only in every other row. But it is changing the skipped rows value so that for example if I drag four down, the price column is:
[TABLE="width: 500"]
<tbody>[TR]
[TD]price[/TD]
[/TR]
[TR]
[TD]10.62[/TD]
[/TR]
[TR]
[TD]10.62[/TD]
[/TR]
[TR]
[TD]13.26[/TD]
[/TR]
[TR]
[TD]13.26[/TD]
[/TR]
[TR]
[TD]11.62[/TD]
[/TR]
[TR]
[TD]11.62[/TD]
[/TR]
[TR]
[TD]14.26[/TD]
[/TR]
[TR]
[TD]14.26[/TD]
[/TR]
</tbody>[/TABLE]
<tbody>[TR]
[TD]SKU[/TD]
[TD]price[/TD]
[/TR]
[TR]
[TD]H100L200-245-PK10
[/TD]
[TD]1.09[/TD]
[/TR]
[TR]
[TD]H100L200-245-PK100
[/TD]
[TD]10.62[/TD]
[/TR]
[TR]
[TD]H100L245-290-PK10
[/TD]
[TD]1.37[/TD]
[/TR]
[TR]
[TD]H100L245-290-PK100
[/TD]
[TD]13.26[/TD]
[/TR]
</tbody>[/TABLE]
Now, in simple human logic, I need pack of 10 to take the price of it's 100 pack version. So, cell b2 (1.09) becomes 10.62. Cell b3 (10.62) remains as is. Then cell b4 becomes 13.26 and b5 remains as is.
Spreadsheet should after look like
[TABLE="width: 500"]
<tbody>[TR]
[TD]SKU[/TD]
[TD]price[/TD]
[/TR]
[TR]
[TD]H100L200-245-PK10
[/TD]
[TD]10.62[/TD]
[/TR]
[TR]
[TD]H100L200-245-PK100
[/TD]
[TD]10.62[/TD]
[/TR]
[TR]
[TD]H100L245-290-PK10
[/TD]
[TD]13.26[/TD]
[/TR]
[TR]
[TD]H100L245-290-PK100
[/TD]
[TD]13.26[/TD]
[/TR]
</tbody>[/TABLE]
I have 4518 rows(including header rows). So, cannot do it manually.
What I attempted:
In cell B2 I typed:
Code:
=INDEX($B$2:$B$4518,ROWS(B$2:B2)+1)
Then selected that cell along with b3 and dragged down. Works at treat if I drag down down to only b4 then reselect all and drag down again. But if I select and drag down further it doesn't work.
The pattern is being picked up in that formulae is only in every other row. But it is changing the skipped rows value so that for example if I drag four down, the price column is:
[TABLE="width: 500"]
<tbody>[TR]
[TD]price[/TD]
[/TR]
[TR]
[TD]10.62[/TD]
[/TR]
[TR]
[TD]10.62[/TD]
[/TR]
[TR]
[TD]13.26[/TD]
[/TR]
[TR]
[TD]13.26[/TD]
[/TR]
[TR]
[TD]11.62[/TD]
[/TR]
[TR]
[TD]11.62[/TD]
[/TR]
[TR]
[TD]14.26[/TD]
[/TR]
[TR]
[TD]14.26[/TD]
[/TR]
</tbody>[/TABLE]