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

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
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,215,523
Messages
6,125,323
Members
449,218
Latest member
Excel Master

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