PC Review


Reply
Thread Tools Rate Thread

Comparing Data in Excel 2003

 
 
=?Utf-8?B?RGlhbW9uZHNfTWluZQ==?=
Guest
Posts: n/a
 
      21st Jun 2007
Below is a sample list; I need to extract or highlight names in Column A that
have a zero value in column B, but if the name in Column A is listed multiple
times and the value in column B is greater than zero, it should not be
extracted or highlighted. So for the list below the result should be User 4
and User 5. Thank you.

Column A Column B
Name PST Folder Size
User 1 0
User 2 15
User 3 18
User 1 22
User 4 0
User 5 0

 
Reply With Quote
 
 
 
 
=?Utf-8?B?Ymo=?=
Guest
Posts: n/a
 
      21st Jun 2007
select column A
<format><conditional format>
change value is to formula is
=countif(A:A,A1,B:B)=0
set format patterns to what you want
occasionally I have to go back into conditional formatting and remove quote
marks I do not want or change absolute and relative cell referencing as
needed. i have never been able to truely identify why, but think I am
probalbly just sloppy when I first do it.

"Diamonds_Mine" wrote:

> Below is a sample list; I need to extract or highlight names in Column A that
> have a zero value in column B, but if the name in Column A is listed multiple
> times and the value in column B is greater than zero, it should not be
> extracted or highlighted. So for the list below the result should be User 4
> and User 5. Thank you.
>
> Column A Column B
> Name PST Folder Size
> User 1 0
> User 2 15
> User 3 18
> User 1 22
> User 4 0
> User 5 0
>

 
Reply With Quote
 
krcowen@aol.com
Guest
Posts: n/a
 
      21st Jun 2007
You can highlight with conditional formatting. With your data in cells
A2:B7, it would be

=AND(COUNTIF($A$2:$A$7,$A2)=1,$B2>0)

with the conditional format, whatever you like to highlight things.

For extraction, you can put the above formula in an adjacent column,
and use Advance Filtering. The formula above should evaluate to True
for rows meeting your conditions, otherwise False, as I understand
your problem.

Good luck.

Ken
Norfolk, Va


On Jun 21, 8:10 am, Diamonds_Mine
<DiamondsM...@discussions.microsoft.com> wrote:
> Below is a sample list; I need to extract or highlight names in Column A that
> have a zero value in column B, but if the name in Column A is listed multiple
> times and the value in column B is greater than zero, it should not be
> extracted or highlighted. So for the list below the result should be User 4
> and User 5. Thank you.
>
> Column A Column B
> Name PST Folder Size
> User 1 0
> User 2 15
> User 3 18
> User 1 22
> User 4 0
> User 5 0



 
Reply With Quote
 
=?Utf-8?B?RGlhbW9uZHNfTWluZQ==?=
Guest
Posts: n/a
 
      21st Jun 2007
Thank you Ken, this formula gave me the results that I wanted; I just changed
">" to "=". -- Carolyn

"(E-Mail Removed)" wrote:

> You can highlight with conditional formatting. With your data in cells
> A2:B7, it would be
>
> =AND(COUNTIF($A$2:$A$7,$A2)=1,$B2>0)
>
> with the conditional format, whatever you like to highlight things.
>
> For extraction, you can put the above formula in an adjacent column,
> and use Advance Filtering. The formula above should evaluate to True
> for rows meeting your conditions, otherwise False, as I understand
> your problem.
>
> Good luck.
>
> Ken
> Norfolk, Va
>
>
> On Jun 21, 8:10 am, Diamonds_Mine
> <DiamondsM...@discussions.microsoft.com> wrote:
> > Below is a sample list; I need to extract or highlight names in Column A that
> > have a zero value in column B, but if the name in Column A is listed multiple
> > times and the value in column B is greater than zero, it should not be
> > extracted or highlighted. So for the list below the result should be User 4
> > and User 5. Thank you.
> >
> > Column A Column B
> > Name PST Folder Size
> > User 1 0
> > User 2 15
> > User 3 18
> > User 1 22
> > User 4 0
> > User 5 0

>
>
>

 
Reply With Quote
 
=?Utf-8?B?VGVldGhsZXNzIG1hbWE=?=
Guest
Posts: n/a
 
      21st Jun 2007
Try Auto Filter or Advanced Filter are the best way to do. If you preferred
the formula then
try this:
"Name" is a define name range
"PSTFS" is a define name range

=IF(ISERR(SMALL(IF(PSTFS=0,ROW(INDIRECT("1:"&ROWS(Name)))),ROWS($1:1))),"",INDEX(Name,SMALL(IF(PSTFS=0,ROW(INDIRECT("1:"&ROWS(Name)))),ROWS($1:1))))

ctrl+shift+enter, not just enter
copy down

or this:
=IF(COUNTIF(PSTFS,0)>=ROWS($1:1),INDEX(Name,SMALL(IF(PSTFS=0,ROW(Name)-MIN(ROW(Name))+1,ROWS($1:1)),ROWS($1:1))),"")

ctrl+shift+enter, not just enter
copy down

"Diamonds_Mine" wrote:

> Below is a sample list; I need to extract or highlight names in Column A that
> have a zero value in column B, but if the name in Column A is listed multiple
> times and the value in column B is greater than zero, it should not be
> extracted or highlighted. So for the list below the result should be User 4
> and User 5. Thank you.
>
> Column A Column B
> Name PST Folder Size
> User 1 0
> User 2 15
> User 3 18
> User 1 22
> User 4 0
> User 5 0
>

 
Reply With Quote
 
=?Utf-8?B?VGVldGhsZXNzIG1hbWE=?=
Guest
Posts: n/a
 
      21st Jun 2007
Correction for second formula:

=IF(COUNTIF(PSTFS,0)>=ROWS($1:1),INDEX(Name,SMALL(IF(PSTFS=0,ROW(Name)-MIN(ROW(Name))+1),ROWS($1:1))),"")

ctrl+shift+enter, not just enter
copy down

"Teethless mama" wrote:

> Try Auto Filter or Advanced Filter are the best way to do. If you preferred
> the formula then
> try this:
> "Name" is a define name range
> "PSTFS" is a define name range
>
> =IF(ISERR(SMALL(IF(PSTFS=0,ROW(INDIRECT("1:"&ROWS(Name)))),ROWS($1:1))),"",INDEX(Name,SMALL(IF(PSTFS=0,ROW(INDIRECT("1:"&ROWS(Name)))),ROWS($1:1))))
>
> ctrl+shift+enter, not just enter
> copy down
>
> or this:
> =IF(COUNTIF(PSTFS,0)>=ROWS($1:1),INDEX(Name,SMALL(IF(PSTFS=0,ROW(Name)-MIN(ROW(Name))+1,ROWS($1:1)),ROWS($1:1))),"")
>
> ctrl+shift+enter, not just enter
> copy down
>
> "Diamonds_Mine" wrote:
>
> > Below is a sample list; I need to extract or highlight names in Column A that
> > have a zero value in column B, but if the name in Column A is listed multiple
> > times and the value in column B is greater than zero, it should not be
> > extracted or highlighted. So for the list below the result should be User 4
> > and User 5. Thank you.
> >
> > Column A Column B
> > Name PST Folder Size
> > User 1 0
> > User 2 15
> > User 3 18
> > User 1 22
> > User 4 0
> > User 5 0
> >

 
Reply With Quote
 
=?Utf-8?B?Ymo=?=
Guest
Posts: n/a
 
      21st Jun 2007
note that should have been sumif
=sumtif(A:A,A1,B:B)=0
"bj" wrote:

> select column A
> <format><conditional format>
> change value is to formula is
> =countif(A:A,A1,B:B)=0
> set format patterns to what you want
> occasionally I have to go back into conditional formatting and remove quote
> marks I do not want or change absolute and relative cell referencing as
> needed. i have never been able to truely identify why, but think I am
> probalbly just sloppy when I first do it.
>
> "Diamonds_Mine" wrote:
>
> > Below is a sample list; I need to extract or highlight names in Column A that
> > have a zero value in column B, but if the name in Column A is listed multiple
> > times and the value in column B is greater than zero, it should not be
> > extracted or highlighted. So for the list below the result should be User 4
> > and User 5. Thank you.
> >
> > Column A Column B
> > Name PST Folder Size
> > User 1 0
> > User 2 15
> > User 3 18
> > User 1 22
> > User 4 0
> > User 5 0
> >

 
Reply With Quote
 
T. Valko
Guest
Posts: n/a
 
      21st Jun 2007
Congratulations!

Biff

"Teethless mama" <(E-Mail Removed)> wrote in message
news:3810B988-6F26-4E08-9268-(E-Mail Removed)...
> Correction for second formula:
>
> =IF(COUNTIF(PSTFS,0)>=ROWS($1:1),INDEX(Name,SMALL(IF(PSTFS=0,ROW(Name)-MIN(ROW(Name))+1),ROWS($1:1))),"")
>
> ctrl+shift+enter, not just enter
> copy down
>
> "Teethless mama" wrote:
>
>> Try Auto Filter or Advanced Filter are the best way to do. If you
>> preferred
>> the formula then
>> try this:
>> "Name" is a define name range
>> "PSTFS" is a define name range
>>
>> =IF(ISERR(SMALL(IF(PSTFS=0,ROW(INDIRECT("1:"&ROWS(Name)))),ROWS($1:1))),"",INDEX(Name,SMALL(IF(PSTFS=0,ROW(INDIRECT("1:"&ROWS(Name)))),ROWS($1:1))))
>>
>> ctrl+shift+enter, not just enter
>> copy down
>>
>> or this:
>> =IF(COUNTIF(PSTFS,0)>=ROWS($1:1),INDEX(Name,SMALL(IF(PSTFS=0,ROW(Name)-MIN(ROW(Name))+1,ROWS($1:1)),ROWS($1:1))),"")
>>
>> ctrl+shift+enter, not just enter
>> copy down
>>
>> "Diamonds_Mine" wrote:
>>
>> > Below is a sample list; I need to extract or highlight names in Column
>> > A that
>> > have a zero value in column B, but if the name in Column A is listed
>> > multiple
>> > times and the value in column B is greater than zero, it should not be
>> > extracted or highlighted. So for the list below the result should be
>> > User 4
>> > and User 5. Thank you.
>> >
>> > Column A Column B
>> > Name PST Folder Size
>> > User 1 0
>> > User 2 15
>> > User 3 18
>> > User 1 22
>> > User 4 0
>> > User 5 0
>> >



 
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
VBA for comparing data within a range for Excel 2003 jmberner Microsoft Excel Programming 2 30th Dec 2009 03:49 PM
Importing Excel Data and Comparing to Existing Data Records Dean Microsoft Access 4 2nd Sep 2009 03:20 PM
Taking out unsubscribed emails by comparing 2 Excel files (Excel 2003) Julie - Excel beginner Microsoft Excel Misc 1 8th May 2007 06:41 PM
Comparing Data in Excel Pree Microsoft Excel Misc 1 7th Oct 2004 12:37 AM
Comparing Data in Excel Pree Microsoft Excel Misc 1 6th Oct 2004 04:26 PM


Features
 

Advertising
 

Newsgroups
 


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