I have a text as --> Madison, Dane, Wisconsin
How can I find the position of the second comma?
thanks,
Boon
=FIND(",",A2,FIND(",",A2)+1)
--
Biff
Microsoft Excel MVP
"Boon" <boonyawat....@cnh.com> wrote in message
news:OISZ4IGb...@TK2MSFTNGP04.phx.gbl...
what would be the formula. I am thinking of using FIND function but wnat to
have excel finds it from the right. is it possible?
thanks,
Boon
"T. Valko" <biffi...@comcast.net> wrote in message
news:uYBsfSGb...@TK2MSFTNGP04.phx.gbl...
For instance, if you wanted to parse your entry into separate columns (separated
by commas), there may be easier ways.
Or if you wanted the last string after the last comma
Or whatever...
--
Dave Peterson
I have a text in column A. And I want to extract the state name into column
B
samples of text in coulmn A.
Madison, Dane, Wisconsin
Chicago, Illinois
Sheboygan village, Madison, Dane, Wisconsin
Oregon
Seattle, Washington
"Dave Peterson" <pete...@verizonXSPAM.net> wrote in message
news:4B0AF05A...@verizonXSPAM.net...
>As I mentioned in my first posting. Let me clarify more in detail.
>
>I have a text in column A. And I want to extract the state name into column
>B
>
>samples of text in coulmn A.
>
>Madison, Dane, Wisconsin
>Chicago, Illinois
>Sheboygan village, Madison, Dane, Wisconsin
>Oregon
>Seattle, Washington
That is a very different question from:
"How can I find the position of the second comma?"
And, given your variability, the answer to your first question would really not
do you much good.
A better question might be to return the last "comma-separated" substring from
a string; or the entire string if there is no comma.
The answer to that could be something like:
=TRIM(RIGHT(SUBSTITUTE(A1,",",REPT(" ",99)),99))
--ron
--
Don Guillett
Microsoft MVP Excel
SalesAid Software
dguil...@austin.rr.com
"Ron Rosenfeld" <ronros...@nospam.org> wrote in message
news:vvulg5t0jl8bjtgc7...@4ax.com...
Thanks for your help. Your trick is awesome!
"Ron Rosenfeld" <ronros...@nospam.org> wrote in message
news:vvulg5t0jl8bjtgc7...@4ax.com...
>Ron,
>
>Thanks for your help. Your trick is awesome!
You're welcome. Glad to help. Thanks for the feedback.
Also note that it was Dave's question that elicited a better explanation of
what you needed to accomplish -- without that, we would have all been guessing.
--ron