Using Offset with Match dynamically

jewkes6000

Board Regular
Joined
Mar 25, 2020
Messages
55
Office Version
  1. 365
Platform
  1. Windows
In the below example, I am trying to use an Offset formula in cell I33. My end goal is to get the value of S25; however, I need to copy this formula down in several cells in column I, so the reference cell will change. I tried using the offset formula to reference E33, then the match function to find "T0 Head", then go over 14 rows to S25, but it's not returning as I would like it to. One important note, when searching the array with the match function, it needs to search up (from cells E33 up to E23). The reason for this is that when I eventually copy the formula down column I, there will be other "T0 Head" cells in column E at which point it needs to reference the cell 14 columns to the right (so instead of S25, it'd be whatever row the other "T0 Head" is on).

Here is the formula I tried: =OFFSET(E33,-MATCH("T0 Head",$E$23:$E$20000,0),14). This formula actually returns cell S30, which is not what I want.

Thank you in advance. Any help is much appreciated.


1602526938184.png
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
55,369
Office Version
  1. 365
Platform
  1. Windows
Glad to help & thanks for the feedback.
 

Some videos you may like

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().

Watch MrExcel Video

Forum statistics

Threads
1,127,251
Messages
5,623,612
Members
415,981
Latest member
Baltwin

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
Top