Function value always the same

T

Thomas

I have written a function, SummaryStatistics(), that needs to operate on
values in a column. Part of the function determines which column it is in.
Then it uses that as part of a range to tick through the values in that
column, row by row and produce a result.

Problem is that when I place =SummaryStatistics() in multiple cells they all
display the same result based on the column where the cursor happens to be.

Is there a way around this?

Thanks.

Thomas
 
F

Frank Kabel

Hi Thomas
best to use a cell reference as parameter of your function. Don't use
constructs like activecell or Selection within such a user defined
function.

You may post the relevant part of your code for amendment
 

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

Top