Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default 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   Report Post  
Posted to microsoft.public.excel.programming
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



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default excel functions and User defined functions

It works!! Great! Thanks a lot for your fast response
kanan
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
does Excel 07 allow User Defined functions? doc_grandma Excel Worksheet Functions 1 September 21st 09 11:16 PM
How to add user defined functions in excel permanantly Sandeep Jangra Excel Discussion (Misc queries) 2 October 10th 08 09:44 AM
Excel user defined functions. Matt Excel Worksheet Functions 4 March 15th 05 07:22 PM
User-Defined Excel Functions Sean[_7_] Excel Programming 6 October 22nd 03 07:02 PM
Help for User Defined Functions in Excel 2003 Beta R Kalal Excel Programming 0 July 29th 03 04:58 PM


All times are GMT +1. The time now is 09:32 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"