Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 40
Default How to check previous entries in column for same contents

Hi everyone,

Column B contains a list of text data, which happens to be numbers (e.g.
1172, 4721, 6743, etc.). Every time I enter a new number in the column, I
would like another column in the same row to check the previous entries in
column B and report whether the exact same number has been entered before (if
true="yes", if false="no").

It seems simple, and reading previous posts on similar subjects has left me
totally confused. I tried an IF function but didn't get very far.

-Grateful newbie

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 159
Default How to check previous entries in column for same contents

On Jul 30, 10:26*pm, Emily wrote:
Hi everyone,

Column B contains a list of text data, which happens to be numbers (e.g.
1172, 4721, 6743, etc.). Every time I enter a new number in the column, I
would like another column in the same row to check the previous entries in
column B and report whether the exact same number has been entered before (if
true="yes", if false="no").

It seems simple, and reading previous posts on similar subjects has left me
totally confused. I tried an IF function but didn't get very far.

-Grateful newbie


In col C: =IF(COUNTIF(B:B,B1)1,"YES","NO")
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 964
Default How to check previous entries in column for same contents

Assume you enter values in column A starting in A2
in B2 put

=IF(A2="","",COUNTIF($A$2:A2,A2)1)

copy down as far you know you will need

If you really need yes or no use

=IF(A2="","",IF(COUNTIF($A$2:A2,A2)1,"Yes","No"))

I would be annoyed seeing all these no entries so I would use
conditional formatting to change the colour of the cell value that
has been entered more than one, select A2 and use

COUNTIF($A$2:A2,A2)1

as conditional formatting then copy down just the formatting with the
paintbrush

or if using another column

=IF(A2="","",IF(COUNTIF($A$2:A2,A2)1,"Entered more than once",""))






--


Regards,


Peo Sjoblom

"Emily" wrote in message
...
Hi everyone,

Column B contains a list of text data, which happens to be numbers (e.g.
1172, 4721, 6743, etc.). Every time I enter a new number in the column, I
would like another column in the same row to check the previous entries in
column B and report whether the exact same number has been entered before
(if
true="yes", if false="no").

It seems simple, and reading previous posts on similar subjects has left
me
totally confused. I tried an IF function but didn't get very far.

-Grateful newbie



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 159
Default How to check previous entries in column for same contents

On Jul 30, 10:37*pm, robzrob wrote:
On Jul 30, 10:26*pm, Emily wrote:

Hi everyone,


Column B contains a list of text data, which happens to be numbers (e.g..
1172, 4721, 6743, etc.). Every time I enter a new number in the column, I
would like another column in the same row to check the previous entries in
column B and report whether the exact same number has been entered before (if
true="yes", if false="no").


It seems simple, and reading previous posts on similar subjects has left me
totally confused. I tried an IF function but didn't get very far.


-Grateful newbie


In col C: =IF(COUNTIF(B:B,B1)1,"YES","NO")


...then copy down - sorry.
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 40
Default How to check previous entries in column for same contents

Thanks Peo and Rob! It worked!

"robzrob" wrote:

On Jul 30, 10:37 pm, robzrob wrote:
On Jul 30, 10:26 pm, Emily wrote:

Hi everyone,


Column B contains a list of text data, which happens to be numbers (e.g..
1172, 4721, 6743, etc.). Every time I enter a new number in the column, I
would like another column in the same row to check the previous entries in
column B and report whether the exact same number has been entered before (if
true="yes", if false="no").


It seems simple, and reading previous posts on similar subjects has left me
totally confused. I tried an IF function but didn't get very far.


-Grateful newbie


In col C: =IF(COUNTIF(B:B,B1)1,"YES","NO")


...then copy down - sorry.

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
Turning a row's contents into a column of entries Musawwir Spiegel New Users to Excel 2 February 20th 08 10:12 PM
How do I restrict cell entries that are determined by a previous l Gruntos Excel Discussion (Misc queries) 1 August 22nd 07 10:08 AM
retrieve previous entries missangela Excel Discussion (Misc queries) 1 May 26th 06 05:30 PM
How to constrain input to previous entries SMUDGER New Users to Excel 1 January 20th 06 02:39 PM
Check for double entries in a row Pierrot Robert Excel Worksheet Functions 1 September 5th 05 06:37 PM


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