dynamic address for the range of data

masoud12

New Member
Joined
Jul 30, 2023
Messages
12
Office Version
  1. 2013
I have a column of numbers as first row of the range (in “M” column) and another column of numbers as last row number of the range (in N column) in an excel file for the specified column of data (as J column). I want to write the maximum in this range (e.g. J(M2):J(N2) (m2 and n2 are4 row numbers for j column)) in the same row that first and last row of rang specified in another column( column O).
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Welcome to the MrExcel board!

I'm not sure that I understand exactly what you have or what you want. Could you give us a small set of dummy data, fill in the expected results manually, post that with XL2BB as mentioned below and explain again in relation to that sample data?

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
sample.xlsx
ABCD
1rangesmin rowmax rowresult
20233010300012189
33010300012189233010300012189
43010300020176443010300020176
51060207550000561060207550000
61060207550000561060207550000
73010300021410783010300021410
83010300021410783010300021410
99010109380000999010109380000
10301030002215810113010300022158
11301030002215810113010300022158
12000000000000012120000000000000
13301030002026613133010300020266
14014153010300022097
15301030002209714153010300022097
Sheet1
 
Upvote 0
Glad you got XL2BB going but unfortunately, there is nothing shown. You need to select in your worksheet the range of data that you want to show us before you click Mini Sheet.
Also, don't forget these two points
fill in the expected results manually, ........ and explain again in relation to that sample data?
 
Upvote 0
i have three first columns i want to have the forth column. that is maximum number in the range determined in the column B and C
 

Attachments

  • pic1.JPG
    pic1.JPG
    51.6 KB · Views: 2
Upvote 0
Unfortunately I cannot copy from that image to test with your values (XL2BB is better).

However, from what I can see, this could be what you want.

23 07 30.xlsm
ABCD
1
2036
3636
4848
5564
6464
7381
8181
9797
masoud12
Cell Formulas
RangeFormula
D2:D9D2=INDEX(A:A,C2)
 
Last edited:
Upvote 0
You are welcome. Thanks for the follow-up.
 
Upvote 0
but i know see that in your example A7>A8 so the result should be A7 or 3 but your function get the A8 or 1 as the result.
 
Upvote 0
but i know see that in your example A7>A8
.. but is my data realistic? I just made up random numbers. Which is why we would rather deal with your sample data via XL2BB

It doesn't look like your sample data has anything like that - or does it?

In columns B & C do you have formulas?
 
Upvote 0

Forum statistics

Threads
1,215,218
Messages
6,123,676
Members
449,116
Latest member
HypnoFant

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