#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Locate data macro

I have a list using unique coded ref numbers.
During the data entry process, if the unique code has already been entered,
I use this statement "=1=COUNTIF($A$5:$A$238,A7)" to warn the operator that
it has already been entered and to display the cell ref where it is located.
I would like to create a macro that will locate the record once the warning
is activated.
Any help would be appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,203
Default Locate data macro

Formulas cannot call a macro, you could actually have a macro attached to the
worksheet_change() event to monitor a column or fixed range as your A5:A238
range and notify the user, clear the entry and select the cell the previous
entry is in.

Or would you prefer to call the macro 'manually' after the alert is put up?
In any case we need a little more information like: is A5:A238 always the
range to be examined for prior entry? Is A7 always then cell that they enter
a number into? If not, describe it all in a little more detail please.

Also, it's a little confusing that you're testing A7 within the range
A5:A238??

"Malcolm McM" wrote:

I have a list using unique coded ref numbers.
During the data entry process, if the unique code has already been entered,
I use this statement "=1=COUNTIF($A$5:$A$238,A7)" to warn the operator that
it has already been entered and to display the cell ref where it is located.
I would like to create a macro that will locate the record once the warning
is activated.
Any help would be appreciated.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Locate data macro

Manually call the macro after the alert is issued.
Yes the cells to be monitored for duplicates are always A5:A238.
The data is entered into the range A5:A238 and every line is monitored for
a dulpicate value as the data is entered.The operator begins entering data at
A5 & continues down the list. The objective is, if the operator is entering
data at say line 200 and the same code has been entered at say line 5 she
will get the message that the code has already been entered at line 5.I would
like to then have the macro delete the last duplicated value and return to
line 5 so data can be added to the adjacent columns.
Hope you can follow this,and thank you for helping.

"JLatham" wrote:

Formulas cannot call a macro, you could actually have a macro attached to the
worksheet_change() event to monitor a column or fixed range as your A5:A238
range and notify the user, clear the entry and select the cell the previous
entry is in.

Or would you prefer to call the macro 'manually' after the alert is put up?
In any case we need a little more information like: is A5:A238 always the
range to be examined for prior entry? Is A7 always then cell that they enter
a number into? If not, describe it all in a little more detail please.

Also, it's a little confusing that you're testing A7 within the range
A5:A238??

"Malcolm McM" wrote:

I have a list using unique coded ref numbers.
During the data entry process, if the unique code has already been entered,
I use this statement "=1=COUNTIF($A$5:$A$238,A7)" to warn the operator that
it has already been entered and to display the cell ref where it is located.
I would like to create a macro that will locate the record once the warning
is activated.
Any help would be appreciated.

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
locate data from a chart by inserting data into a cell Aaron Hodson \(Coversure\) Excel Worksheet Functions 3 November 1st 07 12:12 PM
HELP I need to locate invalid data and I don't know how! [email protected] Excel Discussion (Misc queries) 3 June 3rd 07 06:59 PM
How to locate duplicate data Robin Rescue Excel Discussion (Misc queries) 3 January 12th 07 08:48 AM
LOCATE DATA IN ONE SHEET AND APPLY ATTACHED DATA TO ANOTHER Bruno Excel Discussion (Misc queries) 1 October 16th 06 12:59 PM
how can i locate duplicate data in an excel data table? neil Excel Worksheet Functions 6 February 14th 05 12:01 AM


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