Excel Offset function

dicken

Active Member
Joined
Feb 12, 2022
Messages
283
Office Version
  1. 365
Platform
  1. Windows
Hi,
if I want to use Offset but want to do this based on a value , so I want the cell reference containing X as my starting point,
I have tried ;

Excel Formula:
  CELL("address",INDEX($A$1:$A$13,MATCH(D1,$A$1:$A$13,0),1) )[ = $A$4

Which returns the correct cell reference but when I nest in Offset I get an error, so I'm either making a basic mistake or
I need a deferent approach?

Richard.
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
This formula returns the string "$A$4" which is not useful in an OFFSET formula. I think it would be better if you told us what you are trying to do, rather than showing the method that fails to do what you want to do.

Just to give you an idea, let's say you have a value in D1. You want to find the row that has that value in column A, and then return the value from column B in that same row.
Excel Formula:
=INDEX($B$1:$B$13,MATCH(D1,$A$1:$A$13,0))
OFFSET is not needed.
 
Upvote 0
This formula returns the string "$A$4" which is not useful in an OFFSET formula. I think it would be better if you told us what you are trying to do, rather than showing the method that fails to do what you want to do.

Just to give you an idea, let's say you have a value in D1. You want to find the row that has that value in column A, and then return the value from column B in that same row.
Excel Formula:
=INDEX($B$1:$B$13,MATCH(D1,$A$1:$A$13,0))
OFFSET is not needed.
I'm searching for a given value and then offset from that value.
Richard.
 
Upvote 0
Sorry, you have to provide a lot more detail. Where are you searching for the given value? What is the offset from that value you want to return?

Is the formula I gave remotely close to what you want? My formula finds a value in column A then returns a value that is offset one column to the right (column B). But it is done by using direct references to the column rather than OFFSET (which, BTW, is a volatile function).
 
Upvote 0
I'm searching for a given value and then offset from that value.
That is what INDEX/MATCH functions do.

It might be best if you could post some sample data and expected output.
MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0
This formula returns the string "$A$4" which is not useful in an OFFSET formula. I think it would be better if you told us what you are trying to do, rather than showing the method that fails to do what you want to do.

Just to give you an idea, let's say you have a value in D1. You want to find the row that has that value in column A, and then return the value from column B in that same row.
Excel Formula:
=INDEX($B$1:$B$13,MATCH(D1,$A$1:$A$13,0))
OFFSET is not needed.
 
Upvote 0
Looks like you just quoted a previous reply from 6StringJazzer.
Is there a question or comment there?
 
Upvote 0
No, take a single column for example a to z, ok so use index match to find 'k', and then I want to
return the value that as X and Y from that point. example to return 2 rows above the value
Excel Formula:
MATCH("c",H7:H14,0)  - 2
, but I still need the column.

Richard.
 
Upvote 0
Your question/data layout is not quite clear.
I refer you back to post 5 from yesterday.

Please show us some actual sample data and your expected result.
I think it may make a lot more sense if we could see the data you are working with and exactly what you are hoping to return from it.
 
Upvote 1
I might try forum then I can upload sheet, its pretty straight forward,
using offset; =OFFSET(A5,4,2,3,2)

But I don't know the cell reference but I do know the value contained within and then I need to offset from that point.
 
Upvote 0

Forum statistics

Threads
1,215,068
Messages
6,122,950
Members
449,095
Latest member
nmaske

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