Hi have 2 sheets
I am trying to find with the sumifs and sum all the number of touches that match the company name ... but i also want to add a second constraint - which is only sum if the touches are Before the date of the opportunity. I tried to put x lookup twice - but somehow it does not work...
I wonder if anyone can help refining the formula (if there is a formula that can actually do this at all!)
Or MInisheet 1
MINISHEET 2
I am trying to find with the sumifs and sum all the number of touches that match the company name ... but i also want to add a second constraint - which is only sum if the touches are Before the date of the opportunity. I tried to put x lookup twice - but somehow it does not work...
I wonder if anyone can help refining the formula (if there is a formula that can actually do this at all!)
Or MInisheet 1
helpforsumif.xlsx | ||||||
---|---|---|---|---|---|---|
A | B | C | D | |||
1 | COMPANY | OPPORTUNITY | CREATED DATE | NUMBER OF TOUCHES | ||
2 | ABC | Laptops | 01/12/2022 | no match | ||
3 | DEF | Servers | 01/01/2023 | 8 | ||
4 | GHI | Servers | 01/03/2023 | no match | ||
5 | SLM | Software | 01/05/2023 | no match | ||
OPPS |
Cell Formulas | ||
---|---|---|
Range | Formula | |
D2,D4:D5 | D2 | =XLOOKUP(A:A,'PIVOT FOR SUMIFS'!A:A,'PIVOT FOR SUMIFS'!C:C,"no match",FALSE) |
D3 | D3 | =SUMIFS('PIVOT FOR SUMIFS'!C:C,'PIVOT FOR SUMIFS'!A:A,XLOOKUP(A:A,'PIVOT FOR SUMIFS'!A:A,'PIVOT FOR SUMIFS'!A:A,"no match",FALSE)) |
MINISHEET 2
helpforsumif.xlsx | |||||
---|---|---|---|---|---|
A | B | C | |||
1 | COMPANY | Touch DATE | TOUCHES | ||
2 | DEF | 01/12/2022 | 2 | ||
3 | DEF | 23/12/2022 | 3 | ||
4 | DEF | 04/03/2023 | 3 | ||
PIVOT FOR SUMIFS |