+ Reply to Thread
Results 1 to 14 of 14

How to connect different criteria among 3 sheets?

Hybrid View

  1. #1
    Registered User
    Join Date
    12-09-2017
    Location
    Latvia
    MS-Off Ver
    10
    Posts
    7

    Question How to connect different criteria among 3 sheets?

    I have a workbook with 3 sheets that i'm hoping to tie together.
    sheet 1 is overview, list of salespeople and their monthly sales, in total.
    sheet 2 is parameters of each item sold: id number, seller, client, various costs etc
    sheet 3 is huge amount of data specifying compensation amounts from the manufacturer. each item sold can have up to 20 different entries.

    connection between 1 and 2 is salesperson's name
    connection between 2 and 3 is unique id of each item

    i need to get compensation amounts applicable to each salesperson in current month from 3 as a sum to 1


    Do you, kind people, have any ideas?

    I can't figure this out.
    Attached Files Attached Files
    Last edited by Zeltene; 12-09-2017 at 06:11 PM.

  2. #2
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: How to connect different criteria among 3 sheets?

    unclear
    what do you expect to see and why?

  3. #3
    Registered User
    Join Date
    12-09-2017
    Location
    Latvia
    MS-Off Ver
    10
    Posts
    7

    Re: How to connect different criteria among 3 sheets?

    I added same mock-up data to make it clearer.
    I expect to see relevant sum from sheet 'compensation' in sheet 'summary' D:D.
    as you can see, each item has a unique id which is used by manufacturer as indicator for compensation amounts issued.
    I cannot add any data into sheet 'summary'. That would be easy but that is the thing that I'm not allowed to do. So I'm trying to find a way a

    Here's a link to the file:
    https://www.dropbox.com/s/2mwmqz07qs...ook1.xlsx?dl=0
    Attached Files Attached Files
    Last edited by Zeltene; 12-09-2017 at 06:10 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
    30,696

    Re: How to connect different criteria among 3 sheets?

    I used a "helper" column : column I in "Sales" but this can be any column you choose and can be hidden

    in I2 in "Sales"

    =SUMPRODUCT((Compensation!$A$2:$E$169=$A2)*(MONTH($B$2:$B$169)=11)*(Compensation!$D$2:$D$169))

    copy down

    The highlighted value (11 for November) is the month and would be better if you placed it in a cell: it appears compensation can vary with date.


    In "Summary"

    in D2

    =SUMPRODUCT((Sales!$D$2:$D$15=Summary!A2)*(Sales!$I$2:$I$15))

    OR

    =SUMIFS(Sales!$I:$I,Sales!$D:$D,Summary!A2)

    Copy down

    I note you multiple Product ID entries with the same date/same value: very confusing !?
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    12-09-2017
    Location
    Latvia
    MS-Off Ver
    10
    Posts
    7

    Re: How to connect different criteria among 3 sheets?

    Thank you for the reply. Unfortunately, this didn't help.

    1) I can't add any 'helper' columns in 'sales'. I'm trying to find a way around it, that's the whole point. If I could, this wouldn't be a problem I can't solve.

    2) SUMPRODUCT formula you tried in 'sales' does not work correctly. It does not give the sum of all compensations received during current month for each item sold. See for yourself, I added corrected sums.

    As it is, many items can receive several compensations on the same date and in the same amount. That's how it works. I can receive 500 amounts in one day for 37 items sold, and those items do not necessarily have to be sold in the same month. There could be 47 amounts scattered there for 5 items sold in, say, August.
    In reality I'm working with huge amount of data where sheet 'compensations' contains data for 18 months with some 15000 rows.

    The question is, is there any way I can get compensation amount DIRECTLY from 'compensations' to 'summary'?
    Attached Files Attached Files

  6. #6
    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
    30,696

    Re: How to connect different criteria among 3 sheets?

    Attach a file here as many respondent do want to visit file-hosting sites...

    Attach a sample workbook (not image).

    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.

  7. #7
    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
    30,696

    Re: How to connect different criteria among 3 sheets?

    In D2

    =SUMPRODUCT((Sales!$D$2:$D$15=Summary!A2)*(Sales!$I$2:$I$15))

    in I2 of "Sales" (was in column J)

    =SUMPRODUCT((Compensation!$D$2:$D$169)*(Compensation!$A$2:$A$169=$A2)*(Compensation!$B$2:$B$169>=Summary!$K$1)*(Compensation!$B$2:$B$169<=EOMONTH(Summary!$K$1,0)))

    this will correct the formula.

    Second, the "helper" column(s) can be in a separate sheet: I cannot find a way to do this without "helper" column(s) BUT I'll leave it to the other experts to look at..

    However, with 15000 rows, then the [potential] use of array formulae (as a solution) will adversely impact on performance so do not dismiss using "helper" columns.

  8. #8
    Registered User
    Join Date
    12-09-2017
    Location
    Latvia
    MS-Off Ver
    10
    Posts
    7

    Re: How to connect different criteria among 3 sheets?

    Thank you!
    Yes, this does give correct amounts.
    The issue with 'helper' columns remains. I can't figure this out, too.

    Thank you for your input!
    I hope someone might still have a bright idea how to solve my problem.

  9. #9
    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
    30,696

    Re: How to connect different criteria among 3 sheets?

    The issue with 'helper' columns remains. I can't figure this out, too.

    ..... meaning ???

  10. #10
    Registered User
    Join Date
    12-09-2017
    Location
    Latvia
    MS-Off Ver
    10
    Posts
    7

    Re: How to connect different criteria among 3 sheets?

    Quote Originally Posted by JohnTopley View Post
    ..... meaning ???
    Meaning, neither you nor I can't figure out a way to avoid them. :-)

  11. #11
    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
    30,696

    Re: How to connect different criteria among 3 sheets?

    ... OK

    ... but why the reluctance to use them: they can be the most effective and efficient solution to problems like yours.

  12. #12
    Registered User
    Join Date
    12-09-2017
    Location
    Latvia
    MS-Off Ver
    10
    Posts
    7

    Re: How to connect different criteria among 3 sheets?

    Quote Originally Posted by JohnTopley View Post
    ... OK

    ... but why the reluctance to use them: they can be the most effective and efficient solution to problems like yours.
    Because I work with, well, idiots.
    If I change 1 thing in their usual template it will cause mass mayhem and confusion.

  13. #13
    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
    30,696

    Re: How to connect different criteria among 3 sheets?

    Put the "Helpers" in hidden sheet ???

  14. #14
    Registered User
    Join Date
    12-09-2017
    Location
    Latvia
    MS-Off Ver
    10
    Posts
    7

    Re: How to connect different criteria among 3 sheets?

    Quote Originally Posted by JohnTopley View Post
    Put the "Helpers" in hidden sheet ???
    I guess I'll try that. Let's hope it works, and no one looses their minds. :-)
    Thank you!

+ 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. [SOLVED] Automaticly connect content from other sheets
    By bee88 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-26-2015, 04:18 PM
  2. [SOLVED] Connect values from sheets to a drop-down list
    By hungry4more in forum Excel Formulas & Functions
    Replies: 26
    Last Post: 11-30-2014, 02:14 PM
  3. [SOLVED] Macro to connect different rows on different sheets
    By dlevisay in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-20-2014, 11:55 AM
  4. Replies: 1
    Last Post: 10-04-2013, 04:21 AM
  5. [SOLVED] Need formula to connect sheets
    By besmir in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 02-25-2013, 01:41 PM
  6. [SOLVED] How to connect the data in two sheets in one book?
    By freeSky in forum Excel General
    Replies: 10
    Last Post: 10-04-2012, 03:01 AM
  7. How do I connect 2 Excel Sheets to give auto answer on the 3rd
    By Maca in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-01-2005, 09:05 AM

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