Hello again TigerAvatar,
I want to thank you for all you help last time. You really helped me alot. So the what I need help with now is a little more complicated and i am not sure how to explain what needs to be done but i will try my best, and if you have any question just let me know.
So every thing work on the last marco perfectly, what i need now is for the data that is stored into the array( from the last macro,which i converted to percent) to still be printed in the blank column but now i need that data to be multiplied by the data that is in column J and the total of all the previous data and data in column J to be add and printed on the next row at the bottom. I also need the data in column J to be add up and place at the next blank row at the end of that cloumn(see additional information). Lasty i need the total of column J and the product of the data of column J and the array being multiplied to divided and stored on the same row as the total of column J and the product of data of column J and the arrays data being multiplied.
Here is some additional information:
Every N/A value in column J are equal to 1
Before the values in column J can be multiplied by the percents it needs to be divided by 1000 and stored into array1 so like: 1000/ (value of column J) so N/A = 1 Ex: 1000/1 = 1000
After you get that value it will be multiplied by the percent and also stored in array2 so: Ex. (1000/1) * 62.5
And then all the values stored in array1 will be added together and printed at the end of column J
And all the values stored in array2 will be added and printed on the same row as the total value of array1
Lastly i need the value if array2 to be divided by array 1 and printed on the same row as array1 total was printed and array2
So i know that is alot so i will put down a example:
A---------J--------
PGN-------N/A-------.625-----62.5=( 1000 * 62.5) = 62500 (not printed)
Data
Data
PGN-------20----------1------100= ( 50 * 100)= 5000(not printed)
Data
Data
Total----1050----------------67500---- (67500/1050)= 64.2857 (printed)
Heres code
Bookmarks