+ Reply to Thread
Results 1 to 11 of 11

Excel - Sum if multiple values that meet criteria from two tables

Hybrid View

  1. #1
    Registered User
    Join Date
    11-04-2017
    Location
    Brisbane, Australia
    MS-Off Ver
    Microsoft Office 2016
    Posts
    6

    Excel - Sum if multiple values that meet criteria from two tables

    Have tried numerous options to accomplish the following task without success

    - lookup a recipe in a column in the recipebook and sum all the non blank cells in that row if the corresponding individual column header (ingredients) meets certain criteria (halal, from australia etc)?

    i have tried this previously and cannot get it to work

    IF(SUM(MMULT(IF(ingredientslist=IF(OFFSET(ingredientsrow,MATCH(recipe,recipelist,0),0)<>"",ingredientsrow),1,0),ROW(ingredientslist)^0)*IF(origincolumn="Australia",1,0))=COUNTA(OFFSET(ingredientsrow,MATCH(thisrecipe,recipelist,0),0)),"Yes","No")

    Would appreciate any suggestions.

    Thank you
    Last edited by 7527amanda; 11-04-2017 at 11:23 PM.

  2. #2
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,999

    Re: Excel - Sum if multiple values that meet criteria from two tables

    You attached file XL doesn't seems the same file which pic you have uploaded? Do upload a sample file. Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  3. #3
    Registered User
    Join Date
    11-04-2017
    Location
    Brisbane, Australia
    MS-Off Ver
    Microsoft Office 2016
    Posts
    6

    Re: Excel - Sum if multiple values that meet criteria from two tables

    Hello,

    thank you for the reply

    I have a specification sheet where I need to say a product claim i.e. halal, australian. The information is drawn from two other workbooks but have placed them together in the attached.

    I need to look up the recipe in the "recipesheet" and sum the ingredient values of each ingredient(shown in column header of recipesheet)if it satisfies a criteria. Criteria i.e. austtralian by looking up the ingredient in ingredientmatrix.

    This formula goes into a specification sheet i.e. %|australian ingredients or yes|halal etc

    Does that make sense?
    Last edited by 7527amanda; 11-07-2017 at 05:03 PM.

  4. #4
    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
    31,005

    Re: Excel - Sum if multiple values that meet criteria from two tables

    Please sample expected results for your file.

  5. #5
    Registered User
    Join Date
    11-04-2017
    Location
    Brisbane, Australia
    MS-Off Ver
    Microsoft Office 2016
    Posts
    6

    Re: Excel - Sum if multiple values that meet criteria from two tables

    Hi,

    I have updated the attached file with a semi blank specification sheet to which the final values will go (note that most values are blank as the links are missing).

    I need may two formulas as some will require further calculations such as sumif and some will just require a "suitable" or "not-suitable" result:

    - to look up each in the receipesheet i.e. nbc and sum all of the ingredients i.e. r0005 in that recipe row if all the ingredients in that recipe according to the ingredientmatrix meet the criteria i.e. australian
    - to look up each in the receipesheet i.e. nbc and if all of the ingredients i.e. r0005 in that recipe row according to the ingredientmatrix meet the criteria i.e. halal, vegan. then provide an answer.

    thanks

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,327

    Re: Excel - Sum if multiple values that meet criteria from two tables

    The product information sheet is full of #REF! and #N/A errors as it is referring to another workbook. Please attach again with these values pasterd in as values, not formulae.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  7. #7
    Registered User
    Join Date
    11-04-2017
    Location
    Brisbane, Australia
    MS-Off Ver
    Microsoft Office 2016
    Posts
    6

    Re: Excel - Sum if multiple values that meet criteria from two tables

    Hi,

    thanks for looking

    I was reminded to remove all proprietary information and as this is a specification sheet that is what is contains. The spreadsheet is actually too large and it is linked to 3 other workbooks and contains multiple sheets containing proprietary information. I cannot move any of workbooks without the data being dereferenced.

    All other information and formula are working as they should, the only two I can't work out are as described below with the expected results highlighted in the specification sheet.

    Could you advise what other information you were looking for?

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,327

    Re: Excel - Sum if multiple values that meet criteria from two tables

    The contents of cell A2 would be useful.

  9. #9
    Registered User
    Join Date
    11-04-2017
    Location
    Brisbane, Australia
    MS-Off Ver
    Microsoft Office 2016
    Posts
    6
    A1 os the finished product code and a2 is the description. The formulas just draw this information from a specification table.
    Last edited by AliGW; 11-06-2017 at 05:25 AM. Reason: Unnecessary quotation removed.

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,327

    Re: Excel - Sum if multiple values that meet criteria from two tables

    So what should/could they be? Please provide values. Remember that all of this is obvious to you, but we are just seeing error messages.

  11. #11
    Registered User
    Join Date
    11-04-2017
    Location
    Brisbane, Australia
    MS-Off Ver
    Microsoft Office 2016
    Posts
    6

    Re: Excel - Sum if multiple values that meet criteria from two tables

    I have updated the attached file but please understand that having all the other irrelevant information available will make everything confusing to another user not familiar with the company and the requirements. The specification sheet is quite complicated and is linked to and drawing information from 10 worksheets in 3 workbooks.

    The only two formulas that will go into the specifcation sheet that I require the ones that need to look up the recipesheet and ingredientmatrix and return values.

    Hope this helps

+ 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. Top 5 values if they meet a criteria
    By dianasada in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-14-2017, 02:51 PM
  2. [SOLVED] Counting cells that meet multiple single criteria as variable criteria
    By BillBasil in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-01-2016, 10:33 AM
  3. how to add all values above row that meet multiple criteria criteria
    By skikio in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-18-2015, 09:40 AM
  4. [SOLVED] Lookup Values which meet two or more criteria and return multiple matches horizontally
    By josetmg in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-03-2015, 01:16 AM
  5. [SOLVED] How to return all corresponding values that meet 2 criteria in excel
    By sgw_73 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-18-2014, 10:49 AM
  6. Counting unique values that meet multiple criteria
    By msworkman in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-08-2013, 11:15 PM
  7. Replies: 5
    Last Post: 03-13-2012, 06:05 AM

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