Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Pat
 
Posts: n/a
Default Warn if already entered

example:

A1 = "car" B1 =
A2 = "lorry" B2 =
A3 = "tractor" B3 =
A4 = "bus" B4 =
A5 = "tractor" B5 = "this item has already been entered"


I need a formula to be entered into col"B" to give the message described.
Any suggestion?

Ta


  #2   Report Post  
Ragdyer
 
Posts: n/a
Default

Try this in B1, and copy down as needed:

=IF(COUNTIF($A$1:A1,A1)1,"This item has already been entered","")

--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Pat" wrote in message
...
example:

A1 = "car" B1 =
A2 = "lorry" B2 =
A3 = "tractor" B3 =
A4 = "bus" B4 =
A5 = "tractor" B5 = "this item has already been entered"


I need a formula to be entered into col"B" to give the message described.
Any suggestion?

Ta



  #3   Report Post  
Biff
 
Posts: n/a
Default

Hi!

If you enter the data from the top down all the time:

Leave B1 empty. A1 is the top cell so nothing could have
been "already entered", right?

In B2 enter this formula and copy down as needed:

=IF(COUNTIF(A$1:A2,A2)1,"This item has already been
entered","")

Biff

-----Original Message-----
example:

A1 = "car" B1 =
A2 = "lorry" B2 =
A3 = "tractor" B3 =
A4 = "bus" B4 =
A5 = "tractor" B5 = "this item has already been entered"


I need a formula to be entered into col"B" to give the

message described.
Any suggestion?

Ta


.

  #4   Report Post  
Arvi Laanemets
 
Posts: n/a
Default

Hi

You can use custom data validation, to restrict non-unicue entries into
range. When an attempt to enter some value repeatedly, an error message (you
can design it yourself, or leave the standard message unchanged) pops up,
the user is informed about input error, and he/she is allowed to choose or
to retry or to cancel.

P.e. Select the range A1:A100 and then from Data menu Validation. Set Allow:
to Custom, and into Formula field enter
=COUNTIF(A:A,A1)<2
Activate Error Alert tab, and into Title field enter something like:
Input Error!
Into Error Message field enter something like:
Only unique entries are allowed! This entry already exist in column A!
Press OK

Now try to enter any double entry into range A1:A100.

--
When sending mail, use address arvil<attarkon.ee
Arvi Laanemets


"Pat" wrote in message
...
example:

A1 = "car" B1 =
A2 = "lorry" B2 =
A3 = "tractor" B3 =
A4 = "bus" B4 =
A5 = "tractor" B5 = "this item has already been entered"


I need a formula to be entered into col"B" to give the message described.
Any suggestion?

Ta




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
Warn when a cell value has changed LesLdh Excel Worksheet Functions 6 February 16th 05 06:19 PM
New installed Excel2003 keeps dividing any number entered in any . Jan E. Sørensen Excel Discussion (Misc queries) 3 February 16th 05 02:29 PM
Numbers entered change to 0 ketrash Excel Discussion (Misc queries) 1 February 4th 05 09:53 PM
micosoft excel dates entered but changed to sequencial numbers ho. ten twenty Excel Worksheet Functions 1 December 10th 04 02:29 AM
showing the # of times an item is entered in a column Foreplay_Man Excel Worksheet Functions 3 November 10th 04 04:28 PM


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