View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.misc
cware cware is offline
external usenet poster
 
Posts: 29
Default Last Line of Data

I am using a Pivot Table. On the outside of the table, I have several
calculations going on. Two of which involve finding the last line of the
data and using that specific line in the range.....if my pivot goes to line
3901, then in one calculation i have the following:

=COUNTIF(B5:B3901,""), just basically counting the blanks in that column
another, with the help of this site, I'm using
=SUMPRODUCT((B5;B3901="")*(E5:E3901=1))

Because this is being set up as a template for regular monitoring, the data
will be refreshed periodically, so I'm trying to make this as easy as
possible. Right now, my instructions include "find the # of LAST row of
data, and put in place of 3901 in these two cell formula's".(because I will
save template with 3901 as the base)

Does anyone know of a different way to accomplish this that isn't a manual
entry?

As always, all comments are helpful and appreciated

Cathy