+ Reply to Thread
Results 1 to 3 of 3

Ignore hidden cellls networksdays and Lookup

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    07-21-2014
    Location
    Norway
    MS-Off Ver
    2016
    Posts
    230

    Question Ignore hidden cellls networksdays and Lookup

    Hi

    I have a formula to count the number of weekdays between two dates, however, when I change the last date by filter, ex excluding the last month, it still takes into account the hidden cells, how do I change the lookup to exlude hidden cells such that it only takes the last visible cell into the caclulation?
    =NETWORKDAYS(B15,(LOOKUP(2,1/(B:B<>""),B:B)))

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2405
    Posts
    13,417

    Re: Ignore hidden cellls networksdays and Lookup

    I would need a sample workbook representative of what you are working with and the outcome(s) you want.

    Please see instructions in the 'gold' banner at the top of the page. HOW TO ATTACH YOUR SAMPLE WORKBOOK:
    Dave

  3. #3
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: Ignore hidden cellls networksdays and Lookup

    Pending the workbook as requested by Dave, here's a guess:

    filters.png

    In D15 copied down: No formula, just the numeral 1

    In E15 copied down:
    =AGGREGATE(9,5, D15:D15)
    This evaluates to 1 if the row is visible and zero if the row is hidden

    In F15 copied down, just y or n to allow filtering.

    In B13:
    =NETWORKDAYS(B15,(LOOKUP(2,1/((B15:B25<>"")*E15:E25),B15:B25)))
    Here I have simply added E15:E25 to your formula which gives zeros for hidden columns.

    In the above image with no filters applied the workdays are 7
    Filtering out the "Y"s the number of visible workdays in B13 will be 5 which I think is what you are expecting.

    I'm not sure this is the answer you are looking for and even if it is I suspect there are simpler ways!

    See the attached workbook.

    Let us know if this is anywhere close.
    Attached Files Attached Files
    Geoff

    Did I help significantly? If you wish, click on * Add Reputation to say thanks.
    If your problem has been resolved please select ?Solved? from the Thread Tools menu

+ 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. how to ignore hidden cells with a countif
    By Lee in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 11:05 AM
  2. how to ignore hidden cells with a countif
    By Lee in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  3. [SOLVED] how to ignore hidden cells with a countif
    By Lee in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 07:05 AM
  4. how to ignore hidden cells with a countif
    By Lee in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  5. how to ignore hidden cells with a countif
    By Lee in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  6. [SOLVED] how to ignore hidden cells with a countif
    By Lee in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM
  7. [SOLVED] how to ignore hidden cells with a countif
    By Lee in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM
  8. Ignore Hidden Rows in Sum Function?
    By Jugglertwo in forum Excel General
    Replies: 3
    Last Post: 02-09-2005, 09:06 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