Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
I need to count occurr. of the character "," in a single cell
i need a formula to count the occurence of the comma character (",") in a
single cell. That's the easiest way I can think of to count dates that are exported into a single excel file. I know I could use the text to column function and use "," as the delimiter and then count the cells, but there are a lot of dates and I might run out of columns. |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
I need to count occurr. of the character "," in a single cell
=LEN(A1)-LEN(SUBSTITUTE(A1,",",""))
"orchid11652" wrote: i need a formula to count the occurence of the comma character (",") in a single cell. That's the easiest way I can think of to count dates that are exported into a single excel file. I know I could use the text to column function and use "," as the delimiter and then count the cells, but there are a lot of dates and I might run out of columns. |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
I need to count occurr. of the character "," in a single cell
On Mar 21, 2:47 pm, orchid11652
wrote: i need a formula to count the occurence of the comma character (",") in a single cell. That's the easiest way I can think of to count dates that are exported into a single excel file. I know I could use the text to column function and use "," as the delimiter and then count the cells, but there are a lot of dates and I might run out of columns. Since you are trying to count the data that the commas separate, you need to add 1 to the formula that Teethless Mama proposed. One way would be with this formula: =LEN(A1)-LEN(SUBSTITUTE(A1,",",E1)) + ISNUMBER(SEARCH(",", A1)) |
#4
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
I need to count occurr. of the character "," in a single cell
Thank you. I'll try it.
"Kevin Vaughn" wrote: On Mar 21, 2:47 pm, orchid11652 wrote: i need a formula to count the occurence of the comma character (",") in a single cell. That's the easiest way I can think of to count dates that are exported into a single excel file. I know I could use the text to column function and use "," as the delimiter and then count the cells, but there are a lot of dates and I might run out of columns. Since you are trying to count the data that the commas separate, you need to add 1 to the formula that Teethless Mama proposed. One way would be with this formula: =LEN(A1)-LEN(SUBSTITUTE(A1,",",E1)) + ISNUMBER(SEARCH(",", A1)) |
#5
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
I need to count occurr. of the character "," in a single cell
Thank you - I'll try it out.
"Teethless mama" wrote: =LEN(A1)-LEN(SUBSTITUTE(A1,",","")) "orchid11652" wrote: i need a formula to count the occurence of the comma character (",") in a single cell. That's the easiest way I can think of to count dates that are exported into a single excel file. I know I could use the text to column function and use "," as the delimiter and then count the cells, but there are a lot of dates and I might run out of columns. |
#6
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
I need to count occurr. of the character "," in a single cell
On Mar 22, 2:54 pm, "Kevin Vaughn" wrote:
On Mar 21, 2:47 pm, orchid11652 wrote: i need a formula to count the occurence of the comma character (",") in a single cell. That's the easiest way I can think of to count dates that are exported into a single excel file. I know I could use the text to column function and use "," as the delimiter and then count the cells, but there are a lot of dates and I might run out of columns. Since you are trying to count the data that the commas separate, you need to add 1 to the formula that Teethless Mama proposed. One way would be with this formula: =LEN(A1)-LEN(SUBSTITUTE(A1,",",E1)) + ISNUMBER(SEARCH(",", A1)) I realized on Saturday that this is incorrect where there is only one item in A1. More appropriate would have been something like this: =LEN(A1)-LEN(SUBSTITUTE(A1,",",E1)) + (A1<"") Sorry about that, Chief! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Does the cell contain the character "-" within the string? | Excel Discussion (Misc queries) | |||
bunch of "yes" or "no" entered in row, output 1 if a single yes | Excel Worksheet Functions | |||
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next | New Users to Excel | |||
Change data in a single column from "last, first" to "first last" | Excel Discussion (Misc queries) | |||
Complex if test program possible? If "value" "value", paste "value" in another cell? | Excel Discussion (Misc queries) |