PC Review


Reply
Thread Tools Rate Thread

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

 
 
=?Utf-8?B?Sw==?=
Guest
Posts: n/a
 
      14th Jul 2006
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?
 
Reply With Quote
 
 
 
 
Harlan Grove
Guest
Posts: n/a
 
      14th Jul 2006
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.

 
Reply With Quote
 
=?Utf-8?B?Sw==?=
Guest
Posts: n/a
 
      14th Jul 2006


"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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
.Find .Hidden Values versus Formulas Aug2009 Neal Zimm Microsoft Excel Programming 5 29th Aug 2009 06:16 PM
Compare Cell Values, Offset(-1,0), Offset(-1,-1), and xlFillDefaul =?Utf-8?B?UnlHdXk=?= Microsoft Excel Worksheet Functions 2 28th Sep 2007 10:54 PM
Compare Cell Values, Offset(-1,0), Offset(-1,-1), and xlFillDefaul =?Utf-8?B?UnlHdXk=?= Microsoft Excel Programming 4 28th Sep 2007 09:59 PM
Referencing another WB's cells, but not formulas/values. =?Utf-8?B?YW5uYQ==?= Microsoft Excel Worksheet Functions 3 31st Mar 2007 03:36 PM
Offset function referencing worksheet =?Utf-8?B?SmVmZg==?= Microsoft Excel Misc 1 11th Sep 2005 07:01 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:52 AM.