+ Reply to Thread
Results 1 to 5 of 5

Incorporate (xlCellTypeVisible) into For..Next loop

  1. #1
    Forum Contributor
    Join Date
    09-06-2012
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    225

    Post Incorporate (xlCellTypeVisible) into For..Next loop

    Hello,

    I am trying to make the loop only count the visible cells when it measures the max value. Any assistance would be very much appreciated. I attached the document.

    I'm not sure where to place the property within the following part of the code:

    Please Login or Register  to view this content.
    Here is the entire code:
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by Gard5096; 12-12-2012 at 05:49 PM.

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

    Re: Incorporate (xlCellTypeVisible) into For..Next loop

    Try this...

    Please Login or Register  to view this content.
    Or this formula in WORK!C3 and copy down...
    =MAX(INDEX(REPORT!D:G,MATCH(A3,REPORT!A:A,0),0))

  3. #3
    Forum Contributor
    Join Date
    09-06-2012
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    225

    Re: Incorporate (xlCellTypeVisible) into For..Next loop

    AlphaFrog,

    Thank you, that loop worked amazingly. Another problem did arise after the execution. Some of the rows dont have any dates, and the result is coming up as "1/0/1900". Do you know how I could display text of "N/A" for rows that have all blanks?


    Thank you,

    Nick

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

    Re: Incorporate (xlCellTypeVisible) into For..Next loop

    You're welcome.

    Try this...
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    09-06-2012
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    225

    Re: Incorporate (xlCellTypeVisible) into For..Next loop

    Yessss!!! Thank you very much.

+ 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