Count credentials in a list

Turn BSN, RN into 2, counting each item between commas.

What you'll make

In Excel: BSN, RN becomes 2 credentials.

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesResult so far
1TRIM(A8)=""Checks if the cell is empty or only spaces.FALSE
20The count for an empty cell.Not used for row 8
3TEXTSPLIT(A8,",")Splits the list at each comma."BSN", " RN"
4COLUMNS( … )Counts the pieces from part 3.2
5IF( … )Gives part 2 if part 1 is true, otherwise part 4.2

TEXTSPLIT works first, then COLUMNS counts. Repeats count twice.

=IF(TRIM(A8)="",0,COLUMNS(TEXTSPLIT(A8,",")))

How to use it

Yellow bar at the top? Click Enable Editing.

  1. See it work. The Example tab shows 20 made-up examples with the formula already in.
  2. Use your own credentials. Paste lists like BSN, RN into the green column of the Template tab. The counts fill in by themselves.
  3. Move them into your letter. Copy the results. Then use Paste Special and choose Values.

Before you send

Check for doubled or trailing commas, like RN,,BSN. Each one adds an empty item to the count.

Microsoft's help: COLUMNS function