Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 49
Default Extend Custom function

Hi

Someone was kind enough to post this custom function. What it does is
assess if a lookup is valid if it is it does one thing, if not
another.

However if I have a fomula which either the true or false component
returns an #NA then I get a #VALUE! Error. I don't want to wrap the
custom function with an if iserror formula as the idea was to make the
long formula shorter. Can someone provide some more insight?

Lookup here
=checkit(A7,VLOOKUP(A7,YesSheet!$A$2:$B$30,2,0),VL OOKUP(A7,NoSheet!$A
$2:$B$30,2,0))

Custom function here

Function Checkit(target As String, MatchResults As String,
NonMatchResults As String)

Select Case target
Case "A", "B", "C"
Checkit = MatchResults
Case Else
Checkit = NonMatchResults
End Select

End Function
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
Extend the number of arguments of a function JP Ronse Excel Worksheet Functions 9 September 4th 09 07:42 PM
How to extend Excel with custom data provider? Vemund Haga Excel Programming 2 February 16th 09 09:06 AM
Automatically Extend Formula in Count function with Additional Row D Excel Discussion (Misc queries) 3 August 22nd 08 04:43 PM
Creating a custom function to interpret another custom engine func Ryan Excel Programming 0 March 3rd 08 07:18 PM
Excel - option to extend function in cell to column kjoshua777 Excel Worksheet Functions 2 November 18th 04 01:08 AM


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

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"