summing cells with variables

  • Thread starter Thread starter jeff
  • Start date Start date
J

jeff

I need to sum a group of cells, but the column is
dependent on another equation. Therefore I know that I
want to sum from G1 and I know that I want to sum to the
13th row and kth column where k is a number that has been
calculated using the MATCH function.

Any help would be greatly appreciated.

Jeff
 
Something like

=SUM(OFFSET(A13,,,MATCH("t",H1:H25,0)))

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
Bob,

thank you for the quick reply. This is almost exactly
it. The one difference is that this sums one row only, I
would like to sum across several ros (e.g. a-f). Any
ideas?

Jeff
 
Here is my attempt at this

=SUM('Resource Plan'!G4:OFFSET('Resource Plan'!G13,,,MATCH
(RatePeriod_1,ProjectTimeLine,1)))

where MATCH(RatePeriod_1,ProjectTimeLine,1)=17

but I end up with a value of 0. It should be 30.

Jeff
 
Jeff,

I assume you mean columns, not rows? Try this then

=SUM(OFFSET(A13,,,MATCH("t",H1:H25,0),6))


--

HTH

RP
(remove nothere from the email address if mailing direct)
 
Just needed to swap the match function and the the 6 to
do what I needed.

thank you!
Jeff
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top