Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 1
Default check for previous entry

I use column "D" for entering invoice numbers.How can I have Excel lock at
all previous enteries to see if I am duplicating an entry on any other row of
column "D"
  #2   Report Post  
Posted to microsoft.public.excel.newusers
Max Max is offline
external usenet poster
 
Posts: 9,221
Default check for previous entry

You could apply data validation on that col D

Select col D
Click Data Validation
Allow: Custom
Formula: =COUNTIF(D:D,D1)<2
Click OK

Test it out ..
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:17,500 Files:358 Subscribers:55
xdemechanik
---
"MichaelCasper" wrote:
I use column "D" for entering invoice numbers.How can I have Excel lock at
all previous enteries to see if I am duplicating an entry on any other row of
column "D"

  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 915
Default check for previous entry

MichaelCasper wrote:
I use column "D" for entering invoice numbers.How can I have Excel lock at
all previous enteries to see if I am duplicating an entry on any other row of
column "D"


Hello,

Max gave a good solution. Something else you could try is conditional
formatting:

Place the cursor in D1 and click the D column header to select the
entire column.

Choose Format | Conditional Formatting and fill in the options as follows:

Condition1:
change to Formula is
=COUNTIF(D:D,D1)1

Click the Format button and choose something eye-catching, e.g., yellow
shading with red font.

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
How to check previous cells for same data and return Y/N Emily Excel Worksheet Functions 12 August 1st 08 09:54 PM
How to check previous entries in column for same contents Emily Excel Worksheet Functions 4 July 30th 08 10:56 PM
restricting entry into a cell based on entry to a previous cell newbie57 New Users to Excel 1 June 9th 08 05:43 PM
Entry into check box dependent on other check box. Stilla Excel Worksheet Functions 9 December 10th 05 03:44 PM
How to "repeat previous entry" ? fantasma Excel Worksheet Functions 9 December 10th 04 01:43 PM


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