+ Reply to Thread
Results 1 to 5 of 5

Newbie - Search using dual criteria from one worksheet match on another worksheet return

  1. #1
    Registered User
    Join Date
    10-08-2013
    Location
    Northern Ireland
    MS-Off Ver
    Excel 2010
    Posts
    5

    Newbie - Search using dual criteria from one worksheet match on another worksheet return

    Sample Formula.xlsx - I have added a sample spreadsheet of what I am doing - I hope this helps make it clearer - thanks a mill.


    Hi Folks im new to excel and trying to figure out the best formula for the following;

    worksheet 1

    Column A = Numbers
    10
    32
    68

    Column B = Names
    Jim
    Jack
    John

    Column C = Formula -Currently using this with difficulty - =Sumproduct(--('Worksheet 2'!$A:$A=$A2),--('Worksheet 2'!$B:$B=$B2), 'Worksheet 2'!$C:$C)

    Worksheet 2 - A Pivot Table

    Column A = Numbers
    10
    12
    68

    Column B = Names
    Jim
    George
    John

    Column C = Values
    $100
    $150
    $10

    Ok so to me the above formula in work sheet 1 column c will take 10 from a1, find a match in worksheet 2 column a, then take jim from column b worksheet 1, then find a match in worksheet 2 column b and when both worksheet 2 column b match with worksheet 1 columns a and b the value from the corresponding cell in worksheet 2 will be returned to cell c work sheet 1. The results for this example if used over 3 cells would be, work sheet 1, c1=$100, c2=0 & c3=$10.

    I am new to this and have no idea how my formula works as I borrowed it from other examples but what I would like here is the most efficient way of carrying out the same task as I am suffering a lot with the "insufficient resource" errors.

    Any help greatly appreciated

    Thanks folks.
    Last edited by j7m1; 10-08-2013 at 01:15 PM. Reason: add attachment upon recommendation

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Newbie - Search using dual criteria from one worksheet match on another worksheet retu

    Can you attach a sample of your workbooks or a reasonable example?

    Your question and it's potential solution would be infinitely clearer if you presented something for us to work with, instead of relying on abstract thinking.

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Newbie - Search using dual criteria from one worksheet match on another worksheet retu

    Reduce your range from entire columns to only the length of rows needed for the calculation.

    =Sumproduct(--('Worksheet 2'!$A$1:$A$100=$A2),--('Worksheet 2'!$B$1:$B$100=$B2), 'Worksheet 2'!$C$1:$C$100)



    An alternate function you can use is SUMIFS:

    =SUMIFS('Worksheet 2'!$C$1:$C$100, 'Worksheet 2'!$A$1:$A$100, $A2, 'Worksheet 2'!$B$1:$B$100, $B2)
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  4. #4
    Registered User
    Join Date
    10-08-2013
    Location
    Northern Ireland
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Newbie - Search using dual criteria from one worksheet match on another worksheet retu

    Thanks a mill for the quck reply, the reason I went with whole column is the range will change each month but if you feel this helps with the "insufficient resources" errors then I will make it happen and hopefully not see that error anymore.

    Thanks again

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Newbie - Search using dual criteria from one worksheet match on another worksheet retu

    Try switching to SUMIFS for whole column references, it's probably a wee bit more efficient.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. Replies: 7
    Last Post: 08-04-2013, 03:41 PM
  2. Search for Multiple Criteria and Return all Rows that Match.
    By Kimston in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-29-2013, 11:46 AM
  3. [SOLVED] How to return multiple values that match a single search criteria?
    By JSallen in forum Excel General
    Replies: 4
    Last Post: 11-28-2012, 11:49 AM
  4. [SOLVED] INDEX-MATCH function return '0' if search criteria not found
    By Ben.SFM in forum Excel General
    Replies: 2
    Last Post: 04-27-2012, 01:46 PM
  5. Dual Lookup/Vlookup/Match criteria
    By jj72uk in forum Excel General
    Replies: 6
    Last Post: 10-16-2009, 04:03 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