+ Reply to Thread
Results 1 to 18 of 18

=MAX(ROW(Table)) Does not work. help please

  1. #1
    Registered User
    Join Date
    03-03-2024
    Location
    Iran
    MS-Off Ver
    2019 MSO (V 2002)
    Posts
    6

    =MAX(ROW(Table)) Does not work. help please

    hi
    I have a table
    and I want to know the highest Row number and the lowest Row number (not the data I added, the number of the row(excel) ).
    for this, I use =MAX(ROW(table)) but it only shows the 1st row number of the table ! not the last one
    can anyone help me with this?
    I attached a picture and an excel file as well
    thanks
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by mhmahdi12; 03-08-2024 at 04:05 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: =ROW(MIN(Table)) Does not work. help please

    Welcome to the forum.

    There are instructions at the top of the page explaining how to attach your sample workbook (yellow banner: HOW TO ATTACH YOUR SAMPLE WORKBOOK). Screenshots are of little practical use as we cannot manipulate them.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. The sample layout accurately matches that of your real data. It also has expected results mocked up, worked examples where required, relevant cells highlighted and a few explanatory notes.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: =ROW(MIN(Table)) Does not work. help please

    Well..
    =MIN(ROW(table))

  4. #4
    Registered User
    Join Date
    03-03-2024
    Location
    Iran
    MS-Off Ver
    2019 MSO (V 2002)
    Posts
    6

    Re: =ROW(MIN(Table)) Does not work. help please

    Hi, thanks for replying, I wrote the topic wrong(I will correct it after your reply thanks ), I am writing the formula as you are saying, but it doesn't work.

  5. #5
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: =MIN(ROW(Table)) Does not work. help please

    Attach a file and we will be able to SEE what work.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: =MIN(ROW(Table)) Does not work. help please

    Please see post #2 - I am waiting for a sample workbook.

  7. #7
    Registered User
    Join Date
    03-03-2024
    Location
    Iran
    MS-Off Ver
    2019 MSO (V 2002)
    Posts
    6

    Re: =MIN(ROW(Table)) Does not work. help please

    I did, thanks for helping me

  8. #8
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: =MAX(ROW(Table)) Does not work. help please

    MAX, MIN, header, all there.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    03-03-2024
    Location
    Iran
    MS-Off Ver
    2019 MSO (V 2002)
    Posts
    6

    Re: =MAX(ROW(Table)) Does not work. help please

    thanks again for your time
    I opened your file(thank you for it) and it was there, but when I copy your formula in the lower cell it does not work again !!
    is something wrong with my excel ??
    Attached Images Attached Images

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: =MAX(ROW(Table)) Does not work. help please

    Why don't you just make the range into a proper Excel table? Then rows will be added automatically when you add rows.

    In L7 I have created a real table for you to show you what I mean. Type anything into the cell below the table and that row will get aded to the table.
    Attached Files Attached Files
    Last edited by AliGW; 03-04-2024 at 08:35 AM. Reason: Workbook added.

  11. #11
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,728

    Re: =MAX(ROW(Table)) Does not work. help please

    You can see from cell C16 that the formula is an array formula, as there are curly brackets around the formula.

    You should ensure that your copy of the formula is also an array formula - select the cell, then press function key F2, then hold down Ctrl and Shift and press Enter.

    Hope this helps.

    Pete

  12. #12
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: =MAX(ROW(Table)) Does not work. help please

    The formula will return the number of the last row of THE TABLE, and will not consider anything bellow it. To get the row number of the 'banana' cell you need to extend the named table range.
    See the file attached.

    Excel 365 (Windows) 64 bit
    A
    B
    C
    D
    7
    Food Table
    8
    Pizza
    9
    Burger
    10
    Fries
    11
    Soda
    12
    Ice Cream
    13
    Banana
    14
    15
    16
    =MÁXIMO(LIN(Food_List[Food Table]))
    17
    18
    Header Row
    7
    19
    Min Row
    8
    20
    Max Row
    13
    Sheet: Sheet1
    Attached Files Attached Files

  13. #13
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: =MAX(ROW(Table)) Does not work. help please

    Well noticed Pete_UK!

  14. #14
    Registered User
    Join Date
    03-03-2024
    Location
    Iran
    MS-Off Ver
    2019 MSO (V 2002)
    Posts
    6

    Re: =MAX(ROW(Table)) Does not work. help please

    Thanks For Replying AliGW
    I want to do something else, I do not have any problems with the table. I had problem with the formula that does not work. I want excel itself to calculate and know the min row and max row of a selected range of the table and then use these min and max row numbers in other formulas I want to use.
    I do not know if I can share a link here or not, but actually, I am trying to create this excel that this link is creating but I stopped at the beginning because of this problem.
    youtube.com/watch?v=eKyAOjH3Crk[/url]
    if you see 34:30 to 35:00 you will understand what I want to do.
    Again, thank you all for spending your time and helping me.

  15. #15
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: =MAX(ROW(Table)) Does not work. help please

    But as DJ has said, some of the items are not inside the table. Your 'table' doesn't work properly - you need to recreate it as I have done.

    I shan't be watching the YouTube - it seems everyone understands what the problem is - you just need to rectify it. A formula will never work as it stands, but it will on the REAL table I created.

  16. #16
    Registered User
    Join Date
    03-03-2024
    Location
    Iran
    MS-Off Ver
    2019 MSO (V 2002)
    Posts
    6

    Re: =MAX(ROW(Table)) Does not work. help please

    wow, thanks Pete, this was the key !
    thank you
    and a special thanks to DJunqueira and ALIGW too
    you are amazing guys
    thank you all

  17. #17
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,728

    Re: =MAX(ROW(Table)) Does not work. help please

    You're welcome - thanks for the rep.

    If that takes care of your original question, please take a moment to select Thread Tools from the menu above and to the right of your first post in this thread, and mark the thread as SOLVED.

    Pete

  18. #18
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: =MAX(ROW(Table)) Does not work. help please

    Tks for the feedback, glad to have helped.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Date value put into table from userform, formula won't work unless retype date into table.
    By SKEEEETER in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-08-2023, 09:17 PM
  2. Data Table to work with reference to Pivot table
    By nagesh.tvsr in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-22-2022, 12:40 PM
  3. Can pivot table and data table work together?
    By oscarchow1990 in forum Excel General
    Replies: 3
    Last Post: 03-28-2017, 10:33 AM
  4. Replies: 11
    Last Post: 10-22-2015, 04:28 PM
  5. Making a pivot table work with rest of a table
    By Excelfail in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 08-31-2015, 10:47 PM
  6. [SOLVED] macro emptying table also to work when table is empty
    By pallie in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-11-2014, 05:00 AM
  7. to make a pivot table to work with an adjoining table
    By byronova in forum Excel General
    Replies: 2
    Last Post: 09-06-2009, 10:47 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1