Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 25
Default Find Numeric data

Is there any way to get the Find function to locate numeric values?
i.e. cells are formatted as Numbers with a comma separator for thousands and brackets for
negative values.
ex 1,079.00
A search for 79.00 returns any cell with 79.00 (179.00), 1,079.00 etc.

If I try an exact match (Match Entire Cell Contents) it finds nothing - I'm assuming because of
the sign byte.

--
Regards
Rob


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 136
Default Find Numeric data

Try this:
=ISERROR(FIND(7,A1)=FIND(9,A1,FIND(7,A1)+1)-1)=FALSE

"RobWN" wrote:

Is there any way to get the Find function to locate numeric values?
i.e. cells are formatted as Numbers with a comma separator for thousands and brackets for
negative values.
ex 1,079.00
A search for 79.00 returns any cell with 79.00 (179.00), 1,079.00 etc.

If I try an exact match (Match Entire Cell Contents) it finds nothing - I'm assuming because of
the sign byte.

--
Regards
Rob



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 25
Default Find Numeric data

Thanks Tevuna;
I know I can write a function to do it but what I was really asking is there anything I can do
with the built in "Find" function.
--
Regards
Rob
"Tevuna" wrote in message
...
Try this:
=ISERROR(FIND(7,A1)=FIND(9,A1,FIND(7,A1)+1)-1)=FALSE

"RobWN" wrote:

Is there any way to get the Find function to locate numeric values?
i.e. cells are formatted as Numbers with a comma separator for thousands and brackets for
negative values.
ex 1,079.00
A search for 79.00 returns any cell with 79.00 (179.00), 1,079.00 etc.

If I try an exact match (Match Entire Cell Contents) it finds nothing - I'm assuming because
of
the sign byte.

--
Regards
Rob





  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 136
Default Find Numeric data

Wasn't I using the built-in FIND funciton?
You can't search for more than one character at once, and you can't search
for a number value. Just characters

"RobWN" wrote:

Thanks Tevuna;
I know I can write a function to do it but what I was really asking is there anything I can do
with the built in "Find" function.
--
Regards
Rob
"Tevuna" wrote in message
...
Try this:
=ISERROR(FIND(7,A1)=FIND(9,A1,FIND(7,A1)+1)-1)=FALSE

"RobWN" wrote:

Is there any way to get the Find function to locate numeric values?
i.e. cells are formatted as Numbers with a comma separator for thousands and brackets for
negative values.
ex 1,079.00
A search for 79.00 returns any cell with 79.00 (179.00), 1,079.00 etc.

If I try an exact match (Match Entire Cell Contents) it finds nothing - I'm assuming because
of
the sign byte.

--
Regards
Rob






  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 25
Default Find Numeric data

My apologies.
I should have said command (vs Function) - it's been a long day..
Thanks.

--
Regards
Rob
"Tevuna" wrote in message
...
Wasn't I using the built-in FIND funciton?
You can't search for more than one character at once, and you can't search
for a number value. Just characters

"RobWN" wrote:

Thanks Tevuna;
I know I can write a function to do it but what I was really asking is there anything I can
do
with the built in "Find" function.
--
Regards
Rob
"Tevuna" wrote in message
...
Try this:
=ISERROR(FIND(7,A1)=FIND(9,A1,FIND(7,A1)+1)-1)=FALSE

"RobWN" wrote:

Is there any way to get the Find function to locate numeric values?
i.e. cells are formatted as Numbers with a comma separator for thousands and brackets for
negative values.
ex 1,079.00
A search for 79.00 returns any cell with 79.00 (179.00), 1,079.00 etc.

If I try an exact match (Match Entire Cell Contents) it finds nothing - I'm assuming
because
of
the sign byte.

--
Regards
Rob










  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,231
Default Find Numeric data

"RobWN" wrote...
I know I can write a function to do it but what I was really asking is
there anything I can do with the built in "Find" function.

....

You're using ambiguous (or just plain wrong) terminology. You seem to mean
the Edit Find command. Yes, at least in Excel 2003 and presumably 2007 and
maybe in earlier versions, but it requires using options. Specifically, to
find the integer numeric value 79, you need to change the 'Look in' option
to Values, you need to check 'Match entire cell contents', and you need to
enter 79 (no sign character, no decimal point or deciman places) as 'Find
what'.


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 25
Default Find Numeric data

I shouldn't post when I'm tired!
Sorry for the confusion and thanks.
Using xl'03
Yes - using the EditFind command
I have already tried what you suggest but it didn't work.

I have a column of cells containing dollar amounts, formatted, as I mentioned, as Numbers, two
decimal places with a "," thousands separator.
In this column are cells such as 79.00, (79.00), 1,079.00, 179.00 etc.etc..

With the "Look In" parameter set as "Values";
If I use a search argument of 79.00 - I get all occurrences of the value (all the above
examples).
If simply 79 is used it gets hits on any occurrence of 79 (100.79-for ex)
In either case, if I match entire contents - I get nothing.

I assume therefore that this is a straight character search and to do what I want I'd have to
write my own search routine.

Anyway, thanks for your interest and your reminder to be precise.
--
Regards
Rob
"Harlan Grove" wrote in message
...
"RobWN" wrote...
I know I can write a function to do it but what I was really asking is
there anything I can do with the built in "Find" function.

...

You're using ambiguous (or just plain wrong) terminology. You seem to mean the Edit Find
command. Yes, at least in Excel 2003 and presumably 2007 and maybe in earlier versions, but it
requires using options. Specifically, to find the integer numeric value 79, you need to change
the 'Look in' option to Values, you need to check 'Match entire cell contents', and you need
to enter 79 (no sign character, no decimal point or deciman places) as 'Find what'.



  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,202
Default Find Numeric data

You said the cells are formatted for 2 decimal places, parentheses for
negative values and thousands separators.... you did this using Format
Cells, right? If so, in Edit/Find, set Look In for Values, do **not** check
mark either match option but click the Format button and choose the same
cell formatting options you used on the cells originally. Typing 79.00 in
the Find What field and repeatedly clicking the Find Next button should take
you to the cells you want.

Rick


"RobWN" wrote in message
...
I shouldn't post when I'm tired!
Sorry for the confusion and thanks.
Using xl'03
Yes - using the EditFind command
I have already tried what you suggest but it didn't work.

I have a column of cells containing dollar amounts, formatted, as I
mentioned, as Numbers, two decimal places with a "," thousands separator.
In this column are cells such as 79.00, (79.00), 1,079.00, 179.00
etc.etc..

With the "Look In" parameter set as "Values";
If I use a search argument of 79.00 - I get all occurrences of the value
(all the above examples).
If simply 79 is used it gets hits on any occurrence of 79 (100.79-for ex)
In either case, if I match entire contents - I get nothing.

I assume therefore that this is a straight character search and to do what
I want I'd have to write my own search routine.

Anyway, thanks for your interest and your reminder to be precise.
--
Regards
Rob
"Harlan Grove" wrote in message
...
"RobWN" wrote...
I know I can write a function to do it but what I was really asking is
there anything I can do with the built in "Find" function.

...

You're using ambiguous (or just plain wrong) terminology. You seem to
mean the Edit Find command. Yes, at least in Excel 2003 and presumably
2007 and maybe in earlier versions, but it requires using options.
Specifically, to find the integer numeric value 79, you need to change
the 'Look in' option to Values, you need to check 'Match entire cell
contents', and you need to enter 79 (no sign character, no decimal point
or deciman places) as 'Find what'.




  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 136
Default Find Numeric data

If you're looking for a funciton, try this:
=FIND(7,A1)=FIND(9,A1,FIND(7,A1)+1)-1
Where TRUE contains 79 and #VALUE! and FALSE Doesn't


"RobWN" wrote:

Is there any way to get the Find function to locate numeric values?
i.e. cells are formatted as Numbers with a comma separator for thousands and brackets for
negative values.
ex 1,079.00
A search for 79.00 returns any cell with 79.00 (179.00), 1,079.00 etc.

If I try an exact match (Match Entire Cell Contents) it finds nothing - I'm assuming because of
the sign byte.

--
Regards
Rob



  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default Find Numeric data

The following macro will select all cells that display 79.00

Sub find_79()
v = "79.00"
Dim r As Range
Dim rf As Range
Set rf = Nothing
For Each r In ActiveSheet.UsedRange
If r.Text = v Then
If rf Is Nothing Then
Set rf = r
Else
Set rf = Union(rf, r)
End If
End If
Next
If rf Is Nothing Then Exit Sub
rf.Select
End Sub
--
Gary''s Student - gsnu200740


"RobWN" wrote:

Is there any way to get the Find function to locate numeric values?
i.e. cells are formatted as Numbers with a comma separator for thousands and brackets for
negative values.
ex 1,079.00
A search for 79.00 returns any cell with 79.00 (179.00), 1,079.00 etc.

If I try an exact match (Match Entire Cell Contents) it finds nothing - I'm assuming because of
the sign byte.

--
Regards
Rob





  #11   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 25
Default Find Numeric data

Thanks.

--
Regards
Rob
"Gary''s Student" wrote in message
...
The following macro will select all cells that display 79.00

Sub find_79()
v = "79.00"
Dim r As Range
Dim rf As Range
Set rf = Nothing
For Each r In ActiveSheet.UsedRange
If r.Text = v Then
If rf Is Nothing Then
Set rf = r
Else
Set rf = Union(rf, r)
End If
End If
Next
If rf Is Nothing Then Exit Sub
rf.Select
End Sub
--
Gary''s Student - gsnu200740


"RobWN" wrote:

Is there any way to get the Find function to locate numeric values?
i.e. cells are formatted as Numbers with a comma separator for thousands and brackets for
negative values.
ex 1,079.00
A search for 79.00 returns any cell with 79.00 (179.00), 1,079.00 etc.

If I try an exact match (Match Entire Cell Contents) it finds nothing - I'm assuming because
of
the sign byte.

--
Regards
Rob





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 Numeric sign in a string Nir Excel Worksheet Functions 5 November 6th 06 07:18 PM
Find and Return Numeric Label based on (Numeric Value) Criterion Sam via OfficeKB.com Excel Worksheet Functions 2 September 18th 06 11:20 PM
Find Numeric Criterion in Column & Return the Numeric Value from Row above Sam via OfficeKB.com Excel Worksheet Functions 6 April 27th 06 02:50 PM
Find numeric value at end of string Barb Reinhardt Excel Worksheet Functions 13 February 4th 06 11:31 PM
Find first numeric value in text string Rbp9ad Excel Worksheet Functions 4 October 15th 05 02:01 AM


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