Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 26
Default Finding a duplicate entry with no end date

Hi all
Hoping you can help out? I have a list of names with start and end date (of
placement). When I enter a new entry I want to be able to identify if a
previous entry does not have an end date and then a warning pops up for the
user saying something like "another placement still current".
Thanks in anticipation.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Finding a duplicate entry with no end date

Hi,

You don't tell us your data layout so this assumes

Col A Col B Col C
Name Start End

Put this in a cell
=IF(VLOOKUP(INDEX(A:A,MATCH(REPT("z",10),A:A,1),1) ,A1:C6,3,FALSE)=0,"Another
placement still current","")

The formula has wrapped as I pasted it but it all goes in a single cell.
Every time a new name is added to column A it will look for another instance
of that name and check if column C is blank and if it is it will display your
warning. Ir always checks the last entry in column A so there is no need to
alter the formula when a new name is added.

Mike

"Janelle S" wrote:

Hi all
Hoping you can help out? I have a list of names with start and end date (of
placement). When I enter a new entry I want to be able to identify if a
previous entry does not have an end date and then a warning pops up for the
user saying something like "another placement still current".
Thanks in anticipation.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Finding a duplicate entry with no end date

There was an error in the last formula

=IF(VLOOKUP(INDEX(A:A,MATCH(REPT("z",10),A:A,1),1) ,INDIRECT("A1:C" &
SUMPRODUCT(MAX((ROW(A1:C1000))*(C1:C1000<"")))),3 ,FALSE)=0,"Another
placement still current","")

"Janelle S" wrote:

Hi all
Hoping you can help out? I have a list of names with start and end date (of
placement). When I enter a new entry I want to be able to identify if a
previous entry does not have an end date and then a warning pops up for the
user saying something like "another placement still current".
Thanks in anticipation.

  #4   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Finding a duplicate entry with no end date

Assume names, start & end dates will be entered in cols A to C, from row2 down

Select col A, click Data Validation
In Settings tab,
Allow: Custom
Formula:
=NOT(AND(A1<"",COUNTIF(A$1:A1,A1)1,INDEX(C$1:C1, MATCH(A1,A$1:A1,0))=0))
Click on the Error Alert tab
(Answer "yes" to dismiss the prompt that formula currently evaluates to an
error)
Input the error message, eg: Stop, another placement still current!
Click OK

Test it out ..
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Janelle S" wrote:
.. I have a list of names with start and end date (of placement).
When I enter a new entry I want to be able to identify if a
previous entry does not have an end date and then a warning
pops up for the user saying something like
"another placement still current".

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 26
Default Finding a duplicate entry with no end date

Thanks Max. One small problem - the error alert pops up if there is an end
date - I want it to pop up if there is no end date. Any suggestions??

"Max" wrote:

Assume names, start & end dates will be entered in cols A to C, from row2 down

Select col A, click Data Validation
In Settings tab,
Allow: Custom
Formula:
=NOT(AND(A1<"",COUNTIF(A$1:A1,A1)1,INDEX(C$1:C1, MATCH(A1,A$1:A1,0))=0))
Click on the Error Alert tab
(Answer "yes" to dismiss the prompt that formula currently evaluates to an
error)
Input the error message, eg: Stop, another placement still current!
Click OK

Test it out ..
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Janelle S" wrote:
.. I have a list of names with start and end date (of placement).
When I enter a new entry I want to be able to identify if a
previous entry does not have an end date and then a warning
pops up for the user saying something like
"another placement still current".



  #6   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Finding a duplicate entry with no end date

"Janelle S" wrote:
Thanks Max. One small problem - the error alert pops up if there is an end
date - I want it to pop up if there is no end date. Any suggestions??


That shouldn't be. Perhaps you implemented it incorrectly? Pl try it again.
It should work properly as per your specs, ie the error alert will pop up if
the name entered is a duplicate, and if there is *no* end date (I've just
retested it again here)

Remember it was assumed that end dates are in col C, in C2 down

Take a moment to press the "Yes" button from where you're reading this
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 26
Default Finding a duplicate entry with no end date

Tried it again - and worked perfectly. Thanks so much for your help. J

"Max" wrote:

"Janelle S" wrote:
Thanks Max. One small problem - the error alert pops up if there is an end
date - I want it to pop up if there is no end date. Any suggestions??


That shouldn't be. Perhaps you implemented it incorrectly? Pl try it again.
It should work properly as per your specs, ie the error alert will pop up if
the name entered is a duplicate, and if there is *no* end date (I've just
retested it again here)

Remember it was assumed that end dates are in col C, in C2 down

Take a moment to press the "Yes" button from where you're reading this
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---

  #8   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Finding a duplicate entry with no end date

Welcome, Janelle
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Janelle S" wrote in message
...
Tried it again - and worked perfectly. Thanks so much for your help. J



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
Finding 2nd last entry dartanion Excel Discussion (Misc queries) 3 September 20th 07 07:35 PM
Restricting Duplicate Entry Rajat Excel Worksheet Functions 5 November 7th 06 03:00 AM
Highlight Duplicate on entry jk Setting up and Configuration of Excel 2 July 15th 06 10:46 AM
Formula for duplicate entry Calculate Date range Excel Worksheet Functions 1 April 7th 06 02:35 AM
finding duplicate entry anil New Users to Excel 0 February 2nd 05 05:17 AM


All times are GMT +1. The time now is 02:24 AM.

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"