+ Reply to Thread
Results 1 to 2 of 2

Question in Finding a Value Within a Set Between Two Data Source

  1. #1
    Registered User
    Join Date
    12-07-2015
    Location
    My House
    MS-Off Ver
    2013
    Posts
    3

    Question in Finding a Value Within a Set Between Two Data Source

    Hi All,

    I asked this question yesterday and after JohnTopley masterfully explained and gave the answer, I forgot to add an important part to making this formula work. I tried sending JohnTopley a PM, but the system is acting weird. The original post was below:

    http://www.excelforum.com/excel-form...ml#post4257647

    The part that I did not fully explain is follows:

    Data Set 1
    Store #- Loc #- SKU
    1A-------- 1------- W1
    1A-------- 1------- W2
    1A-------- 1------- W3
    1B-------- 1------- W3
    2A-------- 2------- W3
    2A-------- 2------- W4

    Data Set 2
    Loc #- SKU
    1------ W1
    1------ W2
    1------ W3
    1------ W4
    2------ W3
    2------ W4

    What I’m trying to accomplish is for the rule to first scan Store # for all matching then isolate the data into that group. This is where my original idea of, =IF(B2=B1,A1,IF(A1=1,0,1)) came from. So with in this case the logic will only first pick up on the 1A because they all share the same store #:

    Data Set 1
    Store #- Loc #- SKU
    1A-------- 1------- W1
    1A-------- 1------- W2
    1A-------- 1------- W3

    The only thing that matches both Data Sets 1 and 2 is the Loc #. After focusing on the three listed stores that share the same store #, then it will check with a vlookup or a match if the location from Data Set 2 has the SKU from Data Set 1

    Data Set 2
    Loc #- SKU
    1------ W1 Caught
    1------ W2 Caught
    1------ W3 Caught
    1------ W4 Missing
    2------ W3
    2------ W4

    Data Set 1
    Store #- Loc #- SKU
    1A-------- 1------- W1
    1A-------- 1------- W2
    1A-------- 1------- W3

    This process repeats for every unique Store # that shares value. Sorry for the lack of information and I apologize to JohnTopley for not explaining the problem fully and wasting his time on the first help. Thank you all in advance.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,208

    Re: Question in Finding a Value Within a Set Between Two Data Source

    Me again! First, no apology necessary.

    See the attached for a possible approach.

    It select all records for a given store and then does the compare.

    Extract for store uses ...

    IFERROR(INDEX(B$2:B$100,SMALL(IF($A$2:$A$100=$I$1,ROW($A$2:$A$100)-ROW($A$2)+1,""),ROWS($A$2:A2))),"")

    and SKU ,,

    =IFERROR(INDEX(C$2:C$100,SMALL(IF($A$2:$A$100=$I$1,ROW($A$2:$A$100)-ROW($A$2)+1,""),ROWS($A$2:B2))),"")



    The comparison uses ...

    =IFERROR(IF(MATCH(E2&F2,$J$2:$J$20&$K$2:$K$20,0),"Caught"),IF(E2<>$I$2,"","Missing"))

    ALL formulae entered with Ctrl+SHift+Enter (Array formulae).

    Changing Store in I1 will automatically update the extract list in J & K
    Attached Files Attached Files
    Last edited by JohnTopley; 12-09-2015 at 07:08 AM.

+ 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. Help with finding source of formula data
    By ubelongoutside in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-22-2015, 06:07 PM
  2. [SOLVED] Chart Data Source Question
    By cluelessnomad in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-20-2014, 12:13 PM
  3. [SOLVED] The Source currently evaluates to an error - Data Validation Question
    By aarikarenaa in forum Excel General
    Replies: 1
    Last Post: 04-28-2014, 03:07 PM
  4. [SOLVED] finding source data
    By piperhammy in forum Excel General
    Replies: 3
    Last Post: 12-13-2012, 05:29 PM
  5. Issue with finding data source using CurDir
    By Arsi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-13-2011, 03:15 PM
  6. Chart Question :: Page through source data ???
    By mantic in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 11-02-2006, 01:29 AM
  7. [SOLVED] Question about source data for chart
    By Peter in forum Excel General
    Replies: 1
    Last Post: 09-06-2005, 07:05 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