Karen Schaefer
asked on
Remove comma if no data found
How do I modify the following to handle if the results only return a comma, to remove the comma.
=VLOOKUP(MainFormTbl[Compa ny Name],BillingInfo[#All],5, FALSE) & ", " &VLOOKUP(MainFormTbl[Compa ny Name],BillingInfo[#All],6, FALSE) & " " &VLOOKUP(MainFormTbl[Compa ny Name],BillingInfo[#All],7, FALSE)
results = City, ST ZipCode
=VLOOKUP(MainFormTbl[Compa
results = City, ST ZipCode
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks for the great suggestion.
=IF(LEFT(A1,2)=",",SUBSTIT
I got the idea from one of the answers here. If a comma is the right most character and left most character, one comma will be replaced with nothing.