Knockoutpie
Board Regular
- Joined
- Sep 10, 2018
- Messages
- 116
- Office Version
- 365
- Platform
- Windows
I put together this sumproduct formula which works to calculate total sales using a few critiera
The end result which works: Calculates total sales based on 3 criteria, month, year and brand.
How can I modify this formula to instead calculate the total unique cells (customers) in column Q in Sheet 2?
I assumed it would be as easy as modifying my sum array which is bold in the formula above but I have not figured it out.
If it helps, i do have two formulas which gives me the total unique cell count in the column, I just can't figure out how to add either into my formula..
=COUNTA(UNIQUE('Sheet2'!Q2:Q10000))
=SUMPRODUCT(1/COUNTIF('Sheet2'!Q2:Q27932,'Sheet2'!Q2:Q10000))
- Column G Sheet 2 : brand Name
- Cell A2 Sheet 1 = Brand name
- Column AE Sheet 2 = Transaction date column - which is converted to Year (B13) and Month (C1)
- Column AY Sheet 2 = Transaction value total
The end result which works: Calculates total sales based on 3 criteria, month, year and brand.
How can I modify this formula to instead calculate the total unique cells (customers) in column Q in Sheet 2?
I assumed it would be as easy as modifying my sum array which is bold in the formula above but I have not figured it out.
If it helps, i do have two formulas which gives me the total unique cell count in the column, I just can't figure out how to add either into my formula..
=COUNTA(UNIQUE('Sheet2'!Q2:Q10000))
=SUMPRODUCT(1/COUNTIF('Sheet2'!Q2:Q27932,'Sheet2'!Q2:Q10000))