+ Reply to Thread
Results 1 to 4 of 4

Find, Match

  1. #1
    Registered User
    Join Date
    01-30-2013
    Location
    san diego
    MS-Off Ver
    excel 2007
    Posts
    3

    Cool Find, Match

    Hello to all,

    I am working on a work related project in materials. Cutting to the chase...

    I have two separate worksheets, The first one goes as follows:



    P/N Location
    1 B
    1 A
    1 A
    1 A
    1 A
    2 B
    2 C
    2 D
    3 X
    3 Y
    3 Z

    etc....


    My second worksheet

    2 B
    2 C
    2 D


    What I am trying to do is, Part Number 2 can exist in location B,C,D. By looking at the first spreedsheet, I want excel to find that 2 is located in B. If that holds true then on my second spreadsheet it will spit out a 1 in the next column over (C).

    I attempted to make a if statement, it went as follows =if(and(!sheet2A1=!sheet1A1:A9,!sheet2B1=!sheet1B1:B9),"1",na())



    I also attempted a vlookup but my spreadsheet is dynamic therefore I cannot have it be solely depended on specific cells, I need a find function to it.

    Thank you in advance.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Find, Match

    Not sure which way round you want this, so if I have it the wrong way round, just change the references...

    In column C on sheet 1 i used =A1&B1 to combine the data.

    then in column C on sheet2, i used this
    =IF(ISTEXT(VLOOKUP(A1&B1,Sheet1!$C$1:$C$11,1)),1,"")
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    01-30-2013
    Location
    san diego
    MS-Off Ver
    excel 2007
    Posts
    3

    Re: Find, Match

    Thank you for replying so quickly.

    I kept getting an error with this formula....

    In addition, for the vlookup shouldnt it consist of the entire data array on spreadsheet 1?

  4. #4
    Registered User
    Join Date
    01-30-2013
    Location
    san diego
    MS-Off Ver
    excel 2007
    Posts
    3

    Re: Find, Match

    Disregard my previous reply...

    FDibbins,

    With the formula that you presented me the argument is always going to be true.

    What would be the method of:

    1) Find my combination of i.e. 2B (A1&B1) in Sheet 1 from Sheet 2
    2) say that that combination exsists by giving me a 1 in sheet 2.

    Thank you in advance.

+ 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