ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Passing parameters Cel Ref) to Sum function (https://www.excelbanter.com/excel-discussion-misc-queries/51364-passing-parameters-cel-ref-sum-function.html)

Shamshad Butt

Passing parameters Cel Ref) to Sum function
 
I want to pass parameters Cel Ref) to Sum function. Any help?
Thanks in advance

Dave O

Passing parameters Cel Ref) to Sum function
 
Does this mean you want to use VBA code to create a formula?


Shamshad Butt

Passing parameters Cel Ref) to Sum function
 
Dear Dave O
Thanks for initiative to help me.
No I don't want VBA code. I want to capture cell reference (e.g. D12) and
wanna pass it second parameter (sum upto this ref) to
=SUM(D5:SecondParameter).


"Dave O" wrote:

Does this mean you want to use VBA code to create a formula?



Dave O

Passing parameters Cel Ref) to Sum function
 
You may be able to use the OFFSET function. Or, if you assign a named
range to D12 you can use the formula =sum(D5:R) where R is the named
range.


Shamshad Butt

Passing parameters Cel Ref) to Sum function
 
Dear Dave O
Thanks a lot for your help. The function OFFSET worked as per my
requirements. Thanks again, Take care
Bye
Shamshad Butt - Islamabad (Pakistan)

"Dave O" wrote:

You may be able to use the OFFSET function. Or, if you assign a named
range to D12 you can use the formula =sum(D5:R) where R is the named
range.




All times are GMT +1. The time now is 12:03 PM.

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