Thank you, davesexcel. I have a question about performance. I'm trying to count cell values ONLY when the column name is like Math, Science, or History. The issue is that the code is somewhat static. If a Math, History, or Science column is deleted, it throws off the counts and ends up counting the next column that should be in the spot of one of the grades. I want columns to only be counted when the column name is Math, Sci, or History.
Before macro
Attachment 717578
After macro
Attachment 717579
After macro (when a column was deleted beforehand)
Attachment 717580
My updates are slowing down performance considerably (from a minute to 5+ minutes). Is there anything I can do? Columns("G:G") is the updated code. Code("H:H") and ("I:I") are the original code that I had.
Bookmarks