Formula to add additional names to Sumifs list?

Coyotex3

Well-known Member
Joined
Dec 12, 2021
Messages
507
Office Version
  1. 365
Platform
  1. Windows
Hello guys, so I have a sheet with the following datasets:

PERSONAL.xlsm
ABCDEFGH
Sheet3
PERSONAL.xlsm
ABCDEFGHI
1ContributorCustomerAmountCustomerProfitIndividual 1Individual 2Individual 3
2Individual 1Client A100Client A930100130450
3Individual 2Client B200Client B19501502001500
4Individual 3Client C300Client C650250100300
5Individual 4Client A250
6Individual 1Client B150
7Individual 2Client C100
8Individual 3Client A450
9Individual 4Client B100
10Individual 1Client C250
11Individual 2Client A130
12Individual 3Client B1500
Sheet3
Cell Formulas
RangeFormula
F2:F4F2=SUMIFS(Table1[Amount],Table1[Customer],E2)
G2:I2,H3:I4G2=SUMIFS(Table1[Amount],Table1[Customer],$E2,Table1[Contributor],G$1)
G3:G4G3=SUMIFS(Table1[Amount],Table1[Customer],E3,Table1[Contributor],G$1)
The dataset on the left is updated daily and I would like to be able to dynamically update the dataset with the formula to account for any new clustomers which Individuals 1-3 worked with?
PERSONAL.xlsm
ABCDEFGHI
1ContributorCustomerAmountCustomerProfitIndividual 1Individual 2Individual 3
2Individual 1Client A100Client A1030100130450
3Individual 2Client B200Client B23001502001500
4Individual 3Client C300Client C773250100300
5Individual 4Client A250Client D10002000300
6Individual 1Client B150Client E75002500
7Individual 2Client C100
8Individual 3Client A450
9Individual 4Client B100
10Individual 1Client C250
11Individual 2Client A130
12Individual 3Client B1500
13Individual 4Client C123
14Individual 5Client A100
15Individual 6Client E500
16Individual 7Client D400
17Individual 5Client B350
18Individual 6Client F200
19Individual 7Client G250
20Individual 5Client F350
21Individual 6Client G205
22Individual 7Client D100
23Individual 1Client D200
24Individual 2Client E250
25Individual 3Client D300
Sheet3
Cell Formulas
RangeFormula
F2:F6F2=SUMIFS(Table1[Amount],Table1[Customer],E2)
G2:I2,H3:I6G2=SUMIFS(Table1[Amount],Table1[Customer],$E2,Table1[Contributor],G$1)
G3:G6G3=SUMIFS(Table1[Amount],Table1[Customer],E3,Table1[Contributor],G$1)
Lastly, if possible, would there be a way of seeing if any outside contributor(4-7) worked with Customer(A-C) on a separate list?
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
To answer the first part, add this formula to Cell G1 and remove the headers from H1 to the right
=TRANSPOSE(UNIQUE(Table1[Contributor]))
 
Upvote 0
To answer the first part, add this formula to Cell G1 and remove the headers from H1 to the right
=TRANSPOSE(UNIQUE(Table1[Contributor]))
Hi Jeffrey, adding this formula to Cell G1 gives me a unique list of contributors. I only want to see the additional contributors *IF* they worked on any of the original customers which would be Clients A,B, and C on the list. I would like to see the additional contributors displayed on a separate list.
 
Upvote 0
This, of course, includes all the possible combinations, but you could parse out the needed data.

Book5
PQR
1ContributorClientCombo Count
2Individual 1Client A1
3Individual 2Client B1
4Individual 3Client C1
5Individual 4Client A1
6Individual 1Client B1
7Individual 2Client C1
8Individual 3Client A1
9Individual 4Client B1
10Individual 1Client C1
11Individual 2Client A1
12Individual 3Client B1
13Individual 4Client C1
14Individual 5Client A1
15Individual 6Client E1
16Individual 7Client D2
17Individual 5Client B1
18Individual 6Client F1
19Individual 7Client G1
20Individual 5Client F1
21Individual 6Client G1
22Individual 1Client D1
23Individual 2Client E1
24Individual 3Client D1
Sheet1
Cell Formulas
RangeFormula
P2:Q24P2=UNIQUE(Table1[[Contributor]:[Customer]])
R2:R24R2=COUNTIFS(Table1[Contributor],P2,Table1[Customer],Q2)
Dynamic array formulas.
 
Upvote 1
I had to add another column to your table to help with know that a client was an original client in the formula. So the formula in H1 uses that column to filter the Contributors

Book5
ABCDEFGHIJKL
1ContributorCustomerAmountOriginal ClientCustomerProfitIndividual 1Individual 2Individual 3Individual 4Individual 5
2Individual 1Client A100TRUEClient A1030100130450250100
3Individual 2Client B200TRUEClient B23001502001500100350
4Individual 3Client C300TRUEClient C7732501003001230
5Individual 4Client A250TRUEClient D1000200030000
6Individual 1Client B150TRUEClient E7500250000
Sheet1
Cell Formulas
RangeFormula
H1:L1H1=TRANSPOSE(UNIQUE(FILTER(Table1[Contributor],Table1[Original Client]=TRUE,"")))
G2:G6G2=SUMIFS(Table1[Amount],Table1[Customer],F2)
H2:L6H2=SUMIFS(Table1[Amount],Table1[Customer],$F2,Table1[Contributor],H$1)
D2:D6D2=OR([@Customer]="Client A",[@Customer]="Client B",[@Customer]="Client C")
Dynamic array formulas.
 
Upvote 1
Another option for your 1st question
Fluff.xlsm
ABCDEFGHI
1ContributorCustomerAmountCustomerProfitIndividual 1Individual 2Individual 3
2Individual 1Client A100Client A1030100130450
3Individual 2Client B200Client B23001502001500
4Individual 3Client C300Client C773250100300
5Individual 4Client A250Client D10002000300
6Individual 1Client B150Client E75002500
7Individual 2Client C100
8Individual 3Client A450
9Individual 4Client B100
10Individual 1Client C250
11Individual 2Client A130
12Individual 3Client B1500
13Individual 4Client C123
14Individual 5Client A100
15Individual 6Client E500
16Individual 7Client D400
17Individual 5Client B350
18Individual 6Client F200
19Individual 7Client G250
20Individual 5Client F350
21Individual 6Client G205
22Individual 7Client D100
23Individual 1Client D200
24Individual 2Client E250
25Individual 3Client D300
Master
Cell Formulas
RangeFormula
E2:E6E2=UNIQUE(FILTER(Table1[Customer],ISNUMBER(XMATCH(Table1[Contributor],G1:I1))))
F2:F6F2=SUMIFS(Table1[Amount],Table1[Customer],E2#)
G2:G6G2=SUMIFS(Table1[Amount],Table1[Customer],E2#,Table1[Contributor],G1)
H2:H6H2=SUMIFS(Table1[Amount],Table1[Customer],E2#,Table1[Contributor],H1)
I2:I6I2=SUMIFS(Table1[Amount],Table1[Customer],E2#,Table1[Contributor],I1)
Dynamic array formulas.
 
Upvote 0
Solution
For the 2nd part how about
Fluff.xlsm
ABCDEFGHI
1ContributorCustomerAmountCustomerProfitIndividual 1Individual 2Individual 3
2Individual 1Client A100Client A1030100130450
3Individual 2Client B200Client B23001502001500
4Individual 3Client C300Client C773250100300
5Individual 4Client A250Client D10002000300
6Individual 1Client B150Client E75002500
7Individual 2Client C100
8Individual 3Client A450
9Individual 4Client B100
10Individual 1Client C250
11Individual 2Client A130Individual 4Client A
12Individual 3Client B1500Individual 5Client A
13Individual 4Client C123Individual 4Client B
14Individual 5Client A100Individual 5Client B
15Individual 6Client E500Individual 4Client C
16Individual 7Client D400Individual 7Client D
17Individual 5Client B350Individual 7Client D
18Individual 6Client F200Individual 6Client E
19Individual 7Client G250
20Individual 5Client F350
21Individual 6Client G205
22Individual 7Client D100
23Individual 1Client D200
24Individual 2Client E250
25Individual 3Client D300
Master
Cell Formulas
RangeFormula
E2:E6E2=UNIQUE(FILTER(Table1[Customer],ISNUMBER(XMATCH(Table1[Contributor],G1:I1))))
F2:F6F2=SUMIFS(Table1[Amount],Table1[Customer],E2#)
G2:G6G2=SUMIFS(Table1[Amount],Table1[Customer],E2#,Table1[Contributor],G1)
H2:H6H2=SUMIFS(Table1[Amount],Table1[Customer],E2#,Table1[Contributor],H1)
I2:I6I2=SUMIFS(Table1[Amount],Table1[Customer],E2#,Table1[Contributor],I1)
E11:F18E11=SORT(FILTER(Table1[[Contributor]:[Customer]],(ISNUMBER(XMATCH(Table1[Customer],E2#)))*(ISNA(XMATCH(Table1[Contributor],G1:I1)))),2)
Dynamic array formulas.
 
Upvote 1
I had to add another column to your table to help with know that a client was an original client in the formula. So the formula in H1 uses that column to filter the Contributors

Book5
ABCDEFGHIJKL
1ContributorCustomerAmountOriginal ClientCustomerProfitIndividual 1Individual 2Individual 3Individual 4Individual 5
2Individual 1Client A100TRUEClient A1030100130450250100
3Individual 2Client B200TRUEClient B23001502001500100350
4Individual 3Client C300TRUEClient C7732501003001230
5Individual 4Client A250TRUEClient D1000200030000
6Individual 1Client B150TRUEClient E7500250000
Sheet1
Cell Formulas
RangeFormula
H1:L1H1=TRANSPOSE(UNIQUE(FILTER(Table1[Contributor],Table1[Original Client]=TRUE,"")))
G2:G6G2=SUMIFS(Table1[Amount],Table1[Customer],F2)
H2:L6H2=SUMIFS(Table1[Amount],Table1[Customer],$F2,Table1[Contributor],H$1)
D2:D6D2=OR([@Customer]="Client A",[@Customer]="Client B",[@Customer]="Client C")
Dynamic array formulas.
Hi Jeffrey, thank you for this! This almost gets us to what I was going for. Fluff's solution below used a formula on Column E to account for all the customers the contributors worked with.
 
Upvote 0
Another option for your 1st question
Fluff.xlsm
ABCDEFGHI
1ContributorCustomerAmountCustomerProfitIndividual 1Individual 2Individual 3
2Individual 1Client A100Client A1030100130450
3Individual 2Client B200Client B23001502001500
4Individual 3Client C300Client C773250100300
5Individual 4Client A250Client D10002000300
6Individual 1Client B150Client E75002500
7Individual 2Client C100
8Individual 3Client A450
9Individual 4Client B100
10Individual 1Client C250
11Individual 2Client A130
12Individual 3Client B1500
13Individual 4Client C123
14Individual 5Client A100
15Individual 6Client E500
16Individual 7Client D400
17Individual 5Client B350
18Individual 6Client F200
19Individual 7Client G250
20Individual 5Client F350
21Individual 6Client G205
22Individual 7Client D100
23Individual 1Client D200
24Individual 2Client E250
25Individual 3Client D300
Master
Cell Formulas
RangeFormula
E2:E6E2=UNIQUE(FILTER(Table1[Customer],ISNUMBER(XMATCH(Table1[Contributor],G1:I1))))
F2:F6F2=SUMIFS(Table1[Amount],Table1[Customer],E2#)
G2:G6G2=SUMIFS(Table1[Amount],Table1[Customer],E2#,Table1[Contributor],G1)
H2:H6H2=SUMIFS(Table1[Amount],Table1[Customer],E2#,Table1[Contributor],H1)
I2:I6I2=SUMIFS(Table1[Amount],Table1[Customer],E2#,Table1[Contributor],I1)
Dynamic array formulas.
Fluff, thank you for your help once more! This is perfect and accomplishes what I was trying to accomplish.

As a side note(open ended), do you think there is a more efficient way of accomplishing what I'm trying to do? The data on the right does not need to follow a specific format. Essentially I have is a list of my team members and a list of my clients(Individuals 1-3, and Clients 1-3). And I would just like to account for an instance where other team members work on my clients, and when my team members work on clients that are not on my list. The only way I could think of accomplishing this was by setting up the data in the method above. Open to more efficient methods if any.

Thank you!
 
Upvote 0
You maybe better of with PQ or pivots, but I don't know anything about them so could be wrong.
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top