Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Custom Function in Array Formula


Sorry if this has been asked before but I failed to find it.
I want to write a small function for use in an array function.
The function (MinChar) returns the smallest lexicographically of its
parameters (like MIN but works with text). I want to use this function
in an array formula
={MinChar(IF(E10:E14B8,E10:E14))}
so that I get the smallest value that is bigger than B8.

={MIN(IF(E10:E14B8,E10:E14))} where the values are all numeric works
just fine so why does the custom function not work?

I have tried parameters as a range or as a parameter array but I get
#VALUE every time.

MinChar(E10:E14) works fine.

TFAI


--
RincewindWIZZ
------------------------------------------------------------------------
RincewindWIZZ's Profile: http://www.excelforum.com/member.php...o&userid=20622
View this thread: http://www.excelforum.com/showthread...hreadid=373901

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Custom Function in Array Formula


RincewindWIZZ Wrote:

={MIN(IF(E10:E14B8,E10:E14))} where the values are all numeric works
just fine so why does the custom function not work?


Have you tried =IF(MinChar(E10:E14)B8,MinChar(E10:E14)) ?

I noticed that =IF(E10B8,E10) works with letters just fine, but if you
replace E10 with the array E10:E14 it throws an error. So I am thinking
that it works sort of like the MINA function which has the following
caveat.

If an argument is an array or reference, only values in that array or
reference are used. Empty cells and text values in the array or
reference are ignored.


--
sbakker
------------------------------------------------------------------------
sbakker's Profile: http://www.excelforum.com/member.php...o&userid=23645
View this thread: http://www.excelforum.com/showthread...hreadid=373901

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
Custom Function I can use in a formula? John WEC Excel Discussion (Misc queries) 0 May 13th 10 08:03 PM
Using AND function within an array formula Andrew L via OfficeKB.com Excel Worksheet Functions 3 August 1st 05 06:49 PM
Passing an array as argument for custom Function No Name Excel Programming 4 March 7th 05 04:44 PM
Preformatted array returned by custom function Asif[_3_] Excel Programming 9 December 4th 03 06:31 AM
returning an array from a custom function Ron Davis Excel Programming 2 September 15th 03 11:02 AM


All times are GMT +1. The time now is 12:12 PM.

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

About Us

"It's about Microsoft Excel"