Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 260
Default Find exact values

Hey guys


8642883054
0
8645695369
0
0
8039998989

Above is some sample data I am working with.

Below is the code that references the above sample data.
In this below code the variable "ItemValue" will represent
each of the sample data individually:

Do Until SPSave = EPSave
FndOccurances = Worksheets("SMSRD").Range("K" &
SPSave).Find(ItemValue)
If FndOccurances < Empty Then
AddFnd = AddFnd + 1
Else
End If
Loop

Lets say ItemValue = 0. My code should be returning 3 but
instead its returning 5. Its returning this because its
looking for 0 in all the values. Since 5 of the values in
the sample data contains 0s in the value, it returns 5. I
only want it to look at exact values. If it did this it
would return 3 like I need.

How do I make it look for only exact values using the code
I have supplied?

Thank you
Todd Huttenstine

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
Find exact value using LOOKUP kawfeehaus Excel Discussion (Misc queries) 8 November 3rd 09 03:27 AM
Routine to find exact Row matches in Col1 Col2 Col3 but exact offsetting numbers in Col4 [email protected] Excel Discussion (Misc queries) 0 June 11th 08 11:30 PM
how do i find exact values in other excel file jan Excel Discussion (Misc queries) 2 June 23rd 07 11:06 AM
find exact values of SQRT big_ears Excel Worksheet Functions 1 April 12th 06 07:57 AM
Find a match that;s not exact Phyllis Excel Worksheet Functions 0 November 8th 04 08:12 PM


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