Offset values based on a defined value

Elitdarkphoenix

New Member
Joined
Nov 17, 2015
Messages
8
Hello gentleman

Im having a small issue with finding the correct way to make a formula. i request your assistance.

i would like to find a value in a table based on something like this:

=INDEX(X:X,MATCH(S,$B$:$B$,0),MATCH(R$,$C$:$N$,0))

the problem is that i need it to go up or down the table (3 cells up or 3 cells down ) depending on a cell that provides me the values that mimic the behaviour.
so if cell A1 is -3 i want the cell reference to go up 3 cells if its 3 i want it to go down 3 cells, and return the value that is found there.

Any ideas how to achieve this?
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
the problem is that i need it to go up or down the table

What do you mean by 'it'?

I'd suggest creating a sample spreadsheet of your table to show us what your data looks like and also show your expected result(s).
 
Last edited:
Upvote 0
<style type="text/css">p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Helvetica Neue'; color: #454545}</style>I have a spreadsheet with months 1,2,3 etc across the rows and a specific number of months to count backwards in a cell. I want to use the offset function to count back 6 columns from the reference cell. However, the 6 month count results in being either off the spreadsheet or into my column with all my field labels. This is causing the error either #value or #ref.. Unless I put the offset formula starting after column F (6 columns forward). How can I incorporate the offset function while not going off the sheet or into a cell that has text?
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,337
Members
452,637
Latest member
Ezio2866

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