View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Chip Pearson Chip Pearson is offline
external usenet poster
 
Posts: 7,247
Default excel functions and User defined functions

Kanan,

I think you want to use the INDIRECT function to convert a text
string to an actual range reference. E.g.,

=COUNTA(INDIRECT(datasheet()&"!$A$A"))


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com




"Kanan" wrote in message
...
Hi,
Is it possible to mix EXCEL functions and User Defined

FUnctions in a formula ?
e.g In Cell "A", =COUNTA(datasheet()!$A:$A)
where datasheet is a UDF to get another sheet name and then

COUNTA should use that sheetname to calculate the the
result.

This formula is not working. Any suggestions?

Thanks
Kanan