+ Reply to Thread
Results 1 to 14 of 14

Next empty row - excluding formulas

  1. #1
    Registered User
    Join Date
    03-11-2015
    Location
    London, Canada
    MS-Off Ver
    2013
    Posts
    24

    Next empty row - excluding formulas

    Hello all,

    I am making a userform for data entry and I am wanting my data to go in the next empty row, however there is one column that contains a formula all the way down the spreadsheet. Is there a way to have my code go to the next empty row ignoring the formulas?

    Here is what I have

    Please Login or Register  to view this content.
    Last edited by mackenzie.costello; 03-13-2015 at 09:15 AM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,099

    Re: Next empty row - excluding formulas

    Use something like:

    Please Login or Register  to view this content.

    Choose a column that is fully populated but does not have a formula pre-populated.


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,099

    Re: Next empty row - excluding formulas

    Note: to comply with forum rules, please add code tags to your code excerpt.

    Although not really necessary in this case, it is often helpful to upload a sample workbook. Then the response can be more specific and accurate.


    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

  4. #4
    Registered User
    Join Date
    03-11-2015
    Location
    London, Canada
    MS-Off Ver
    2013
    Posts
    24

    Re: Next empty row - excluding formulas

    I tried this but it is not working.... rows still being populated where formulas in column end... any other suggestions?

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,099

    Re: Next empty row - excluding formulas

    Please post a sample workbook so we can see the structure and content of your workbook/worksheet(s)

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,099

    Re: Next empty row - excluding formulas

    Note: to comply with forum rules, please add code tags to your code excerpt. Having asked once already, I cannot provide a solution until you comply with the rules. However, if you do provide a sample workbook, I will investigate in the expectation that you edit your original post.

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here



    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)

  7. #7
    Registered User
    Join Date
    03-11-2015
    Location
    London, Canada
    MS-Off Ver
    2013
    Posts
    24

    Re: Next empty row - excluding formulas

    Please Login or Register  to view this content.

  8. #8
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Next empty row - excluding formulas

    Maybe:

    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    03-11-2015
    Location
    London, Canada
    MS-Off Ver
    2013
    Posts
    24

    Re: Next empty row - excluding formulas

    Hello John,

    No unfortunately it is still not ignoring the formula and going to the next empty row.
    Here is a screen shot of what my problem is and may be it will make it easier to understand.

    Untitled.png

  10. #10
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Next empty row - excluding formulas

    A picture may be worth a thousand words, but on this forum a sample is worth a thousand more. Can you provide a sample workbook for testing?

  11. #11
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,099

    Re: Next empty row - excluding formulas

    Thank you for adding the code tags and posting the picture. Unfortunately, as John has said, a picture helps a little but it does not allow us to understand the sheet content and formulae.

    Please post a sample workbook

    Regards, TMS

  12. #12
    Registered User
    Join Date
    03-11-2015
    Location
    London, Canada
    MS-Off Ver
    2013
    Posts
    24

    Re: Next empty row - excluding formulas


  13. #13
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,099

    Re: Next empty row - excluding formulas

    Please Login or Register  to view this content.

    You probably need to check and remove blank rows. And you probably DON'T want to clear the row as you will lose the expiry date formula ... or you could just put it back in in the code.

    Regards, TMS

  14. #14
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,099

    Re: Next empty row - excluding formulas

    Pretty sure your WHMIS CLASS is always going to be blank unless you pick the last option ... on the basis you check for a setting and, if it's not that, you blank it out. You just need to clear the cell once at the beginning and then test each of the Checkboxes for TRUE.

    Regards, TMS

+ 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: 6
    Last Post: 08-29-2014, 08:31 AM
  2. [SOLVED] Macro to Consolidate workbooks containing empty rows in between and excluding a column
    By retrospikz in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-17-2013, 01:28 AM
  3. find first empty row excluding column A
    By timarcarze in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-03-2011, 10:38 PM
  4. function to count numbers excluding empty cells
    By nickelcell1 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-07-2010, 03:10 PM
  5. Average Formula Excluding Empty Cells
    By Alhazred in forum Excel General
    Replies: 5
    Last Post: 03-21-2008, 08:31 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