Question : Excel - Delete last 5 digits in cell

Excel file 8000 records
Column D = Zip column that has 5 digits (95864) or 10 digits (95864-5874)
I would like to remove the -xxxx from every cell (-xxxx could be any valule)

Any suggestions?

bob

Answer : Excel - Delete last 5 digits in cell

On a reread you may want to leave the 5 diguit numbers untouched and just edit the 10 digit strings, if so
=IF(LEN(D1)=10,LEFT(D1,LEN(D1)-5),D1)
Dave
Random Solutions  
 
programming4us programming4us