+ Reply to Thread
Results 1 to 3 of 3

How do I avoid referencing hidden values in formulas like OFFSET?

  1. #1
    K
    Guest

    How do I avoid referencing hidden values in formulas like OFFSET?

    I am using autofilter and each time I switch to the next entry I need to
    capture the last value in a certain column to use as part of a new formula.
    Let's suppose my filter shows me my headings in row one, data in rows 11-20,
    and then first blank row (row 3100) below all the hidden rows. I was trying
    to use OFFSET, with a cell in row 3100 as my reference in order to see data
    in row 20, but instead I am getting row 3099. I realize that functions like
    SUBTOTAL ignore hidden rows, but there are only 11 different applications of
    SUBTOTAL. How can I add this useful feature of SUBTOTAL to OFFSET, or
    something similar?

  2. #2
    Harlan Grove
    Guest

    Re: How do I avoid referencing hidden values in formulas like OFFSET?

    K wrote...
    >I am using autofilter and each time I switch to the next entry I need to
    >capture the last value in a certain column to use as part of a new formula.
    >Let's suppose my filter shows me my headings in row one, data in rows 11-20,
    >and then first blank row (row 3100) below all the hidden rows. I was trying
    >to use OFFSET, with a cell in row 3100 as my reference in order to see data
    >in row 20, but instead I am getting row 3099. I realize that functions like
    >SUBTOTAL ignore hidden rows, but there are only 11 different applications of
    >SUBTOTAL. How can I add this useful feature of SUBTOTAL to OFFSET, or
    >something similar?


    Add a column to the table that shows the row numbers, then use
    SUBTOTAL(4,NewCol) to get the row number of the last visible row in the
    filtered table. Use that with INDEX.


  3. #3
    K
    Guest

    Re: How do I avoid referencing hidden values in formulas like OFFS



    "Harlan Grove" wrote:

    > K wrote...
    > >I am using autofilter and each time I switch to the next entry I need to
    > >capture the last value in a certain column to use as part of a new formula.
    > >Let's suppose my filter shows me my headings in row one, data in rows 11-20,
    > >and then first blank row (row 3100) below all the hidden rows. I was trying
    > >to use OFFSET, with a cell in row 3100 as my reference in order to see data
    > >in row 20, but instead I am getting row 3099. I realize that functions like
    > >SUBTOTAL ignore hidden rows, but there are only 11 different applications of
    > >SUBTOTAL. How can I add this useful feature of SUBTOTAL to OFFSET, or
    > >something similar?

    >
    > Add a column to the table that shows the row numbers, then use
    > SUBTOTAL(4,NewCol) to get the row number of the last visible row in the
    > filtered table. Use that with INDEX.
    >
    > Thank you. It worked!


+ 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