Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I export data from an application to Excel sheets.

The first column of the exported data (Column A) has some information, but contains text like 16.1 or 16.1.1, etc. I need to create a column right next to it, containing the "level", which is calculated by the number of dots.

For example, for 16.1.1 the level is 2, or for the level is 3.

share|improve this question

You can use the following formula to count the . in the cell.


Copy the formula to the rest of the cells in the column to get result for each row.

enter image description here

share|improve this answer
+1 Clever solution! – Excellll Jul 26 '12 at 15:14

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .