+ Reply to Thread
Results 1 to 3 of 3

Comparing columns in 2 different worksheets, IF Function

  1. #1
    Laura
    Guest

    Comparing columns in 2 different worksheets, IF Function

    Hi there,

    I have two seperate worksheets, one contains external data related to all
    installs of our product in our customers stores. The other spreadsheet is an
    internal worksheet with all the information we have on all the stores. I need
    to see if there are any stores listed on the external worksheet that are not
    currently on our internal worksheet so that I can then copy the information
    over.

    Both worksheets use the same identifier and this is what I am trying to do
    the comparison on.

    I was told that the IF function could be used to do this, however, I cant
    get it to work.

    Any ideas?

  2. #2
    Valued Forum Contributor
    Join Date
    03-25-2004
    Location
    Boston, MA US
    Posts
    1,094
    Laura,

    Try this in your external data sheet. Insert a column to the right of your identifying column. In this case I used A as the Company identifier.

    =IF(ISERROR(INDEX(Internal!$A$1:$A$11,MATCH(external!A3,Internal!$A$1:$A$11,0))),"Not Found", "Found")

    This will put Found or Not Found based on your list of internal id's. If you want, you can then conditionally format the identifiers to color the row if Not Found is populated. Select the entire row and Format>Conditional Format>

    Formula is: =$B2="Not Found", select your formatting. Use the format painter to copy this down all of your rows making it easier to identify the missing data.

    HTH

    Steve

  3. #3
    Dave Peterson
    Guest

    Re: Comparing columns in 2 different worksheets, IF Function

    I would bet that the =match() portion is the part that's doing all the real
    work.

    maybe just checking that would be sufficient:

    =if(iserror(match(external!a3,internal!$a$1:$A$11,0)),"Not found","Found")

    SteveG wrote:
    >
    > Laura,
    >
    > Try this in your external data sheet. Insert a column to the right of
    > your identifying column. In this case I used A as the Company
    > identifier.
    >
    > =IF(ISERROR(INDEX(Internal!$A$1:$A$11,MATCH(external!A3,Internal!$A$1:$A$11,0))),"Not
    > Found", "Found")
    >
    > This will put Found or Not Found based on your list of internal id's.
    > If you want, you can then conditionally format the identifiers to color
    > the row if Not Found is populated. Select the entire row and
    > Format>Conditional Format>
    >
    > Formula is: =$B2="Not Found", select your formatting. Use the format
    > painter to copy this down all of your rows making it easier to identify
    > the missing data.
    >
    > HTH
    >
    > Steve
    >
    > --
    > SteveG
    > ------------------------------------------------------------------------
    > SteveG's Profile: http://www.excelforum.com/member.php...fo&userid=7571
    > View this thread: http://www.excelforum.com/showthread...hreadid=513377


    --

    Dave Peterson

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1