+ Reply to Thread
Results 1 to 5 of 5

Skipping Blanks and Errors

  1. #1
    Registered User
    Join Date
    06-21-2012
    Location
    Netherlands
    MS-Off Ver
    2016 (64-bit)
    Posts
    46

    Skipping Blanks and Errors

    I'm pretty new to VBA and I've run in to an issue that must be fairly simple to fix...

    The code below is what I have and works fine ignoring empty cells in a range as long as there are no errors in my range. What I need is to add an option to not count errors also.

    Please Login or Register  to view this content.
    Any ideas? I've tried a few options with ElseIf and Or Not Iserror(Cell) but I haven't got it to work.

    Thanks!

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,620

    Re: Skipping Blanks and Errors

    Hi,

    Have you tried just:
    Please Login or Register  to view this content.
    Best Regards,

    Kaper

  3. #3
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,620

    Re: Skipping Blanks and Errors

    PS. As of OR you mentioned - here it shall be AND rather than OR, so:
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    06-21-2012
    Location
    Netherlands
    MS-Off Ver
    2016 (64-bit)
    Posts
    46

    Re: Skipping Blanks and Errors

    Thanks that did the trick!

  5. #5
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,620

    Re: Skipping Blanks and Errors

    Glad to see it worked, and thanks for marking thread solved and for added reputation

+ 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: 3
    Last Post: 05-03-2016, 08:16 AM
  2. [SOLVED] Skipping Blanks when graphing
    By Isara1 in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 10-20-2015, 11:09 AM
  3. sum text boxes and skipping errors
    By esaban in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-29-2014, 09:40 AM
  4. Replies: 1
    Last Post: 05-21-2014, 04:30 PM
  5. [SOLVED] Loop while skipping blanks
    By jhahes in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-22-2006, 04:50 PM
  6. Skipping blanks
    By jmkona in forum Excel General
    Replies: 2
    Last Post: 08-26-2005, 09:05 PM
  7. [SOLVED] Paste Special Skip Blanks not skipping blanks, but overwriting...
    By gsrosin in forum Excel General
    Replies: 0
    Last Post: 02-22-2005, 12:06 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