Selecting data from a table

kalgatha

New Member
Joined
Jun 15, 2011
Messages
3
Hey guys. I'm working with a rather large table and I'm trying to take an average of values in a certain range under a constraint. So lets say i have a list of 7000 rows and 3 columns. I want the average of all the values in column 3 where the values in column 1 are greater than 90, and where the values in column 2 fall within a set range(for instance 70-80). the only way i know to do it is:

=AVERAGE(IF(A1:A7000>90,IF(IF(80>=B1:B7000,B1:B7000, FALSE)>=70,C1:C7000,FALSE), FALSE))

but when I do this it will only give me the average of everything that meets the B>70 and A>90 constraint. it doesn't see the <80...so what can I do to make this function only select values within the range and not on either side of it? thanks!
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.

Forum statistics

Threads
1,224,551
Messages
6,179,472
Members
452,915
Latest member
hannnahheileen

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top