How to Do a Case Sensitive DSUM in Google Sheets

Are you struggling to perform a case sensitive DSUM in Google Sheets? Look no further! In this tutorial, I’ll guide you through the process step by step. Although the Query function can achieve the same result, I understand that some of you prefer using DSUM. So, let’s dive right in!

The Power of DSUM

Before we begin, let’s talk about the essence of every tutorial: well-oriented data. DSUM is a powerful database function that allows you to sum values based on specific criteria. In the case of a case insensitive DSUM, it’s fairly simple. You can use the formula =DSUM(A3:G8,7,A1:A2) to sum column G whenever the criterion in column A matches.

Going Case Sensitive

Now, let’s make things a little more interesting by making it case sensitive. To achieve this, we’ll create a virtual database using an ARRAYFORMULA. It may sound complex, but trust me, it’s not as intimidating as it seems. Here’s the formula:

=DSUM( ARRAYFORMULA({A3:G3;{ARRAYFORMULA((FIND(A2,A4:A8))),B4:G8}}) ,7 ,{A1;1} )

Formula Explanation

The ARRAYFORMULA part acts as our virtual ‘database’. It combines the header row (A3:G3) with the values obtained from column B to G (except column A) (B4:G8). This creates a virtual database that we can work with.

To make our DSUM case sensitive, we use the FIND function in an array form. This function checks for matches in the range A4:A8 and returns an array of values. The FIND function is case sensitive, meaning it will return 1 if a match is found and an error if no match is found.

The next step involves connecting all the elements with curly brackets to create an array. With our virtual database ready, we can now apply the DSUM formula as usual. However, instead of using the criteria range A1:A2, we replace the criterion “IL102B” with 1.

{A1;1}

This simple adjustment allows us to perform a case sensitive DSUM just like the original formula. And there you have it, a case sensitive DSUM formula in Google Sheets!

But don’t worry if this seems a bit overwhelming. I’ve got you covered with a link to my Google Spreadsheet at the end of this tutorial, where you can check the formula in action.

Expand Your Knowledge

Now that you’ve mastered the case sensitive DSUM formula, it’s time to broaden your Google Sheets expertise. Here are some related resources that will take your skills to the next level:

To further enhance your Google Sheets skills and explore more tutorials like this one, visit Crawlan.com. Happy spreadsheeting!

Related posts