+ Reply to Thread
Results 1 to 3 of 3

Searching a column for a value and returning corresponding values on multiple sheets

  1. #1
    Registered User
    Join Date
    09-12-2011
    Location
    Netherlands
    MS-Off Ver
    Excel 2003
    Posts
    7

    Searching a column for a value and returning corresponding values on multiple sheets

    Hi,

    Here is an example to demonstrate what I would like to do:

    Say I have 2 columns on the first sheet -

    Sheet 1:

    column 1----column 2
    ---a------------1----
    ---b------------2----
    ---c------------3----
    ---d------------4----
    ---a------------5----
    ---c------------6----
    ---a------------7----
    ---b------------8----

    The customers are marked with a,b,c etc. The products are given a number.
    I would like to make sheets for every customer (a,b etc) and search for every matching product for that particular customer. So I am going to work on multiple sheets, I would have used VLOOKUP but this formula does not give multiple results, and I cannot use an array formaula because it has to work on multiple sheets
    New customers and products will be added on the way, so it has to have a dynamic structure.


    Example:

    Sheet 2 .
    A
    ----1----
    ----5----
    ----7----


    Sheet 3
    B
    ----2----
    ----8----

    I hope someone can advice me on this matter or knows a formula that might do the job?

    Thanks!
    Last edited by idemdito; 09-15-2011 at 07:48 AM.

  2. #2
    Forum Contributor
    Join Date
    01-28-2010
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2003
    Posts
    157

    Re: Searching a column for a value and returning corresponding values on multiple she

    Quote Originally Posted by idemdito View Post
    and I cannot use an array formaula because it has to work on multiple sheets
    It can be done with an array formula because it is the same formula in each customer sheet and they all refer to the same Sheet1...
    Please Login or Register  to view this content.
    Where Customer is the cells on Sheet1 with the customer names [Refers to:=OFFSET(Sheet1!$A$2,,,COUNTA(Sheet1!$A:$A)-1,1)] and Product is the cells on Sheet1 with the Product codes [Refers to:=OFFSET(Sheet1!$B$2,,,COUNTA(Sheet1!$A:$A)-1,1)]
    These are dynamic named ranges. As more Customers and Products are added to Sheet1 the ranges adapt to the include them.

    Beau Nydal
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    09-12-2011
    Location
    Netherlands
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Searching a column for a value and returning corresponding values on multiple she

    @ beaunydal


    Thanks...... this is the solution. Appreciate it...

    Forgot about working with Name Ranges, already tried an array formula but I did not get it to work. Now it works like a charm...

+ 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