Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
K K is offline
external usenet poster
 
Posts: 108
Default 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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 733
Default 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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
K K is offline
external usenet poster
 
Posts: 108
Default 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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to be noticed/to avoid equal values in a colum Irene Excel Worksheet Functions 7 May 11th 06 12:44 PM
Copy/Paste how to avoid the copy of formula cells w/o calc values Dennis Excel Discussion (Misc queries) 10 March 2nd 06 10:47 PM
Absolute values in formulas hurricanekitti Excel Discussion (Misc queries) 1 February 23rd 06 04:58 PM
Removing Hidden But Keep Values Wayne Excel Discussion (Misc queries) 2 December 11th 04 02:05 AM
delete values in several cells without deleting the formulas dranreb Excel Discussion (Misc queries) 4 December 9th 04 01:15 AM


All times are GMT +1. The time now is 05:28 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"