+ Reply to Thread
Results 1 to 7 of 7

Find number of last empty row

  1. #1
    Registered User
    Join Date
    04-20-2016
    Location
    Czech Rep.
    MS-Off Ver
    Excel Online
    Posts
    2

    Find number of last empty row

    Hi, I know that some tryied to solve this but my case is little complicated:
    Im finding LAST empty row in column B AND in column A this row is not empty.

    I have hours of work on this and googling but no succes. Perhaps somebody else can help me.

    thanks!

    dJPiOQr.jpg

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Find number of last empty row

    For Col A

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


    For Col B

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Find number of last empty row

    One way...

    Array entered**:

    =MAX((A1:A20<>"")*(B1:B20="")*ROW(A1:A20))

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Find number of last empty row

    Try

    =LOOKUP(2,1/(($A$1:$A$100<>"")*($B$1:$B$100="")),ROW($A$1:$A$100))

  5. #5
    Valued Forum Contributor loginjmor's Avatar
    Join Date
    01-31-2013
    Location
    Cedar Rapids, Iowa
    MS-Off Ver
    Excel 2013
    Posts
    1,073

    Re: Find number of last empty row

    Hi -

    Use the following array formula:

    =LARGE(IF(ISBLANK($A$4:$A$10),0,IF(ISBLANK($B$4:$B$10),ROW($A$4:$A$10),0)),1)

    Paste this into the cell where you want the result, and press Ctrl-Shift-Enter to engage the array functionality. Excel will add curly braces to the formula that look like this: {}

    Hope this helps.
    ____________________________________________
    If this has solved your problem, please edit the thread title to add the word [SOLVED] at the beginning. You can do this by
    -Go to the top of the first post
    -Select Thread Tools
    -Select Mark thread as Solved

    If I have been particularly helpful, please "bump" my reputation by pressing the small star in the lower left corner of my post.

  6. #6
    Registered User
    Join Date
    04-20-2016
    Location
    Czech Rep.
    MS-Off Ver
    Excel Online
    Posts
    2

    Re: Find number of last empty row

    Great! Thank you!!

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Find number of last empty row

    You're welcome!

+ 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. Replies: 10
    Last Post: 09-26-2015, 08:26 PM
  2. [SOLVED] Find the number of non-empty cells in a column
    By JasperD in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-22-2015, 08:09 AM
  3. Replies: 5
    Last Post: 05-13-2014, 10:19 AM
  4. Need to find empty filled cells in a column and copy to the empty cell below
    By Grahamfeeley in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-30-2014, 10:09 AM
  5. Replies: 10
    Last Post: 10-30-2013, 07:29 PM
  6. Replies: 4
    Last Post: 06-24-2010, 11:13 AM
  7. [SOLVED] To find number of non-empty cells across columns
    By Mark Stephens in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-01-2005, 10:05 PM

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