PC Review


Reply
Thread Tools Rate Thread

Challenging Problem

 
 
akrashid@gmail.com
Guest
Posts: n/a
 
      21st Jun 2007
Hi Everyone,
I have the following data in columns A B C D
Vendor Name Invoice Date Invoice Number Employee Name

D & D 1/17/2002 3464043201
Flight,, William
D & D 1/17/2002 3464043201
Sunningham,, L Jean
D & D 1/17/2002 3464043201
Flight,, William
D & D 1/17/2002 3464043202
Barrar,, Netty R
D & D 1/17/2002 3464043202
Barrar,, Netty R


I want to look at column c (invoice number) then search thru column c
for each invoice number and compare it with column d. If there is more
than one name associated with each invoice number in column c I want
to indicate it with an x in new column e.
In the example above Flight,, William & Barrar,, Netty R will have
an a x in new column e


I would like a macro to do this as this spreadsheet has 5000 rows in
it

Thanks in advance for the groups guidance.

 
Reply With Quote
 
 
 
 
=?Utf-8?B?Sk1C?=
Guest
Posts: n/a
 
      22nd Jun 2007
I know you asked for a macro, but is it absolutely necessary?? A formula is
easier. In E2 enter
=IF(SUMPRODUCT(--(C$2:C$6=C2),--(D$2$6=D2))>1,"X","")

and copy/fill down.

If you don't want to flag the first occurence (only the subsequent ones) then
=IF(SUMPRODUCT(--(C$2:C2=C2),--(D$22=D2))>1,"X","")


"(E-Mail Removed)" wrote:

> Hi Everyone,
> I have the following data in columns A B C D
> Vendor Name Invoice Date Invoice Number Employee Name
>
> D & D 1/17/2002 3464043201
> Flight,, William
> D & D 1/17/2002 3464043201
> Sunningham,, L Jean
> D & D 1/17/2002 3464043201
> Flight,, William
> D & D 1/17/2002 3464043202
> Barrar,, Netty R
> D & D 1/17/2002 3464043202
> Barrar,, Netty R
>
>
> I want to look at column c (invoice number) then search thru column c
> for each invoice number and compare it with column d. If there is more
> than one name associated with each invoice number in column c I want
> to indicate it with an x in new column e.
> In the example above Flight,, William & Barrar,, Netty R will have
> an a x in new column e
>
>
> I would like a macro to do this as this spreadsheet has 5000 rows in
> it
>
> Thanks in advance for the groups guidance.
>
>

 
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
Challenging Problem akrashid@gmail.com Microsoft Excel Misc 1 22nd Jun 2007 12:58 AM
Challenging PRoblem in VB.NET. Hisouka Microsoft VB .NET 2 26th Sep 2006 01:10 PM
Challenging Problem Naji Microsoft Excel Misc 1 11th Jan 2006 05:05 PM
Challenging problem DrBahrani Windows XP Networking 0 15th Nov 2005 07:50 PM
Challenging problem Peter Windows XP Networking 0 10th Jul 2003 03:40 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:32 PM.