i am after some help with a macro in excel. I need the macro to use the count, sum and average function as below. I only want these functions to be carried out at the end of each section, i.e. where the text ends (either map image or small image). I need the macro to be able to recognise where each section starts (i.e. their is text in the first column) and where the section ends (no text in the first column). Then it will carry out the count, sum and average functions under the 3 adjacent columns. Each of the sections has differing amounnts of data, i.e. some like top one below have 3 rows, while others (like the bottom one below) may have 8 rows. So i need the macro to recognise this. I hope this makes sense!! Any help would be appreciated, cheers.
Column 1 Column 2 Column 3 Column 4
Map Image 0.58
Small Image 0.7
Map Image 0.24
count count count
sum sum sum
Average Average Average
Map Image 0.2
Map Image 0.3
Small Image 0.36
Map Image 0.1
Map Image 0.12
Small Image 0.36
Small Image 0.28
Map Image 0.4
count count count
sum sum sum
Average Average Average
Column 1 Column 2 Column 3 Column 4
Map Image 0.58
Small Image 0.7
Map Image 0.24
count count count
sum sum sum
Average Average Average
Map Image 0.2
Map Image 0.3
Small Image 0.36
Map Image 0.1
Map Image 0.12
Small Image 0.36
Small Image 0.28
Map Image 0.4
count count count
sum sum sum
Average Average Average