+ Reply to Thread
Results 1 to 6 of 6

Determine last row of col that has data and formulas

  1. #1
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,712

    Determine last row of col that has data and formulas

    Hi,

    I am enclosing an excel file to help explain my issue.

    I am trying to determine the last row in a col. I have done this in the past using this function below:

    Please Login or Register  to view this content.
    I have run into a situation where the col has data.......but it also has formulas......see enclosed file.

    the problem is the data stops at say row 15 but the formulas keep going until row 28 so when i run my last row function it returns 28.

    any thoughts?
    Last edited by welchs101; 07-07-2011 at 08:04 AM.

  2. #2
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Determine last row of col that has data and formulas

    hi,
    Please Login or Register  to view this content.
    should help you

  3. #3
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,712

    Re: Determine last row of col that has data and formulas

    Thanks for responding.

    i tried the code you suggested and i dont think it provides the result i am looking for. It gives as the last row ......28 ........and i was looking for a last row of 15.

  4. #4
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Determine last row of col that has data and formulas

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,712

    Re: Determine last row of col that has data and formulas

    that one works...........how did you find this? I looked and looked.

    Thanks.

  6. #6
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,712

    Re: Determine last row of col that has data and formulas

    well, it works some of the time. not sure why it works some of the time and not others.



    I found this one on line and it seems to work all of the time.

    Please Login or Register  to view this content.
    Note: LR is the last row

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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