views:

19

answers:

1

I have list of text that contain double quoate and upderscore. How can I use function to change text pattern to following format.

"CUSTOMER_DETAIL"  to CustomerDetail
"PERSON" to Person
"CUSTOMER_ADDRESS_DETAIL" to CustomerAddressDetail

Thank you for replay.

+1  A: 

Use SUBSTITUTE to replace "_" with space and PROPER to capitalize first letters. Use MID to get text inside quotes. At the end use SUBSTITUTE to strip spaces.

=SUBSTITUTE(PROPER(SUBSTITUTE(MID(A1;2;LEN(A1)-2);"_";" "));" ";"")

Goran Rakic