View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Excel-craze Excel-craze is offline
external usenet poster
 
Posts: 1
Default How to pass variables as arguments of a function

How to pass variables as arguments to a function call? For example, I want
to sum(Sheet1!E31:E38) where €œSheet1€ is a variable while €œE31:E38€ is
another string variable to be concatenated with €œSheet1€. I tried assigning
€œSheet1€ to cell A1, €œE31€ to cell A2, €œE38€ to cell C1 and use the function
=sum(concatenate(A1,€!€,B1,€€:€,C1)) but it did not work.