sharky12345
Well-known Member
- Joined
- Aug 5, 2010
- Messages
- 3,404
- Office Version
- 2016
- Platform
- Windows
I've got this formula which counts the unique values in column A on the condition that the text in column E matches the criteria NORTH:
I really need this to be done by VBA though as the workbook is already quite large and I'm trying to reduce the amount of formulas used.
Can anyone assist please?
=SUM(IF("NORTH"='AUG CR'!$E$2:$E$45453, 1/(COUNTIFS('AUG CR'!$E$2:$E$45453, "NORTH",'AUG CR'!$A$2:$A$45453, 'AUG CR'!$A$2:$A$45453)), 0))
I really need this to be done by VBA though as the workbook is already quite large and I'm trying to reduce the amount of formulas used.
Can anyone assist please?