How to convert a string to camelcase in Google Spreadsheet formula
问题 Trying to create a formula to turn a string of words separated by spaces into camelcase 回答1: This should work: =JOIN("",ArrayFormula(UPPER(LEFT(SPLIT(A3," ")))&LOWER(MID(SPLIT(A3," "),2,500)))) or to be more precise: =JOIN("",ArrayFormula(UPPER(LEFT(SPLIT(A3," ")))& LOWER(REGEXEXTRACT(SPLIT(A3," "),".(.*)")))) 回答2: Much smaller version: =SUBSTITUTE(PROPER(TRIM(A1))," ","") We just use PROPER to upper case and TRIM and SUBSTITUTE to remove spaces. If we want lowerCamelCase, By just REPLACE ing