PC Review


Reply
Thread Tools Rate Thread

comparing values

 
 
JusMe
Guest
Posts: n/a
 
      27th Feb 2008
column E in sheet A has values, a different one in each row (ranging from 50
to 500 values, depending on workbook we're working in)

column T in sheet B has values, thousands of them
the contents of sheetB are delivered by an external source

values in colT / sheetB should be named in colE / sheetA (theory)
there are values in colT / sheetB that are not present in colE / sheetA
(practice)

these need to be pointed out so after that it can be decided to discard
these lines or add the value to colE / sheetA

I want to run code to check the values of colT/sheetB
if a value in colT/sheetB isn't present in colE / SheetA then it should
print the value in the current (different) sheet

I've tried a few things now ~ I'm taking a wrong turn somewhere
any good ideas out there?
 
Reply With Quote
 
 
 
 
DTLay
Guest
Posts: n/a
 
      27th Feb 2008
You could try running an IF statement in sheet b where the if value is a
vlookup on column E sheet A with a "false" range lookup, and the then value
equal to the cell value in column t sheet b.

Or maybe a conditional formatting statement to highlight the cell if a
vlookup returns a null value.

"JusMe" wrote:

> column E in sheet A has values, a different one in each row (ranging from 50
> to 500 values, depending on workbook we're working in)
>
> column T in sheet B has values, thousands of them
> the contents of sheetB are delivered by an external source
>
> values in colT / sheetB should be named in colE / sheetA (theory)
> there are values in colT / sheetB that are not present in colE / sheetA
> (practice)
>
> these need to be pointed out so after that it can be decided to discard
> these lines or add the value to colE / sheetA
>
> I want to run code to check the values of colT/sheetB
> if a value in colT/sheetB isn't present in colE / SheetA then it should
> print the value in the current (different) sheet
>
> I've tried a few things now ~ I'm taking a wrong turn somewhere
> any good ideas out there?

 
Reply With Quote
 
JusMe
Guest
Posts: n/a
 
      27th Feb 2008

Been playing around with it for a while longer and got what I wanted,
including MsgBoxes telling how many will be discarded and which values they
represent ....

Thanx for the input. At first I went with an IF(ISNA ....) with VLOOKUPs,
but that required action from the person working on the sheet. Since quite a
few of them are managers .... not a good option.

All they have to do when they get the sheet now is press a button ....
that should help



"DTLay" wrote:

> You could try running an IF statement in sheet b where the if value is a
> vlookup on column E sheet A with a "false" range lookup, and the then value
> equal to the cell value in column t sheet b.
>
> Or maybe a conditional formatting statement to highlight the cell if a
> vlookup returns a null value.
>
> "JusMe" wrote:
>
> > column E in sheet A has values, a different one in each row (ranging from 50
> > to 500 values, depending on workbook we're working in)
> >
> > column T in sheet B has values, thousands of them
> > the contents of sheetB are delivered by an external source
> >
> > values in colT / sheetB should be named in colE / sheetA (theory)
> > there are values in colT / sheetB that are not present in colE / sheetA
> > (practice)
> >
> > these need to be pointed out so after that it can be decided to discard
> > these lines or add the value to colE / sheetA
> >
> > I want to run code to check the values of colT/sheetB
> > if a value in colT/sheetB isn't present in colE / SheetA then it should
> > print the value in the current (different) sheet
> >
> > I've tried a few things now ~ I'm taking a wrong turn somewhere
> > any good ideas out there?

 
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
Help with Comparing values and retrieving values in Excel!!!!!! zabedi@gmail.com Microsoft Excel Worksheet Functions 1 17th Nov 2006 12:21 AM
Comparing values in two columns and displaying missing values in n =?Utf-8?B?Y3BldHRh?= Microsoft Excel Programming 1 2nd Apr 2005 06:18 AM
Graph - comparing values of 2 series while adding an attribute for each compared values Chen G Microsoft Excel Charting 2 1st Nov 2004 07:08 PM
Graph - comparing values of 2 series while adding an attribute for each compared values Chen G Microsoft Excel Misc 1 1st Nov 2004 02:44 AM
Comparing values in same field to return only first unique values =?Utf-8?B?U0Q=?= Microsoft Access Queries 4 27th Oct 2004 08:24 AM


Features
 

Advertising
 

Newsgroups
 


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