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

Hi All

I was wondering if there was a way to use the find function to rather than
look for an exact value eg. "1" but to look for a range of numbers eg
"between (number) + 5 & (number) - 5" or is a loop the best answer for this
one?

Thanks in Advance

Jason
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,393
Default Find Function

What are you looking in?
1) A single cell; as in find if there is a 1 in "I have 1 book"
2) A single cell: as in find if A1 is a number in the range 4 to 6
3) A range? As in find if the any of the numbers 4,5,6 appear in A1:A20
Tell us more about the problem.
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Jason Zischke" wrote in message
...
Hi All

I was wondering if there was a way to use the find function to rather than
look for an exact value eg. "1" but to look for a range of numbers eg
"between (number) + 5 & (number) - 5" or is a loop the best answer for
this
one?

Thanks in Advance

Jason



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 147
Default Find Function

Hi Bernard V Liengme

Thanks for the responce to elaborate say I have a range("A1:A20") and I want
to find all the cells thats value is say between 20 & 25.

Jason

"Bernard Liengme" wrote:

What are you looking in?
1) A single cell; as in find if there is a 1 in "I have 1 book"
2) A single cell: as in find if A1 is a number in the range 4 to 6
3) A range? As in find if the any of the numbers 4,5,6 appear in A1:A20
Tell us more about the problem.
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Jason Zischke" wrote in message
...
Hi All

I was wondering if there was a way to use the find function to rather than
look for an exact value eg. "1" but to look for a range of numbers eg
"between (number) + 5 & (number) - 5" or is a loop the best answer for
this
one?

Thanks in Advance

Jason




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,393
Default Find Function

This will tell you how many cells fit the criteria
=SUMPRODUCT(--(a1:a20=20),--(a1:a20<=25))
This is five the sum of those cells
=SUMPRODUCT(--(a1:a20=20),--(a1:a20<=25), a1:a20)

If you select all the range; use Format|Conditional Formatting and use
Formula Is
=AND(A1=20,A1<=25) and set a fill colour; then all the cells that fit the
criteria will be in that colour

best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Jason Zischke" wrote in message
...
Hi Bernard V Liengme

Thanks for the responce to elaborate say I have a range("A1:A20") and I
want
to find all the cells thats value is say between 20 & 25.

Jason

"Bernard Liengme" wrote:

What are you looking in?
1) A single cell; as in find if there is a 1 in "I have 1 book"
2) A single cell: as in find if A1 is a number in the range 4 to 6
3) A range? As in find if the any of the numbers 4,5,6 appear in A1:A20
Tell us more about the problem.
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Jason Zischke" wrote in message
...
Hi All

I was wondering if there was a way to use the find function to rather
than
look for an exact value eg. "1" but to look for a range of numbers eg
"between (number) + 5 & (number) - 5" or is a loop the best answer for
this
one?

Thanks in Advance

Jason






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 function?? SeniorJosie Excel Worksheet Functions 3 June 1st 09 09:29 PM
Find Function [email protected] Excel Worksheet Functions 2 September 14th 07 08:26 PM
find function rollover99 via OfficeKB.com Excel Programming 4 July 28th 06 03:46 PM
Find Function DejaVu[_37_] Excel Programming 6 July 8th 05 07:49 PM
backwards find function to find character in a string of text Ashleigh K. Excel Programming 1 January 14th 04 04:36 PM


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