Hi there,
I am a total novice at excel and wanted to get some advice/help.
Basically, I have a 4 columns of data with about 75 rows. In column D, the values vary from 0 to 500000. I want to create a macro/code which will do the following:
1. Sort the data in column C (not D) by size with largest at the top.
2. I want to then work my way up from the bottom so that the number in the last cell is compared with the one above it. If the one above is smaller it is kept but if it is bigger, the whole row will be deleted. This process should be repeated for each cell until the values in column D decrease from largest at the bottom to smallest at the top.
3. I want to then subtract the top cell (not including the heading) from the one below it - ie c2-c3, then c3-c5, etc. and place the result in column E.
4. I want to then subtract D3-2, D4-D3 etc and place the result in column F.
5. I want to divide column F by column E and place the result in column G
I am not sure if this is clear or possible. Any help would be appreciated.
Thanks.
I am a total novice at excel and wanted to get some advice/help.
Basically, I have a 4 columns of data with about 75 rows. In column D, the values vary from 0 to 500000. I want to create a macro/code which will do the following:
1. Sort the data in column C (not D) by size with largest at the top.
2. I want to then work my way up from the bottom so that the number in the last cell is compared with the one above it. If the one above is smaller it is kept but if it is bigger, the whole row will be deleted. This process should be repeated for each cell until the values in column D decrease from largest at the bottom to smallest at the top.
3. I want to then subtract the top cell (not including the heading) from the one below it - ie c2-c3, then c3-c5, etc. and place the result in column E.
4. I want to then subtract D3-2, D4-D3 etc and place the result in column F.
5. I want to divide column F by column E and place the result in column G
I am not sure if this is clear or possible. Any help would be appreciated.
Thanks.