#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default formulas

Is there a formula to find previous similar entries in a column?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,163
Default formulas

Response would depend in part on how you want to use this, but what I usually
do is create a formula in another column. Let's say you are looking at cell
B32 and you want to know if there are any other cells in column B that have
the same value. So create a column C and in C32 you would type (as an
example):
=IF(COUNTIF($B:$B,$B32)1,"DUPLICATE","")
This formula could be copied/pasted or autofilled for other rows.

Another way that would show the "sequence number" for the current entry
(i.e. how many times it appears up to that point):
=COUNTIF($B$1:$B32,$B32)

If you truly mean "similar" instead of "exactly equal" that is tougher: how
would you determine what is similar? But here is a variation that counts how
many of the entries start with the same character:
=COUNTIF($B$1:$B32,LEFT($B32,1)&"*")
You could modify this for checking more characters or other types of pattern
matching; see Excel help on that.
--
- K Dales


"dune" wrote:

Is there a formula to find previous similar entries in a column?

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



"K Dales" wrote:

Response would depend in part on how you want to use this, but what I usually
do is create a formula in another column. Let's say you are looking at cell
B32 and you want to know if there are any other cells in column B that have
the same value. So create a column C and in C32 you would type (as an
example):
=IF(COUNTIF($B:$B,$B32)1,"DUPLICATE","")
This formula could be copied/pasted or autofilled for other rows.

Another way that would show the "sequence number" for the current entry
(i.e. how many times it appears up to that point):
=COUNTIF($B$1:$B32,$B32)

If you truly mean "similar" instead of "exactly equal" that is tougher: how
would you determine what is similar? But here is a variation that counts how
many of the entries start with the same character:
=COUNTIF($B$1:$B32,LEFT($B32,1)&"*")
You could modify this for checking more characters or other types of pattern
matching; see Excel help on that.
--
- K Dales


"dune" wrote:

Is there a formula to find previous similar entries in a column?


Thank you for your help, I tried it but in all cases the answer comes up as
1, it does not show the range of similar data. The idea is that I get the
closest range in the temperature and humidity columns displayed. I do thank
you for your clear explanation and hope you will have another look for me. So
for instance if the temperature today is 20c, and the humidity is 50%, I need
to get a list of similar conditions on previous days and weeks.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default formulas



"dune" wrote:



"K Dales" wrote:

Response would depend in part on how you want to use this, but what I usually
do is create a formula in another column. Let's say you are looking at cell
B32 and you want to know if there are any other cells in column B that have
the same value. So create a column C and in C32 you would type (as an
example):
=IF(COUNTIF($B:$B,$B32)1,"DUPLICATE","")
This formula could be copied/pasted or autofilled for other rows.

Another way that would show the "sequence number" for the current entry
(i.e. how many times it appears up to that point):
=COUNTIF($B$1:$B32,$B32)

If you truly mean "similar" instead of "exactly equal" that is tougher: how
would you determine what is similar? But here is a variation that counts how
many of the entries start with the same character:
=COUNTIF($B$1:$B32,LEFT($B32,1)&"*")
You could modify this for checking more characters or other types of pattern
matching; see Excel help on that.
--
- K Dales


"dune" wrote:

Is there a formula to find previous similar entries in a column?


Thank you for your help, I tried it but in all cases the answer comes up as
1, it does not show the range of similar data. The idea is that I get the
closest range in the temperature and humidity columns displayed. I do thank
you for your clear explanation and hope you will have another look for me. So
for instance if the temperature today is 20c, and the humidity is 50%, I need
to get a list of similar conditions on previous days and weeks.

The question is this: I take weather and humidity readings in the morning on
the day of an event, (plus a host of other readings) is there a way to type
those readings into excel and search the data-base for a match or near match?
Other readings are also taken and put into excel at the end of the day.
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
Convert Array Formulas to Regular Formulas minyeh Excel Worksheet Functions 0 March 21st 10 05:55 AM
E2007 formulas display as formulas, not results Pierre Excel Worksheet Functions 3 January 14th 10 04:59 PM
Counting # of Formulas in a column with formulas and entered data Brand Excel Worksheet Functions 1 October 10th 09 01:01 PM
CELLS NOT CALC FORMULAS - VALUES STAY SME FORMULAS CORRECT?? HELP Sherberg Excel Worksheet Functions 4 September 11th 07 01:34 AM
AdvancedFilter on cells with formulas, returning values and not formulas Claus[_3_] Excel Programming 2 September 7th 05 02:40 PM


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