+ Reply to Thread
Results 1 to 8 of 8

Need a function to give the last row number/cell number

  1. #1
    Forum Contributor
    Join Date
    01-17-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    402

    Post Need a function to give the last row number/cell number

    I am trying to get the last row which is filled based on column B. I mean i have data in a sheet in which (for example B45 is the last filled row because it is merged with C45, D45 etc). So, I want to get that B45 to be the result if I put the formula in D100.

    I ope I am clear. I dont want the data in B45 but I want the result to be B45.
    Last edited by kishoremcp; 06-20-2013 at 05:32 AM.

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Need a function to give the last row number/cell number

    Are numbers or text in column B?
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Contributor
    Join Date
    01-17-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    402

    Re: Need a function to give the last row number/cell number

    Both are there.

  4. #4
    Forum Contributor
    Join Date
    08-02-2012
    Location
    Pune
    MS-Off Ver
    Office 365 (Win 10)
    Posts
    489

    Re: Need a function to give the last row number/cell number

    Have a look at this
    Please make the Post as solved, when you get your answer & Click * if you like my suggestion

  5. #5
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Need a function to give the last row number/cell number

    Try

    ="B"&MATCH(LOOKUP(2,1/(B1:B10000<>""),B1:B10000),B1:B10000,0)
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Need a function to give the last row number/cell number

    Looks like copied...Self deleted!!
    Last edited by Fotis1991; 06-20-2013 at 04:21 AM.

  7. #7
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Need a function to give the last row number/cell number

    Lookup() will return the wrong result if there are duplicates in the column.

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

    Or this, but be aware ADDRESS() is volatile.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by Marcol; 06-20-2013 at 04:51 AM. Reason: Added workbook example
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  8. #8
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Need a function to give the last row number/cell number

    Lookup() will return the wrong result if there are duplicates in the column.

    Nice point Marcol!

+ 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