+ Reply to Thread
Results 1 to 14 of 14

SUMIFS with multiple criteria on a different tab

  1. #1
    Registered User
    Join Date
    09-17-2019
    Location
    Fort Worth, TX
    MS-Off Ver
    2016
    Posts
    38

    SUMIFS with multiple criteria on a different tab

    I am trying to extract the numbers from my data tab on the attachment. I need Excel to first look up the store number in the data tab, like 4201-DE4201 in A3, then look for the number 31 in column A but just under 4201-DE4201 and bring back the data in column E back to the sales tab. I have 2 helper columns in the sales tab to use for the 2 lookup items.
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: SUMIFS with multiple criteria on a different tab

    Before deciding the best approach it would help and simplify things if the Store number was on every row in a new first column in the Data sheet, or better still the store number concatenated with the current numeric in column A
    e.g.

    4201-DE4201_1
    4201-DE4201_2
    4201-DE4201_25

    Are you able/willing to make this small change.

    What's the significance of the number 31 and why are you only interested in #31?
    To where in the Sales sheet do you want to bring the Data Column E value?
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,986

    Re: SUMIFS with multiple criteria on a different tab

    The data layout in Data is pretty horrible... but this might do the job:

    =IFERROR(INDEX(Data!$E$3:$E$600,MATCH(Sales!K3,Data!$A$3:$A$600,0)+MATCH(J3,Data!$A$4:$A$37,0)),"")

    in sales, L3, copied down. If not, please don't show us a non-working formula, show us a few rows of manually calculated results...
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,986

    Re: SUMIFS with multiple criteria on a different tab

    BtW, my approach will ONLY work if the subheading numbers (31, etc) are ALWAYS the same for each of these things: 4201-DE4201

    If the reality is different, then your data layout in data is REALLY horrible... and needs to be changed.

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: SUMIFS with multiple criteria on a different tab

    I agree Glenn.

    The numbers in Sales column A are not consistent from Shop to Shop and as you say the data layout is far from ideal for analysis.

  6. #6
    Registered User
    Join Date
    09-17-2019
    Location
    Fort Worth, TX
    MS-Off Ver
    2016
    Posts
    38

    Re: SUMIFS with multiple criteria on a different tab

    The data sheet comes like that. I copied and pasted the data from a different file. The number 31 is under each store number and column E across from 31 is the data I need. I will be replicating the formula for the rest of the stores in the list. I have not inputted their info in the 2 helper columns yet. I am just starting with 1 store to figure out the formula first. Under each store number there are quite a few different data items. The data items are numbered under each store and the number corresponds to the products in column B. The dollar amounts in column E is what I need for each individual store.

  7. #7
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: SUMIFS with multiple criteria on a different tab

    OK,

    Then insert a NEW column A in the Data and in A4 enter
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    and copy it down.

    Then in whichever column of the Sales sheet you want to record the Labour figure add in row 3 copied down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    09-17-2019
    Location
    Fort Worth, TX
    MS-Off Ver
    2016
    Posts
    38

    Re: SUMIFS with multiple criteria on a different tab

    The 2nd formula came back with #N/A instead of a result. I looked and I know there is a result for that store. I have attached the 2 spreadsheets created with the 2 options given by different people. The file I receive is what it is and I have to make do with it somehow.

  9. #9
    Registered User
    Join Date
    09-17-2019
    Location
    Fort Worth, TX
    MS-Off Ver
    2016
    Posts
    38

    Re: SUMIFS with multiple criteria on a different tab

    I did this and it worked for some but not all. I know the info on the data tab is very mixed up but that is how I receive it.

  10. #10
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: SUMIFS with multiple criteria on a different tab

    Quote Originally Posted by tdbarber View Post
    TI have attached the 2 spreadsheets created with the 2 options given by different people. The file I receive is what it is and I have to make do with it somehow.
    Hi,

    The files weren't attached...

  11. #11
    Registered User
    Join Date
    09-17-2019
    Location
    Fort Worth, TX
    MS-Off Ver
    2016
    Posts
    38

    Re: SUMIFS with multiple criteria on a different tab

    I was out of the office yesterday and have now attached the files
    Attached Files Attached Files

  12. #12
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,986

    Re: SUMIFS with multiple criteria on a different tab

    If it's the labour costs, from column F:

    =VLOOKUP(K3&"_"&J3,Data!$A:$F,6,FALSE)

    Richard's approach was correct.. but for the omission of ,FALSE
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    09-17-2019
    Location
    Fort Worth, TX
    MS-Off Ver
    2016
    Posts
    38

    Re: SUMIFS with multiple criteria on a different tab

    That worked perfectly! Thanks to all!

  14. #14
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,986

    Re: SUMIFS with multiple criteria on a different tab

    You're welcome.



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

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

+ 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: 0
    Last Post: 08-22-2017, 03:49 PM
  2. Replies: 3
    Last Post: 02-02-2017, 04:32 AM
  3. [SOLVED] SUMIFS with multiple criteria WITH specified dynamic range criteria
    By dluhut in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-20-2017, 11:03 AM
  4. Sumifs with multiple criteria and criteria in same column
    By Kathryn012 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-17-2017, 07:48 AM
  5. How to sum SUMIFS - multiple criteria for one criteria range???
    By trstew in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-06-2016, 02:37 PM
  6. Replies: 3
    Last Post: 11-21-2012, 04:57 PM
  7. Replies: 1
    Last Post: 05-16-2011, 05:00 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