PC Review


Reply
Thread Tools Rate Thread

Count # - Compare - Find - Identify

 
 
Curious
Guest
Posts: n/a
 
      19th Nov 2006
2 Columns about order status

Company A expired
Company A expired
Company A active
Company A active
Company B active
Company C expired
Company D expired
Company D active
.....
.....

A company can have multiple expired orders but only one active order.
The purpose is to identify the company with multiple active orders and
fix it manually.

Thanks in advance.

 
Reply With Quote
 
 
 
 
Gary Keramidas
Guest
Posts: n/a
 
      19th Nov 2006
why not just try autofilter?

--


Gary


"Curious" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>2 Columns about order status
>
> Company A expired
> Company A expired
> Company A active
> Company A active
> Company B active
> Company C expired
> Company D expired
> Company D active
> ....
> ....
>
> A company can have multiple expired orders but only one active order.
> The purpose is to identify the company with multiple active orders and
> fix it manually.
>
> Thanks in advance.
>



 
Reply With Quote
 
Bob Phillips
Guest
Posts: n/a
 
      19th Nov 2006
In column C

=IF(SUMPRODUCT(--($A$1:L$A$20=A1),--($B$1:$B$20="Active")),"Dup","")

and copy down

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Curious" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 2 Columns about order status
>
> Company A expired
> Company A expired
> Company A active
> Company A active
> Company B active
> Company C expired
> Company D expired
> Company D active
> ....
> ....
>
> A company can have multiple expired orders but only one active order.
> The purpose is to identify the company with multiple active orders and
> fix it manually.
>
> Thanks in advance.
>



 
Reply With Quote
 
Curious
Guest
Posts: n/a
 
      19th Nov 2006
This is a large database. If I use the autofilter, I have to look at
each company name to ensure that there is only one active order.

Thanks


Gary Keramidas wrote:
> why not just try autofilter?
>
> --
>
>
> Gary
>
>
> "Curious" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> >2 Columns about order status
> >
> > Company A expired
> > Company A expired
> > Company A active
> > Company A active
> > Company B active
> > Company C expired
> > Company D expired
> > Company D active
> > ....
> > ....
> >
> > A company can have multiple expired orders but only one active order.
> > The purpose is to identify the company with multiple active orders and
> > fix it manually.
> >
> > Thanks in advance.
> >


 
Reply With Quote
 
Curious
Guest
Posts: n/a
 
      19th Nov 2006
=IF(SUMPRODUCT(-($B$8:$B$1000=B610),-($D$8:$D$1000="Active")),"Dup","")

does not work

It assigns "dup" to every order, except those companys that have no
active orders.




Bob Phillips wrote:
> In column C
>
> =IF(SUMPRODUCT(--($A$1:L$A$20=A1),--($B$1:$B$20="Active")),"Dup","")
>
> and copy down
>
> --
> HTH
>
> Bob Phillips
>
> (replace somewhere in email address with gmail if mailing direct)
>
> "Curious" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > 2 Columns about order status
> >
> > Company A expired
> > Company A expired
> > Company A active
> > Company A active
> > Company B active
> > Company C expired
> > Company D expired
> > Company D active
> > ....
> > ....
> >
> > A company can have multiple expired orders but only one active order.
> > The purpose is to identify the company with multiple active orders and
> > fix it manually.
> >
> > Thanks in advance.
> >


 
Reply With Quote
 
=?Utf-8?B?R3JhaGFtIFk=?=
Guest
Posts: n/a
 
      19th Nov 2006
I don't like adding columns, but if col c =A&B then you could use conditional
formatiing to look for where Colum B="active" and then count how many times
the current cell value is in column c, & colour it.
Use this conditional formatting formula in C1

=IF(B1="active",IF(COUNTIF(C:C,C1)>1,1,0),0) this will cause the cell to
conditionally format where a company has more than one active order.

"Curious" wrote:

> =IF(SUMPRODUCT(-($B$8:$B$1000=B610),-($D$8:$D$1000="Active")),"Dup","")
>
> does not work
>
> It assigns "dup" to every order, except those companys that have no
> active orders.
>
>
>
>
> Bob Phillips wrote:
> > In column C
> >
> > =IF(SUMPRODUCT(--($A$1:L$A$20=A1),--($B$1:$B$20="Active")),"Dup","")
> >
> > and copy down
> >
> > --
> > HTH
> >
> > Bob Phillips
> >
> > (replace somewhere in email address with gmail if mailing direct)
> >
> > "Curious" <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed)...
> > > 2 Columns about order status
> > >
> > > Company A expired
> > > Company A expired
> > > Company A active
> > > Company A active
> > > Company B active
> > > Company C expired
> > > Company D expired
> > > Company D active
> > > ....
> > > ....
> > >
> > > A company can have multiple expired orders but only one active order.
> > > The purpose is to identify the company with multiple active orders and
> > > fix it manually.
> > >
> > > Thanks in advance.
> > >

>
>

 
Reply With Quote
 
Tom Ogilvy
Guest
Posts: n/a
 
      19th Nov 2006
=IF(SUMPRODUCT(-($B$8:$B$1000=B610),-($D$8:$D$1000="Active"))>1,"Dup","")

--
Regards,
Tom Ogilvy


"Curious" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> =IF(SUMPRODUCT(-($B$8:$B$1000=B610),-($D$8:$D$1000="Active")),"Dup","")
>
> does not work
>
> It assigns "dup" to every order, except those companys that have no
> active orders.
>
>
>
>
> Bob Phillips wrote:
>> In column C
>>
>> =IF(SUMPRODUCT(--($A$1:L$A$20=A1),--($B$1:$B$20="Active")),"Dup","")
>>
>> and copy down
>>
>> --
>> HTH
>>
>> Bob Phillips
>>
>> (replace somewhere in email address with gmail if mailing direct)
>>
>> "Curious" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>> > 2 Columns about order status
>> >
>> > Company A expired
>> > Company A expired
>> > Company A active
>> > Company A active
>> > Company B active
>> > Company C expired
>> > Company D expired
>> > Company D active
>> > ....
>> > ....
>> >
>> > A company can have multiple expired orders but only one active order.
>> > The purpose is to identify the company with multiple active orders and
>> > fix it manually.
>> >
>> > Thanks in advance.
>> >

>



 
Reply With Quote
 
Bob Phillips
Guest
Posts: n/a
 
      19th Nov 2006
Sorry, I meant that the count should be counted as greater thajn 1

=IF(SUMPRODUCT(--($A$1:L$A$20=$A1),--($B$1:$B$20="Active"))>1,"Dup","")

If you just want to highlight the 2nd (and 3rd etc.) instance, then use

=IF(SUMPRODUCT(--($A$1:$A1=$A1),--($B$1:$B1="Active"))>1,"Dup","")


--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"Bob Phillips" <(E-Mail Removed)> wrote in message
news:un4BY$$(E-Mail Removed)...
> In column C
>
> =IF(SUMPRODUCT(--($A$1:L$A$20=A1),--($B$1:$B$20="Active")),"Dup","")
>
> and copy down
>
> --
> HTH
>
> Bob Phillips
>
> (replace somewhere in email address with gmail if mailing direct)
>
> "Curious" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > 2 Columns about order status
> >
> > Company A expired
> > Company A expired
> > Company A active
> > Company A active
> > Company B active
> > Company C expired
> > Company D expired
> > Company D active
> > ....
> > ....
> >
> > A company can have multiple expired orders but only one active order.
> > The purpose is to identify the company with multiple active orders and
> > fix it manually.
> >
> > Thanks in advance.
> >

>
>



 
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
Compare two worksheets and identify common entries =?Utf-8?B?TWFya1Q=?= Microsoft Excel Misc 3 8th Nov 2007 01:09 AM
how do I compare different revs of a table and identify the diffs =?Utf-8?B?SmltR0Y=?= Microsoft Access 4 5th Apr 2007 03:17 PM
How to identify text (compare) in one sheet, then move it another mag7417 Microsoft Excel Programming 0 14th Dec 2005 10:38 AM
compare two spreadsheets and identify records that have any change =?Utf-8?B?YnJlbnBlZA==?= Microsoft Excel Misc 2 6th May 2005 02:09 PM
Compare and identify new data Dave Baffled Microsoft Excel Programming 2 25th Nov 2003 06:14 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:12 AM.