View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
MattyP MattyP is offline
external usenet poster
 
Posts: 4
Default Adding values in first "X" number of rows dynamically

Hi -
I have a data worksheet which has item sub-totals in column F (each row is a
different item). In a different worksheet, I have a a few other calculations
going on, to determine # of resources available (this will vary, based on
data entered elsewhere). What I'd like to be able to do is only add the
sub-totals from "X" number of rows, depending on the # of resources available
(which can change).

So, for example, if I've determined to have 10 resources available, I'd like
to only calculate/sum the sub-totals from the first 10 rows. However, if
this changed to 12 resources, I'd like to be able to dynamically come up with
a total from the first 12 rows instead. Does that make sense (and is
something like that possible, in Excel ?) Any ideas would be most
appreciated !

Thanks for your help,
- Matt