Excel 2007
1. I want to delete data after comma. I am good when the data has a comma (1st and 3rd ex).
2. I get an error (#VALUE!) when the data does not have a comma. (2nd ex.).
formula in Col.K =LEFT(D6,FIND(",",D6,1)-1)
I tried using the IF formula with it, but I still get the error due to the FIND. I also know I can use the Text to Col. but we wanted a formula since we would be refreshing this report.
Data in col. D
Regina, SK Canada
Canada
Edmonton, AB Canada
Want it to look like col k:
Regina
Canada
Edmonton
Any help is greatly appreciated!!
1. I want to delete data after comma. I am good when the data has a comma (1st and 3rd ex).
2. I get an error (#VALUE!) when the data does not have a comma. (2nd ex.).
formula in Col.K =LEFT(D6,FIND(",",D6,1)-1)
I tried using the IF formula with it, but I still get the error due to the FIND. I also know I can use the Text to Col. but we wanted a formula since we would be refreshing this report.
Data in col. D
Regina, SK Canada
Canada
Edmonton, AB Canada
Want it to look like col k:
Regina
Canada
Edmonton
Any help is greatly appreciated!!