Stephen_IV
Well-known Member
- Joined
- Mar 17, 2003
- Messages
- 1,180
- Office Version
- 365
- 2019
- Platform
- Windows
Is there another way to approch this. I am trying to count multiple items in different columns with one key. right now I am using,
dic.Add cell.Value, cell.Value & "|" & WorksheetFunction.CountIfs(Range("A:A"), cell.Value, Range("B:B"), "<>") & "|" & WorksheetFunction.CountIfs(Range("A:A"), cell.Value, Range("C:C"), "<>")
Any help would be great! Thanks.
dic.Add cell.Value, cell.Value & "|" & WorksheetFunction.CountIfs(Range("A:A"), cell.Value, Range("B:B"), "<>") & "|" & WorksheetFunction.CountIfs(Range("A:A"), cell.Value, Range("C:C"), "<>")
Any help would be great! Thanks.
VBA Code:
|