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

  • Jeff Reisman
    Jeff Reisman ✭✭✭✭✭✭
    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

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!