PC Review


Reply
Thread Tools Rate Thread

Comparing/Matching two columns

 
 
shress
Guest
Posts: n/a
 
      23rd Aug 2008
Hi,

I am stuck with a problem. I need to compare two columns. one with ZIP and
other with street names. A Single ZIP has numerous streent names. Is there a
function which will say if the address is Right or Wrong?
for example:
11000 Apple Street <Right>
11000 Banana Street <Right>
11000 Mango Street <Wrong>

and so on

Thanks,
 
Reply With Quote
 
 
 
 
Barb Reinhardt
Guest
Posts: n/a
 
      23rd Aug 2008
How does the function determine if it's right or wrong?
--
HTH,
Barb Reinhardt



"shress" wrote:

> Hi,
>
> I am stuck with a problem. I need to compare two columns. one with ZIP and
> other with street names. A Single ZIP has numerous streent names. Is there a
> function which will say if the address is Right or Wrong?
> for example:
> 11000 Apple Street <Right>
> 11000 Banana Street <Right>
> 11000 Mango Street <Wrong>
>
> and so on
>
> Thanks,

 
Reply With Quote
 
Lars-Åke Aspelin
Guest
Posts: n/a
 
      23rd Aug 2008
On Sat, 23 Aug 2008 14:00:00 -0700, shress
<(E-Mail Removed)> wrote:

>Hi,
>
>I am stuck with a problem. I need to compare two columns. one with ZIP and
>other with street names. A Single ZIP has numerous streent names. Is there a
>function which will say if the address is Right or Wrong?
>for example:
>11000 Apple Street <Right>
>11000 Banana Street <Right>
>11000 Mango Street <Wrong>
>
>and so on
>
>Thanks,


Try this formula in cell C1:

=IF(SUMPRODUCT((Sheet2!A$1:A$1000=A1)*(Sheet2!B$1:B$1000=B1))=0,"<Wrong>","<Right>")

Sheet2 is the name of the sheet where you put all possible ZIP codes
in column A and the correspoonding Street names in column B.
Increase the 1000 if you data takes more than 1000 rows.

Hope this helps / Lars-Åke

 
Reply With Quote
 
shress
Guest
Posts: n/a
 
      23rd Aug 2008


"smartin" wrote:

> shress wrote:
> > Hi,
> >
> > I am stuck with a problem. I need to compare two columns. one with ZIP and
> > other with street names. A Single ZIP has numerous streent names. Is there a
> > function which will say if the address is Right or Wrong?
> > for example:
> > 11000 Apple Street <Right>
> > 11000 Banana Street <Right>
> > 11000 Mango Street <Wrong>
> >
> > and so on
> >
> > Thanks,

>
> Do you have a table somewhere with valid zip/street combinations?
>

Hi, I have one table with valid zip/street combinations.
And I have got another bigger table which contails both valid and invalid
zip/street combinations and also lots of repetitions. I am trying to find out
those invalid addresses based on the correct table.

Thanks
 
Reply With Quote
 
shress
Guest
Posts: n/a
 
      24th Aug 2008
Thanks Lars,

It worked well.

Regards,

"Lars-Ã…ke Aspelin" wrote:

> On Sat, 23 Aug 2008 14:00:00 -0700, shress
> <(E-Mail Removed)> wrote:
>
> >Hi,
> >
> >I am stuck with a problem. I need to compare two columns. one with ZIP and
> >other with street names. A Single ZIP has numerous streent names. Is there a
> >function which will say if the address is Right or Wrong?
> >for example:
> >11000 Apple Street <Right>
> >11000 Banana Street <Right>
> >11000 Mango Street <Wrong>
> >
> >and so on
> >
> >Thanks,

>
> Try this formula in cell C1:
>
> =IF(SUMPRODUCT((Sheet2!A$1:A$1000=A1)*(Sheet2!B$1:B$1000=B1))=0,"<Wrong>","<Right>")
>
> Sheet2 is the name of the sheet where you put all possible ZIP codes
> in column A and the correspoonding Street names in column B.
> Increase the 1000 if you data takes more than 1000 rows.
>
> Hope this helps / Lars-Ã…ke
>
>

 
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
Comparing two columns and finding matching names =?Utf-8?B?ZXhjZWxpc3N1ZQ==?= Microsoft Excel Worksheet Functions 1 12th Oct 2007 12:53 AM
Comparing/Matching Values in multiple columns =?Utf-8?B?QnVkZHlC?= Microsoft Excel Programming 1 26th Feb 2005 07:41 PM
comparing numbers in two columns matching them and showing the ones that dont match mike Microsoft Excel Worksheet Functions 2 16th Oct 2004 08:43 PM
Re: comparing matching same values in two different columns Frank Kabel Microsoft Excel Worksheet Functions 0 10th Aug 2004 09:27 PM
Comparing and matching data of two columns not of the same size (countif?) Londonderry Microsoft Excel Worksheet Functions 3 23rd Mar 2004 04:38 PM


Features
 

Advertising
 

Newsgroups
 


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