+ Reply to Thread
Results 1 to 8 of 8

Number of the last row with a formula in range

Hybrid View

  1. #1
    Registered User
    Join Date
    08-09-2017
    Location
    Mumbai
    MS-Off Ver
    13
    Posts
    1

    Number of the last row with a formula in range

    Hello,

    I am looking to get the the row number of the last row that contains a formula, with or without data, in range.

    Any help would be appreciated

  2. #2
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2019
    Posts
    4,542

    Re: Number of the last row with a formula in range

    Ctrl+F > Find what: = > Find All > the last item in the result window is the last cell/row with formula.

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Number of the last row with a formula in range

    or

    =LOOKUP(2,1/(A:A<>""),ROW(A:A))
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  4. #4
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2019
    Posts
    4,542

    Re: Number of the last row with a formula in range

    Glenn, OP is asking for the last row that contains a formula.

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Number of the last row with a formula in range

    Duhhh! Try again.

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

    Re: Number of the last row with a formula in range

    Try this:

    =LOOKUP(2,1/NOT(ISBLANK(A:A)),ROW(A:A))
    Attached Files Attached Files
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Number of the last row with a formula in range

    OK. Try this instead.
    Attached Files Attached Files

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Number of the last row with a formula in range

    Formula used was:

    =AGGREGATE(14,6,IF(LEN(FORMULATEXT(A1:A100))>0,ROW(A1:A100),""),1)
    Attached Files Attached Files

+ 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] pass the range number in formula
    By ELGendi in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-04-2020, 06:18 PM
  2. =IF formula for number range = text
    By KarolSweats in forum Excel General
    Replies: 13
    Last Post: 06-06-2020, 12:54 AM
  3. [SOLVED] Number Range Labeling Formula
    By Bloemendaal in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-13-2017, 12:34 PM
  4. Formula: Start new number where last number stops in a range
    By bjnockle in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-12-2015, 11:38 AM
  5. Replies: 1
    Last Post: 07-18-2013, 10:11 AM
  6. Replies: 1
    Last Post: 01-17-2013, 10:44 AM
  7. Formula to look for multiples of a number in a range
    By Beantown in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-08-2013, 10:11 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