What's wrong with my Excel formula? It is…
- User
What's wrong with my Excel formula? It is =CONCATENATE("'4a18037b-f5f2-4863-a910-be0745e64a44', '" A1 "', '" B1 "'),") and I want it to output a result similar to ('e6124dcd-a16f-4025-985b-057d3f5818f4', '123', 'Lloyds Office'), where A1 contains 123 and B1 contains Lloyds Office
- Assistant
Your Excel formula has a formatting issue, specifically with how you're using quotation marks and concatenation. The formula
=CONCATENATE("'4a18037b-f5f2-4863-a910-be0745e64a44', '" A1 "', '" B1 "'),")includes spaces and extra quotes that shouldn't be there, and ends with a syntax error near the end. Here's a corrected version:=CONCATENATE("('4a18037b-f5f2-4863-a910-be0745e64a44', '", A1, "', '", B1, "')")Let's break down the corrected formula:
CONCATENATEfunction is correctly used to join strings and cell values.('4a18037b-f5f2-4863-a910-be0745e64a44', 'starts the output string, including the unique ID and begins the formatting for the SQL-like tuple.A1andB1are referenced without quotes directly in the formula. They will be evaluated to their respective contents.