johnmerlino
Board Regular
- Joined
- Sep 21, 2010
- Messages
- 94
Hey all,
I have the two formulas I want to apply if the condition is true or false. Problem is I need to determine whether there's a comma after the second ampersand in a cell.
For example, if the field looks like this:
then I want to execute this formula:
which produces this:
Now if the cell looks like this:
Since there's a comma after second ampersand, I want to execute this:
which outputs this:
Problem is how to determine whether a comma exists after that second ampersand.
Thanks for response.
I have the two formulas I want to apply if the condition is true or false. Problem is I need to determine whether there's a comma after the second ampersand in a cell.
For example, if the field looks like this:
Code:
HernaraMartin,Harry & Marie Anne & Ann Sally
Code:
=CONCATENATE(LEFT(A30,FIND(",",A30)-1),",",TRIM(MID(A30,FIND("&",A30,FIND("&",A30)+1)+1,LEN(A30))))
which produces this:
Code:
HernaraMartin,Ann Sally
Now if the cell looks like this:
Code:
HernaraMartin,Harry & Marie Anne & Jenners,Sally
Code:
=TRIM(RIGHT(A32,LEN(A32)-FIND("*",SUBSTITUTE(A32,"&","*",LEN(A32)-LEN(SUBSTITUTE(A32,"&",""))))))
Code:
Jenners,Sally
Thanks for response.