LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default checking for missing values

Guys, thanks for all your suggestions. I tried all solutions, and all
worked as requested. Although this isn't some coding contest, my vote
goes to Tony's suggestion.

cheers,
Jerry

acw wrote in message ...
Jerry

A UDF that may help.

Tony

Function checker(x As Range)
arr = Array("A", 1, "F", "G", "K", "T", 3, "W", "X")
Dim chkitems As Variant
chkitems = x.Value
checker = "Missing Items: "
For Each ce In arr
On Error GoTo errone
fred = WorksheetFunction.Match(ce, chkitems, 0)
Next ce

errone:
Select Case Err.Number
Case 1004
checker = checker & ce & ", "
End Select

Resume Next

End Function


----- Jerry wrote: -----

Hi all,

Is there a way to check a range for particular values that are
missing?
Suppose I have a list of possible values: A,1,F,G,K,T,3,W,X
And I have the following values in column C:

A
K
1
A
T
X
X
G

Ideally, I'd need a function that would return the following string:

"Missing items: F, 3, W"

The actual list has 20 possible values. My guess is that one should
work with arrays, but my experience with those is very limited. Could
this be solved with some VBA maybe?

thanks for your help,
Jerry



 
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
Checking values in 2 columns BRob Excel Worksheet Functions 4 May 1st 08 02:32 PM
Checking for Multiple Values guilbj2 Excel Discussion (Misc queries) 8 February 27th 06 08:02 PM
Checking on two values Johannes B. Excel Discussion (Misc queries) 4 April 22nd 05 06:49 PM
Excel Compare values in columns & display missing values in a new cpetta Excel Discussion (Misc queries) 1 April 2nd 05 05:51 AM
checking values in a cel solo_razor[_8_] Excel Programming 2 September 18th 03 01:37 PM


All times are GMT +1. The time now is 04:19 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"