+ Reply to Thread
Results 1 to 10 of 10

ignoring hidden cells for functions

  1. #1
    Registered User
    Join Date
    05-09-2015
    Location
    Chester
    MS-Off Ver
    2013
    Posts
    5

    ignoring hidden cells for functions

    http://i.imgur.com/8n9Z3PU.png

    Ok so here is a small section of a large set of items that I wish to manipulate. What I'm looking to do here is to find the first occurrence of an Item Name's DATE REQUIRED to be displayed where the Have Received is FALSE. I figured it would make it easier by sorting the data to exclude any items that have been received (Have Received = TRUE), but my formulas still work on these hidden rows. Is there a work around for something like this? I could copy a subset of the table and do it that way, but the original table is meant to be expansive so lines can be added in and I would always need to re-copy if I did that approach.

    Sorry if this is cryptic, but any help would be appreciated!

    Thanks

  2. #2
    Forum Expert JasperD's Avatar
    Join Date
    05-07-2013
    Location
    Netherlands
    MS-Off Ver
    Excel 2016
    Posts
    1,393

    Re: ignoring hidden cells for functions

    Short answer: Depends on the formulas.

    But if you can replace your formula with =Subtotal, then using for example 109 instead of 9 would ignore the hidden rows.

    Less cryptic:

    =SUBTOTAL(9,F5:F14)
    would sum all numbers between F5 and F14, regardless of they're hidden or not.

    =SUBTOTAL(109,F5:F14)
    would sum only the visible numbers between F5 and F14.

    Otherwise you'll have to rely on a UDF, I think.

    *edit*
    If you're summing, use =SUMIFS instead to include the "hasreceived" check.
    Please click the * below if this helps

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: ignoring hidden cells for functions

    Subtotal(9, ...) excludes rows hidden via filter.

    Subtotal(109, ...) excludes rows hidden manually or via filter.
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Registered User
    Join Date
    05-09-2015
    Location
    Chester
    MS-Off Ver
    2013
    Posts
    5

    Re: ignoring hidden cells for functions

    Appreciate the responses, but how would I use subtotal to do what I want to do? I don't believe it can extract what I'm looking for alone.
    I have a user made function that performs the search, but it will include all hidden rows as well and it's interfering with everything because t
    here must be duplicates in the table and I only need those rows which have not been received for a given item

  5. #5
    Forum Expert JasperD's Avatar
    Join Date
    05-07-2013
    Location
    Netherlands
    MS-Off Ver
    Excel 2016
    Posts
    1,393

    Re: ignoring hidden cells for functions

    You do realize that in order to help you, you need to paste your udf code here, right?

    You originally asked about 'functions' in general.
    Some of the functions that are used a lot can be replaced by subtotal, so that's why that was the first step in trying to help you.

    Please be clear, concise and paste your function here, so someone can help you add 'specialcells(xlcelltypevisible)' in the right location ;-)

  6. #6
    Registered User
    Join Date
    05-09-2015
    Location
    Chester
    MS-Off Ver
    2013
    Posts
    5

    Re: ignoring hidden cells for functions

    My apologies! Here is what I am using to get what I need, but does not ignore any hidden rows
    Please Login or Register  to view this content.
    Last edited by Leith Ross; 05-10-2015 at 02:37 PM. Reason: Added Code Tags

  7. #7
    Registered User
    Join Date
    05-09-2015
    Location
    Chester
    MS-Off Ver
    2013
    Posts
    5

    Re: ignoring hidden cells for functions

    Any ideas how to go about this? I need the same functionality of looking up this way, but those hidden cells have got to be excluded

  8. #8
    Registered User
    Join Date
    03-26-2014
    Location
    Nowhere, somewhere
    MS-Off Ver
    Excel 2007
    Posts
    75

    Re: ignoring hidden cells for functions

    Have you considered using the Range.Find Method to find your match?

    If you set the LookIn argument to Excel.XlFindLookIn.xlValues, it will not look at hidden cells.

  9. #9
    Registered User
    Join Date
    05-09-2015
    Location
    Chester
    MS-Off Ver
    2013
    Posts
    5

    Re: ignoring hidden cells for functions

    TnTinMN, I just looked into this and I have a solution for my needs by using it. I feel the way I approached it is pretty sloppy, BUT it works flawlessly!

    Thanks for the help!

  10. #10
    Registered User
    Join Date
    03-26-2014
    Location
    Nowhere, somewhere
    MS-Off Ver
    Excel 2007
    Posts
    75

    Re: ignoring hidden cells for functions

    Quote Originally Posted by JohnJayJones View Post
    TnTinMN, I just looked into this and I have a solution for my needs by using it. I feel the way I approached it is pretty sloppy, BUT it works flawlessly!

    Thanks for the help!
    Great! I'm glad you got a solution that works.

    Who cares if its sloppy, you did it yourself and learned something process and that's what counts.

    You can always ask for suggestions on how it could be improved.

+ 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. Increasing numbers and ignoring hidden cells
    By beachie13 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-18-2013, 08:36 PM
  2. Add previous cell ignoring hidden cells
    By penfold1992 in forum Excel General
    Replies: 1
    Last Post: 10-05-2012, 10:18 AM
  3. Selecting or ignoring filtered/hidden cells
    By handerson0603 in forum Excel General
    Replies: 1
    Last Post: 03-29-2012, 11:42 AM
  4. Replies: 6
    Last Post: 11-03-2011, 05:11 PM
  5. Formula not ignoring hidden cells from autofilter
    By JONNY981 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-04-2011, 11:11 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