+ Reply to Thread
Results 1 to 3 of 3

Find value depending on two values from different sheet

  1. #1
    Forum Contributor
    Join Date
    01-11-2013
    Location
    Sweden
    MS-Off Ver
    MS 365
    Posts
    188

    Find value depending on two values from different sheet

    Hi,

    I got stuck. Hope for some assistance.

    I have two sheets, "Data" and "Product-Custnr".

    In the "Data" sheet is a list of customer number and their diffrent products related to the customer number. Each customer number may have more than one product related to it. For every product a customer number has there is a new row so customer number may be on many rows but the product will differ from row to row .

    In the "Product-Custnr" sheet I have all the unique customer numbers in a list (vertical) and in the header I have all the products (horizontal). In "Product-Custnr" i need to make a list of every product that a customer nr has. If a customer number has the product that are placed in G1:AV1 i want that product number to appear.

    I find it a bit hard to explain. Please see attached file. For example see row 4 in "Product-Custnr". For customer number in C4 (nr 65061), that customer number has in sheet "Data" two products F5 (OK370026) and F6 (GRFTG370). I want that to get in the column for that product in sheet "Product-Custnr", T1 is OK370026 and AO1 is GRFTG370 and I need them to be written on row 4 so on T4 there should be OK370026 and on AO4 there should be GRFTG370. This is marked green in the attached file so I think you understand what i am trying to do if you take a look at that. Really hope that somone can help me!

    /Masun
    Attached Files Attached Files

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Find value depending on two values from different sheet

    hi Masun. try this in G2:
    =IF(COUNTIFS(DATA!$A:$A,$C2,DATA!$F:$F,G$1),G$1,"")

    copy down & across

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Forum Contributor
    Join Date
    01-11-2013
    Location
    Sweden
    MS-Off Ver
    MS 365
    Posts
    188

    Re: Find value depending on two values from different sheet

    benishiryo,

    Many thanks! Works great!

    /Masun

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Macro to insert cell values in another sheet depending on value and format
    By adw223 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-27-2013, 03:57 PM
  2. Replies: 4
    Last Post: 07-15-2013, 09:07 AM
  3. [SOLVED] Sorting data from a master sheet to multiple sheets depending on values in a given column
    By kodos10 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 05-30-2013, 05:46 AM
  4. Replies: 1
    Last Post: 05-15-2013, 09:51 PM
  5. [SOLVED] deleting rows depending on values on another sheet
    By ghynes in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-07-2013, 07:16 PM

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