Dynamic Ranges

tgsatchmo

New Member
Joined
Aug 27, 2014
Messages
3
Hello,

I am carrying a formula down column c that looks for a specific trigger word in the adjacent cell in column b, and when that word is found the formula will look for the max value in a range that starts with the column where the specific trigger word is located and extends down 20 rows. Then, as the formula makes its way down each row within that 20 row range, the range that I looking for the max value in remains fixed.

This I have no problem with creating...my problem begins when I carry the formula down past this 20 row range until the next trigger word is located and I want the new range to begin at and remain fixed to the location of the new trigger word. Any help is greatly appreciated.
 

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).
C2 copied down:

=IF($B2="JAD",MAX(OFFSET($A2,0,0,20)),"")

Replace JAD with the appropriate trigger.


Thank you very much for your response. However, my explanation may have fallen a bit short. While your solution does work, I need the Max reading within the range to show up in the exact row that it occurs in, not where the trigger word is. For example, if my trigger word is in C10, which initiates a range of C10 - C20, but the Max reading does not occur until row 13, I need that Max reading to show up in row 13. Is this possible?
 
Upvote 0
Thank you very much for your response. However, my explanation may have fallen a bit short. While your solution does work, I need the Max reading within the range to show up in the exact row that it occurs in, not where the trigger word is. For example, if my trigger word is in C10, which initiates a range of C10 - C20, but the Max reading does not occur until row 13, I need that Max reading to show up in row 13. Is this possible?

Try to post a sample with a window size of 3 rows (instead of 20) along with desired outcome in column C.
 
Upvote 0
Try to post a sample with a window size of 3 rows (instead of 20) along with desired outcome in column C.

Aladin Akyurek , thank you. I have attached an example of what I am looking to do. If you need moer info. let me know.
MESample.gif
 
Upvote 0

Forum statistics

Threads
1,223,492
Messages
6,172,597
Members
452,466
Latest member
Lynlindsay

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