Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
excel functions and User defined functions
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 th result This formula is not working. Any suggestions Thank Kanan |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
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 |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
excel functions and User defined functions
Hi
it is possible but in your case use =COUNTA(INDIRECT("'" & datasheet() & "'!$A:$A")) -- Regards Frank Kabel Frankfurt, Germany "Kanan" schrieb im Newsbeitrag ... 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 |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
excel functions and User defined functions
Hi Chip
small typo :-) you probably meant: =COUNTA(INDIRECT(datasheet()&"!$A:$A")) Though I would also add apostrophes to enclose the returned sheetname. -- Regards Frank Kabel Frankfurt, Germany "Chip Pearson" schrieb im Newsbeitrag ... 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 |
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
excel functions and User defined functions
It works!! Great! Thanks a lot for your fast response
kanan |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
does Excel 07 allow User Defined functions? | Excel Worksheet Functions | |||
How to add user defined functions in excel permanantly | Excel Discussion (Misc queries) | |||
Excel user defined functions. | Excel Worksheet Functions | |||
User-Defined Excel Functions | Excel Programming | |||
Help for User Defined Functions in Excel 2003 Beta | Excel Programming |