Microsoft Excel Mac 2011: How to get the cell below value, and skip a row ?

vpatel93

New Member
Joined
Oct 3, 2016
Messages
1
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:

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]
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!

Forum statistics

Threads
1,223,246
Messages
6,170,987
Members
452,373
Latest member
TimReeks

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