![]() |
counting a certain character
I have a cell with this the following data in it:
0800_______________________ 00000001 00005212 00012312 I would like to count the number of "_" in the cell. I have tried the countif(A1,"*_*") but I only get a return of 1 count. I would like to know how many of the "_" there are in the cell. Thanks for the help. |
counting a certain character
Try,
=LEN(A1)-LEN(SUBSTITUTE(A1,"_","")) Mike "James" wrote: I have a cell with this the following data in it: 0800_______________________ 00000001 00005212 00012312 I would like to count the number of "_" in the cell. I have tried the countif(A1,"*_*") but I only get a return of 1 count. I would like to know how many of the "_" there are in the cell. Thanks for the help. |
counting a certain character
It works and I was able to go through my 30,000 row spreadsheet and easily
see that there are difference with all the "_". It helped a great deal. "Mike H" wrote: Try, =LEN(A1)-LEN(SUBSTITUTE(A1,"_","")) Mike "James" wrote: I have a cell with this the following data in it: 0800_______________________ 00000001 00005212 00012312 I would like to count the number of "_" in the cell. I have tried the countif(A1,"*_*") but I only get a return of 1 count. I would like to know how many of the "_" there are in the cell. Thanks for the help. |
counting a certain character
Your welcome
"James" wrote: It works and I was able to go through my 30,000 row spreadsheet and easily see that there are difference with all the "_". It helped a great deal. "Mike H" wrote: Try, =LEN(A1)-LEN(SUBSTITUTE(A1,"_","")) Mike "James" wrote: I have a cell with this the following data in it: 0800_______________________ 00000001 00005212 00012312 I would like to count the number of "_" in the cell. I have tried the countif(A1,"*_*") but I only get a return of 1 count. I would like to know how many of the "_" there are in the cell. Thanks for the help. |
All times are GMT +1. The time now is 08:59 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com