+ Reply to Thread
Results 1 to 5 of 5

to use endxlup. row to find the last used row number excluding space due to formula

  1. #1
    Forum Contributor
    Join Date
    07-07-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    256

    to use endxlup. row to find the last used row number excluding space due to formula

    Hi

    One small clarification we normally use end xl up to find out the last used row
    Example : Range("F"&Rows.count).end(xlup).row to find out the last used cell in column F
    but if i use any formula in the column say from F1 to F120 and the formula results in only space from cell
    F100 to F120,so here last data appears only in F99,but this macro line give the row number as 120
    is there any way to sort it out

    Narayanan

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: to use endxlup. row to find the last used row number excluding space due to formula

    Try this. Make sure the formulas in column F return a null string "" instead of a space " "

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Forum Contributor
    Join Date
    07-07-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    256

    Re: to use endxlup. row to find the last used row number excluding space due to formula

    Thank you dear,how this works can you tell a bit.

  4. #4
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: to use endxlup. row to find the last used row number excluding space due to formula

    You're welcome.

    The .Find method is a text search. It's looking for the first visible text in column F from the bottom up.

  5. #5
    Forum Contributor
    Join Date
    07-07-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    256

    Re: to use endxlup. row to find the last used row number excluding space due to formula

    ok sir again thanks for your explanation and link

    Narayanan

+ 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] Need to find number before space
    By Reykjavik in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-25-2014, 01:25 PM
  2. [SOLVED] Better way to find minimum value excluding zero and non number
    By a_driga in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-07-2014, 07:26 AM
  3. [SOLVED] Formula for counting a number of items, but excluding some of them?
    By alexjust in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-23-2014, 10:43 AM
  4. [SOLVED] Count unique text, excluding space, based on one condition
    By asfa in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-01-2013, 02:33 PM
  5. [SOLVED] Use COUNTIF() to find the number of cells not equal to a blank space
    By BNCOXUK in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-21-2012, 06:39 AM
  6. Replies: 5
    Last Post: 10-10-2012, 06:04 AM
  7. [SOLVED] endxlup failure because of table of formulas?
    By ShannonHowell in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 07-04-2012, 01:12 AM

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