You don't need a mcro, just insert a new column next to column B
In row 3 of the new column, use this formula, and copy it down to row 500
=IF(RIGHT(B3,5)="TOTAL",LEFT(B3,LEN(B3)-6),B3)
AFter you have copied it all the way down, copy the results, select cell B3,
and use Edit->Paste Special-> VAlues. Then delete the column with the
formulas