carpetony
New Member
- Joined
- May 26, 2008
- Messages
- 14
- Office Version
- 365
- Platform
- Windows
- Mobile
I have one large table, I want to summarize via CountIf, the number of entries in other columns associated to the specific companies.
I need to create the summary table on the fly with VBA, and was hoping to have to input the fewest functions necessary, and was hoping it could do a Vertical and Horizontal Spill of my CountIf functions.
I can create the dynamic list of UNIQUE(Companies) in Column L, and now want to dynamically get the counts of the subsequent columns D thru H. CountIf works with # (hash) to dynamically fill in my values for a single column, but it falters for the subsequent columns. I was wondering if there was something I was missing or could do. I want to leave out to of the columns, and was planning on doing a ChooseCols to omit those, rather than dragging the function or entering it multiple times.
This spill functions works. and I can drag to the right. . .
M2 is =COUNTIFS($B$3:$B$200,$L2#,D$3:D$200,"<>")
However. . .
N2 is =COUNTIFS($B$3:$B$200,$L2#,D$3:H$200,"<>")
Returns #VALUE! errors for the Spill.
Looking at it, I can kind of understand why it doesn't. . .but can't think of anyway to get it to work.
Not the end of the world, this would just be a nice thing, and ended up being a rabbit hole.
Thanks!
I need to create the summary table on the fly with VBA, and was hoping to have to input the fewest functions necessary, and was hoping it could do a Vertical and Horizontal Spill of my CountIf functions.
I can create the dynamic list of UNIQUE(Companies) in Column L, and now want to dynamically get the counts of the subsequent columns D thru H. CountIf works with # (hash) to dynamically fill in my values for a single column, but it falters for the subsequent columns. I was wondering if there was something I was missing or could do. I want to leave out to of the columns, and was planning on doing a ChooseCols to omit those, rather than dragging the function or entering it multiple times.
This spill functions works. and I can drag to the right. . .
M2 is =COUNTIFS($B$3:$B$200,$L2#,D$3:D$200,"<>")
However. . .
N2 is =COUNTIFS($B$3:$B$200,$L2#,D$3:H$200,"<>")
Returns #VALUE! errors for the Spill.
Looking at it, I can kind of understand why it doesn't. . .but can't think of anyway to get it to work.
Not the end of the world, this would just be a nice thing, and ended up being a rabbit hole.
Thanks!