How to indicate the Top5 from a smartsheet with Case-insensitive criteria?
Hello! This is my second question here. The community was incredibly helpful for the first one! :)
- I want to pull the Top 5 Customers with more active projects from a project tracker (the user inputs project ID and from a data pool, the Customer Name and other info are pulled) to a dashboard chart. So far, I am using a Helper column on the tracker to identify unique values (customer names) with the following formulas.
ROW1: =COUNT(DISTINCT(Customer$1:Customer@row))
All other rows: =IF(COUNT(DISTINCT(Customer$1:Customer@row)) <> COUNT(DISTINCT(Customer$1:Customer1)), COUNT(DISTINCT(Customer$1:Customer@row)))
- In a different sheet, I am Listing all the identified Customers, counting the number of projects per customer, and then ranking them. Then I use a report to sort them and graph the Top 5.
PROJECT COUNT: =COUNTIFS({Tracker Customer Column}, = Customer@row, {Project Probability}, <>"Closed")
CUSTOMER RANK: =IF([Project Count]@row = 0, 0, RANKEQ([Project Count]@row, [Project Count]:[Project Count]) + COUNTIF([Project count]$1:[Project Count]@row, RANKEQ(@cell, [Project Count]:[Project Count]) = RANKEQ([Project Count]@row, [Project Count]:[Project Count])) - 1)
This is working great, but my problem is that in the data pool, one of the customers has their name registered with lower cases in one project, and with upper in the rest, so this happens:
1- The Helper column identifies upper and lower case projects as if they were different customers (case-sensitive)
2- The project count formula is case insensitive
So in my top 5 chart, I have one customer count repeated.
I want to fix this with one of the following options:
- a) Make the helper column case-insensitive. (Preferred)
- b) Make the count per customer case-sentsitive. (Accepted)
I have not managed to do any of them. Any thoughts?
I attack images to clarify. The problem is highlighted in red.
Thanks in advance!
Best Answer
-
To add to Paul's great (as usual) advice:
Add another hidden helper column in the source sheet that converts the data from the Customer column into all uppercase:
=UPPER(Customer@row)
Then use that helper column instead of the Customer column to select your distinct, get your counts, and do your ranking.
This way no matter how the user enters the customer name, as long as it's spelled correctly you'll have the same uppercase value to work off of automatically.
Regards,
Jeff Reisman
Link: Smartsheet Functions Help Pages Link: Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
Answers
-
Are they all actually entered as "CUSTOMER##" or is that just sample data for the screenshot with actual names being used?
-
@Paul Newcome All data on the picture is sample for screenshot.
The only input is the Project ID tho, the rest of the information (Actual names, costumers, etc) is pulled from a data pool that belongs to another team (which is why I can't change the case of the Costumer registered there).
-
My first suggestion would be to reach out to the other team to ensure consistency.
Aside from that, maybe try working a LOWER function into the formula you use to flag the distinct entries.
-
To add to Paul's great (as usual) advice:
Add another hidden helper column in the source sheet that converts the data from the Customer column into all uppercase:
=UPPER(Customer@row)
Then use that helper column instead of the Customer column to select your distinct, get your counts, and do your ranking.
This way no matter how the user enters the customer name, as long as it's spelled correctly you'll have the same uppercase value to work off of automatically.
Regards,
Jeff Reisman
Link: Smartsheet Functions Help Pages Link: Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
-
@Paul Newcome and @Jeff Reisman Such a simple solution, and I completely missed trying that before!
I ended up adding the UPPER function directly at the beginning of the formula on the "Project Name" column, so that I didn't have any other helper column! Thanks for your help!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.9K Get Help
- 410 Global Discussions
- 220 Industry Talk
- 458 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 136 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 298 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!