ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Question about Sum (https://www.excelbanter.com/excel-worksheet-functions/239996-question-about-sum.html)

Keith

Question about Sum
 
Hello,
In the formula =sum(B6:B50) is there any to make the value represented
here by the 6 a variable? Is there any I could point it to, say, the value
in cell A1?

Thank you,

Keith



vijay

Question about Sum
 
Put this formula
=SUM(INDIRECT("B"&A1):B50)



T. Valko

Question about Sum
 
Try this:

A1 = 6

=SUM(INDEX(B1:B50,A1):B50)

If A1 is an empty cell the formula will calculate the entire range. If A1 is
a number 50 then you'll get a #REF! error.

--
Biff
Microsoft Excel MVP


"Keith" wrote in message
...
Hello,
In the formula =sum(B6:B50) is there any to make the value
represented
here by the "6" a variable? Is there any I could point it to, say, the
value
in cell "A1"?

Thank you,

Keith






All times are GMT +1. The time now is 01:24 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com