Hi there,
I have a frustrating problem, to which I'm sure there must be a solution.
I have a worksheet which contains customer details. Columns G, H, I, J and K contain various parts of the customers address: Street, District, Town, County and Postcode. In Column L, I need to have the full address, with each part of the address separated by a comma, and a space. I have used the following formula:
L1=concatenate(G1", "H1", "I1", "J1", "K1)
This works fine, provided each customer has all 5 parts of the address. However I have over 27,000 rows of customer details, and some customers addresses don't contain all five parts. This proves to be a problem as the following address:
Street = 1 The Street
District = Blank
Town = London
County = Blank
Postcode = AA1 1ZZ
Appears as
1 The Street, , London, , AA1 1ZZ.
The duplicate commas being caused by the formula inserting the blank cells.
In a nutshell, I need a way to only insert the comma and space after a cell that contains data, and ignore a blank cell.
Any ideas gratefully recieved.
Cheers
Joe
I have a frustrating problem, to which I'm sure there must be a solution.
I have a worksheet which contains customer details. Columns G, H, I, J and K contain various parts of the customers address: Street, District, Town, County and Postcode. In Column L, I need to have the full address, with each part of the address separated by a comma, and a space. I have used the following formula:
L1=concatenate(G1", "H1", "I1", "J1", "K1)
This works fine, provided each customer has all 5 parts of the address. However I have over 27,000 rows of customer details, and some customers addresses don't contain all five parts. This proves to be a problem as the following address:
Street = 1 The Street
District = Blank
Town = London
County = Blank
Postcode = AA1 1ZZ
Appears as
1 The Street, , London, , AA1 1ZZ.
The duplicate commas being caused by the formula inserting the blank cells.
In a nutshell, I need a way to only insert the comma and space after a cell that contains data, and ignore a blank cell.
Any ideas gratefully recieved.
Cheers
Joe