How to decode Excel error messages Formula Friday #6 Formula...
Read MoreMore like this
How to use the LEFT and RIGHT Functions
How to use the LEFT and RIGHT Functions Formula Friday...
Read MoreI love thee for having COUNT, COUNTIF and COUNTIFS functions. So I can summarise my data and find new insights.
I was struggling to make that work but I think you get my drift.
I won’t say the COUNT Functions are underrated. Because there is probably someone reading this who takes full advantage of them. But I will say they are underused.
COUNT Functions count thing. However, it’s important to note, COUNT, COUNTIF and COUNTIFS will count numerical values by default. COUNTIF and COUNTIFS can count non-numerical values when those values are specified.
If you just want to count text, use COUNTA. And if you want to count blank cells use COUNTBLANK.
And if you want to count the number of characters in a piece if text, use LEN.
That should have covered all bases for common count requirements. Everyone else left reading this should be interested in COUNT – who counts one thing, COUNTIF – who will count something that matches a specific criteria and COUNTIFS – who will count something that matches multiple criteria.
The formula is nice and simple =COUNT([select range]).
Just to say again, the COUNT function will only count numerical values.
In the example below I have attempted to count how many categories are within a department and the formula does not work
However when I use the COUNTA function it does work.
Let’s say we want to count how many options have been put on the line detail for each category.
In this example our formula would look like this:
=COUNTIF(LD!$J$11:$J$817,Sheet1!B3)
The COUNTIF Function is the step above a COUNT. A range has to be set, to define where Excel needs to count. In this example our range is on the LD Tab, column J row 11 to row 817. Then we need to tell Excel what to count.
By using a COUNTIF we can now count non-numerical values of a specific type.
Which is the most superior option. It allows you to count multiple options based on different criteria.
So let’s say we wanted to see the different colour options for each category on our line detail.
Your formula would look like this
=COUNTIFS(LD!$J$11:$J$817,Sheet1!C$30,LD!$N$11:$N$817,Sheet1!$B31)
And you can add as many criteria as you want. Each time you just need to specify where Excel needs to count first and then what Excel needs to count. The extra criteria we added here was for colour. Which is in column N on the LD tab.
Oh and before I forget to say, you need to make sure your lookup ranges are the same “length”. For example here we are looking at category and colour. Both of the criteria ranges are from row 11 to 187. If I accidentally missed a row or selected one too many rows the formula would not work. I would get that lovely #VALUE! error which tells you so much about what’s wrong with the formula…
Soon you too will be counting the multiple ways you love (or love to hate) Excel. In the meantime if you have any questions about how you can start using the COUNT Functions, drop me a line.
Until next time.
Ax
Finding an exact match for your needs on the internet can, at times, feel like trying to find the missing pair to your odd sock. You know it’s in the drawer somewhere, but you just can’t see it for love nor money. That’s where I can help, think of me as your Excel Agony Aunt, send in your lonely heart letters and I will find your perfect formula partner.
I can help bring your ideas to life. Let’s talk about what we can build together.
How to decode Excel error messages Formula Friday #6 Formula...
Read MoreHow to use the LEFT and RIGHT Functions Formula Friday...
Read MoreCookie | Duration | Description |
---|---|---|
cookielawinfo-checkbox-advertisement | 1 year | Set by the GDPR Cookie Consent plugin, this cookie is used to record the user consent for the cookies in the "Advertisement" category . |
cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
CookieLawInfoConsent | 1 year | Records the default button state of the corresponding category & the status of CCPA. It works only in coordination with the primary cookie. |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |
Cookie | Duration | Description |
---|---|---|
_ga | 2 years | The _ga cookie, installed by Google Analytics, calculates visitor, session and campaign data and also keeps track of site usage for the site's analytics report. The cookie stores information anonymously and assigns a randomly generated number to recognize unique visitors. |
_ga_EQQNC0TZ45 | 2 years | This cookie is installed by Google Analytics. |
_gat_gtag_UA_206306690_1 | 1 minute | Set by Google to distinguish users. |
_gid | 1 day | Installed by Google Analytics, _gid cookie stores information on how visitors use a website, while also creating an analytics report of the website's performance. Some of the data that are collected include the number of visitors, their source, and the pages they visit anonymously. |