Getting cells that arent in order to reference cells in order.

NobleExcel

New Member
Joined
Jun 23, 2015
Messages
4
I hope the title makes sense. So I have a ref list on another sheet that I have cells to refer to but my cells aren't in order for example my first cell that refers to the list is in B2 and the next one is in B18. I'm figuring it has something to do with the offset function but I cant figure it out. Below are pictures to help illustrate my issue. Thanks.

https://imgur.com/a/OXIsD

OXIsD
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Hi NobelExcel,

Great idea to use the offset function. If you have two sheets (Sheet1 and Sheet 2). Sheet 2 contains the data you want to refer to. The pattern is: First value in B2, second in B18, third in B34. So there is 16 rows in between, every time.

Then in Cell A2, of sheet1, you could use the formula:

Code:
=OFFSET(Sheet2!$B$2; (ROW(A2)-2) * 16;  0)

The part saying ROW(A2) -2, first calculates the row of the current calculation, and then removes 2. So the first cell is always B2 on sheet2. But on the next row, it calculates Row 3 -2 = 1. And multiplies this by 16. Meaning it offsets the reference cell with 16 rows, but 0 columns.

I hope it helps!

Rick
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,827
Messages
6,181,197
Members
453,022
Latest member
RobertV1609

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