I have three columns in a spreadsheet, and my goal is to combine the individual references (column B) where the customer is the same (column A) - but only up to a maximum of 20 characters.
In column E, I use the following formula to combine the references if the value in column A is the same as the cell above: =IF(A2<>A1,"Reference " & B2,E1 & " " & B2)
In column G, I use the following formula to only return the final concatenated value: =IF(A2<>A3,CONCATENATE("",E2,""),"")
However, I'm struggling to find a way to stop combining the references if the cell length contains more than 20 characters, and starting a new concatenation on the next line - like I've put in column I?
Thanks!