+ Reply to Thread
Results 1 to 6 of 6

Check for empty cell in a range of #N/A cells

  1. #1
    Registered User
    Join Date
    12-29-2015
    Location
    Paris, France
    MS-Off Ver
    Office 2010
    Posts
    31

    Check for empty cell in a range of #N/A cells

    Hi everybody,

    I'm looking for a macro to find the row (in twho columns) that contains one of the two criteria: "" or "Productivité".
    After finding the first row that contains on of these cells, i'm trying a loop to move down this row. if the next down cell does'nt contain neither "" or "productivité i have to resize my range to add one row to it.

    that is the problem. When i'm testing `Do While Not Range(strDépartPlage).Value Is Nothing And Range(strDépartPlage).Offset(, -1).Value <> "productivité"` it's not working because of the first condition `Do While Not Range(strDépartPlage).Value Is Nothing ` . And it's due to the fact that the cells contains `#N/A`. How can i deal with that ?

    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor
    Join Date
    05-14-2012
    Location
    Unknown
    MS-Off Ver
    Unseen
    Posts
    429

    Re: Check for empty cell in a range of #N/A cells

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    12-29-2015
    Location
    Paris, France
    MS-Off Ver
    Office 2010
    Posts
    31

    Re: Check for empty cell in a range of #N/A cells

    Hi InvisibleMan,
    It doesn't work neither:
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    12-29-2015
    Location
    Paris, France
    MS-Off Ver
    Office 2010
    Posts
    31

    Re: Check for empty cell in a range of #N/A cells

    Actually, In other words, I'm trying to extract the range's address between the blank cell and the cell next to the one that contains "Productivité", and the range's address between the cells next to ones that contain "Productivité".

  5. #5
    Valued Forum Contributor
    Join Date
    05-14-2012
    Location
    Unknown
    MS-Off Ver
    Unseen
    Posts
    429

    Re: Check for empty cell in a range of #N/A cells

    Suggest you post a sample workbook.

  6. #6
    Registered User
    Join Date
    12-29-2015
    Location
    Paris, France
    MS-Off Ver
    Office 2010
    Posts
    31

    Re: Check for empty cell in a range of #N/A cells

    hi invisible man. it doesn't work when i try to add my file

+ 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] Check If range of cells is empty
    By jakopak in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-28-2015, 05:13 AM
  2. Check range A10 to A45 and if cell not empty then same line in B must have value
    By CAVA30 in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 03-08-2013, 09:25 PM
  3. Check for each cell in range if is it empty when user click to some cells
    By cronet in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-01-2013, 04:35 PM
  4. check if any cell in a dynamic range is empty
    By akabraha in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-30-2008, 04:13 PM
  5. check for non-empty cells outside of a certain range
    By Abe in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-28-2006, 01:50 PM
  6. [SOLVED] check for non-empty cells outside of a certain range
    By Abe in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-28-2006, 11:45 AM
  7. [SOLVED] How to check a range of cells is empty?
    By serdar in forum Excel General
    Replies: 11
    Last Post: 08-14-2005, 02: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