+ Reply to Thread
Results 1 to 4 of 4

Searching Multiple rows and Columns

  1. #1
    Registered User
    Join Date
    10-23-2012
    Location
    Wisconsin
    MS-Off Ver
    Excel 2010
    Posts
    6

    Searching Multiple rows and Columns

    I have a complex problem. I have three sheets in my workbook that I'm using. We can call them Sheet1, Sheet2, and Sheet3. On Sheet1 I have several main cities with zip codes. I need to see if the zipcode from sheet1 is found on sheet2. The problem is on Sheet2 the info is listed like this

    Chicago 54654 56454 54541
    NY 45465 54545 45546
    Boston 54545 25456 25454

    The same zipcode could be found under different cities.

    Then I need to take the full Row of zipcodes that the zipcode from sheet1 is found in.

    Example: If the zipcode on sheet1 was 54545 then it would take all three of the NY zip codes and all three of the Boston zipcodes. The 6 numbers are then ran against a different list of zipcodes on Sheet3 and counted how many times any of the six zipcodes come up.

    This is all one formula and the output is on Sheet1.

    Any suggestions?

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Searching Multiple rows and Columns

    My first suggestion is not to try to do it all in one formula. If you're worried about appearances, you can always hide columns.

    Are the zips on sheet2 in a single cell or across columns. If they are across columns, what is the range (i.e B:D, B:J)?
    How are the zips in sheet3 set up? What range?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    10-23-2012
    Location
    Wisconsin
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Searching Multiple rows and Columns

    The range of the zipcodes on Sheet2 varies. The city is found in column 1 and the zipcodes are listed in the columns to the left. The number of columns depends on the city.
    In Sheet3 the zipcode is found in column E ranging from row 3 to row 704, but that may increase in the future.

  4. #4
    Registered User
    Join Date
    10-23-2012
    Location
    Wisconsin
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Searching Multiple rows and Columns

    I have attached a simple worksheet to show what I'm trying to do. On Sheet1 Row 1 it will take the zipcode '11111' and look it up on Sheet2. Since it is found in Row1 it will take all 4 zipcodes in that row. It will then take those for zipcodes and count how many times they appear on Sheet3. So if you did Row2 on Sheet1 it would take the zipcode '22222' and find it in Sheet2. Since it's found on two seperate rows it takes all 7 zipcodes and finds how many times they are found on Sheet3. Copy of Book1.xlsx
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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