Hey Guys,
I have a worksheet with 60,000 rows and 3 columns that I have to sort into ranges and then take averages of. Column A is # of shares, Column B is $ per share, and Column C is a calculation based off of these numbers.
I have a table that is divided into ranges like so:
29.99 19.99 9.99 4.99
99
74
49
24
9
Where the Y axis is # of shares and X axis is $/share.
I want to take the average of the calculation in the first sheet (Column C) only for the rows that match a range, so that the table gets filled with the data. For example, it would take the average of all those cells in column C where the share amount is 9 and under and the $/share is 4.99 and under and put it in the table above in the bottom right corner.
I have tried using sumif to find the sum for each range, then i would use the countif function in an identical table, then divide the two tables using ctrl+shift+enter. My formula that didn't work was:
=SUMIF(Data!$C$2:$C$60026,AND(Data!$A$2:$A$60026<10,Data!$B$2:$B$60026<5))
Any help would be awesome, if there is no way, then I have to sort it all by hand. :-(
I have a worksheet with 60,000 rows and 3 columns that I have to sort into ranges and then take averages of. Column A is # of shares, Column B is $ per share, and Column C is a calculation based off of these numbers.
I have a table that is divided into ranges like so:
29.99 19.99 9.99 4.99
99
74
49
24
9
Where the Y axis is # of shares and X axis is $/share.
I want to take the average of the calculation in the first sheet (Column C) only for the rows that match a range, so that the table gets filled with the data. For example, it would take the average of all those cells in column C where the share amount is 9 and under and the $/share is 4.99 and under and put it in the table above in the bottom right corner.
I have tried using sumif to find the sum for each range, then i would use the countif function in an identical table, then divide the two tables using ctrl+shift+enter. My formula that didn't work was:
=SUMIF(Data!$C$2:$C$60026,AND(Data!$A$2:$A$60026<10,Data!$B$2:$B$60026<5))
Any help would be awesome, if there is no way, then I have to sort it all by hand. :-(