Attempting to count the total of two drop down menus
Hello,
I have two drop down menus, one has company A, company B, Company C. the other drop down menu has option A, option B, option C. I need a cell to tally how many times company A gets option A, B, or C, how many times company B gets option A, B, or C etc.
currently I am using =countifs formula which works with option A, when I add option B to the parameters it always equals 0.
How can I tally all three options for each individual company?
thanks
Best Answer
-
Is this example what you're after?
Company A formula:
="Option A = " + COUNTIFS(Option:Option, ="Option A", Company:Company, ="Company A") + CHAR(10) + "Option B = " + COUNTIFS(Option:Option, ="Option B", Company:Company, ="Company A") + CHAR(10) + "Option C = " + COUNTIFS(Option:Option, ="Option C", Company:Company, ="Company A")
Company B formula:
="Option A = " + COUNTIFS(Option:Option, ="Option A", Company:Company, ="Company B") + CHAR(10) + "Option B = " + COUNTIFS(Option:Option, ="Option B", Company:Company, ="Company B") + CHAR(10) + "Option C = " + COUNTIFS(Option:Option, ="Option C", Company:Company, ="Company B")
Company C formula:
="Option A = " + COUNTIFS(Option:Option, ="Option A", Company:Company, ="Company C") + CHAR(10) + "Option B = " + COUNTIFS(Option:Option, ="Option B", Company:Company, ="Company C") + CHAR(10) + "Option C = " + COUNTIFS(Option:Option, ="Option C", Company:Company, ="Company C")
You will need to turn word wrap on for the Company A, B, and C columns but it doesn't matter how wide they are it'll put them under each other due to the CHAR(10) which is a carriage return.
Answers
-
Is this example what you're after?
Company A formula:
="Option A = " + COUNTIFS(Option:Option, ="Option A", Company:Company, ="Company A") + CHAR(10) + "Option B = " + COUNTIFS(Option:Option, ="Option B", Company:Company, ="Company A") + CHAR(10) + "Option C = " + COUNTIFS(Option:Option, ="Option C", Company:Company, ="Company A")
Company B formula:
="Option A = " + COUNTIFS(Option:Option, ="Option A", Company:Company, ="Company B") + CHAR(10) + "Option B = " + COUNTIFS(Option:Option, ="Option B", Company:Company, ="Company B") + CHAR(10) + "Option C = " + COUNTIFS(Option:Option, ="Option C", Company:Company, ="Company B")
Company C formula:
="Option A = " + COUNTIFS(Option:Option, ="Option A", Company:Company, ="Company C") + CHAR(10) + "Option B = " + COUNTIFS(Option:Option, ="Option B", Company:Company, ="Company C") + CHAR(10) + "Option C = " + COUNTIFS(Option:Option, ="Option C", Company:Company, ="Company C")
You will need to turn word wrap on for the Company A, B, and C columns but it doesn't matter how wide they are it'll put them under each other due to the CHAR(10) which is a carriage return.
-
If your dropdown columns are multi-select dropdowns then it'll be a different formula but still do-able I believe. As well, you could make the Company A, B, and C columns into Sheet Summary cells I believe instead.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 437 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!