i have a problema whit a formula to get the reference of the first and last row of a table.
i have create a table named "Income" that table start at row 10 and end at row 12
in a cell i use this formula to get the reference of the first row of the table:
=MIN(ROW(Income))
in a second cell i use this formula to get the reference of the last row of the table:
=MAX(ROW(Income))
The first formula return me the number 10 that is correct becouse the first row of the table start at row 10.
The second formula return me te number 10 too that is not correct becouse the last row of the table is at row 12.
Add the screenshot of the table

i don't understand why the two different formulas give me the same result?
Instead of using
MAX()&MIN()function useAGGREGATE()function which wont require to hit CTRL+SHIFT+ENTER while exiting the edit mode as OP is usingExcel 2019, and hence why theMAX()function was always returning10instead of12as it was returning an array using theROW()function.That said the formulas are:
• For
MAX• For
MINOr, If ones to return the output of
MAX&MINrow wise thenThe above would however needs to hit CTRL+SHIFT+ENTER while exiting the edit mode.
Note that the separators differs based on
localeorregional settings. For OP it would besemi-colon-->;instead ofcomma-->,.