ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   ranges (https://www.excelbanter.com/excel-discussion-misc-queries/57443-ranges.html)

Filipemr

ranges
 
I want to index a range to other cell. or to a number. eg. sum(a1:a10), but
indexed to other cell or number, like sum(a1:a1+9). what function can i use?
a1+9, must be a10.

pinmaster

ranges
 

Hi,
You can use the INDIRECT function:
=SUM(A1:INDIRECT("A"&B1))
use B1 to enter a row number for your range.
or

=IF(B10,SUM(A1:INDIRECT("A"&B1)),"")

HTH
JG


--
pinmaster
------------------------------------------------------------------------
pinmaster's Profile: http://www.excelforum.com/member.php...fo&userid=6261
View this thread: http://www.excelforum.com/showthread...hreadid=488500



All times are GMT +1. The time now is 02:26 AM.

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