PC Review


Reply
Thread Tools Rate Thread

Check if number already are in the sheet

 
 
=?Utf-8?B?YWx2aW4gS3VpcGVy?=
Guest
Posts: n/a
 
      19th Nov 2007
Hi
Can some one help me
I need a code where i can write a number
maybe in a inputbox then the code shall see if the number i write already
are in the row, if Not write the number in the activecell , and if the are
there
error by msgbox or something like that

Hope some one can help


 
Reply With Quote
 
 
 
 
=?Utf-8?B?SmltIFRob21saW5zb24=?=
Guest
Posts: n/a
 
      19th Nov 2007
You don't need a macro. You can use validation... Try this. Highlite column A
(A1 should be the active cell). Select Data|Format ->Custom and add this
formula

=COUNTIF(A:A, A1) =1

Now try adding values into column A. It should not allow duplicates...
--
HTH...

Jim Thomlinson


"alvin Kuiper" wrote:

> Hi
> Can some one help me
> I need a code where i can write a number
> maybe in a inputbox then the code shall see if the number i write already
> are in the row, if Not write the number in the activecell , and if the are
> there
> error by msgbox or something like that
>
> Hope some one can help
>
>

 
Reply With Quote
 
=?Utf-8?B?YWx2aW4gS3VpcGVy?=
Guest
Posts: n/a
 
      19th Nov 2007
Thanks

Alvin


"Jim Thomlinson" skrev:

> You don't need a macro. You can use validation... Try this. Highlite column A
> (A1 should be the active cell). Select Data|Format ->Custom and add this
> formula
>
> =COUNTIF(A:A, A1) =1
>
> Now try adding values into column A. It should not allow duplicates...
> --
> HTH...
>
> Jim Thomlinson
>
>
> "alvin Kuiper" wrote:
>
> > Hi
> > Can some one help me
> > I need a code where i can write a number
> > maybe in a inputbox then the code shall see if the number i write already
> > are in the row, if Not write the number in the activecell , and if the are
> > there
> > error by msgbox or something like that
> >
> > Hope some one can help
> >
> >

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Check Activesheet for chart sheet or work sheet =?Utf-8?B?TlNL?= Microsoft Excel Charting 1 17th Jul 2007 09:00 PM
Enable check box in protected sheet + group check boxes =?Utf-8?B?RGV4eHRlcnI=?= Microsoft Excel Misc 4 2nd Aug 2006 12:00 PM
Check if sheet name is a number =?Utf-8?B?bGluZ2xj?= Microsoft Excel Programming 1 13th Jul 2006 04:13 AM
Check if sheet's name is a number =?Utf-8?B?bGluZ2xj?= Microsoft Excel Misc 1 13th Jul 2006 01:48 AM
how to use sumif function to check date in 1 sheet is < 2 sheet =?Utf-8?B?QmhhcmF0IFNhYm9v?= Microsoft Excel Worksheet Functions 3 30th Dec 2005 07:10 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:30 AM.