This one is kind of strange, but I am certain one of you have a solution.
I need to change a spreadsheet that has data entered into the wrong place. The attach list of fruit of Apples, Pears and Peaches have the type of that fruit below. Then totals that fruit. There should not be values in the rows next to 1000 Apples, 2000 Pears and 3000 Peaches. I still need the total but need the data removed from (or set to zero) and row that has the prefix of "Total". So in particular, there is a cell in column E that has the prefix of "Total". The first occurrence is E6, "Total 1000 Apples". I need the VBA code to look through the column E and find any occurrence of "Total 1000 Apples" but without the Word "Total", just "1000 Apples", then zero out the data in the columns to the right. Then repeat this for "Total 2000 Pears" zero out data in row "2000 Pears"; and "Total 3000 Peaches" zero out data in row "3000 Peaches".
The Spreadsheet has a desired result below the top Spreadsheet.
The spreadsheet always starts in cell E2, the names are only in Column E, the number of rows can be of any length, the name must be an exact match (case sensitive), the name may or may not have numbers, and the data will be in columns F through S to the right of the found name.
Thanks in advance.
Bookmarks