Averageifs using cell reference rather than hard coded...

Murphyk

New Member
Joined
Jan 6, 2017
Messages
8
Hi,

I'm trying to calculate a bunch of averageifs on some data, but am finding it impossible to pass a cell reference into the formula.

If I use the following, it works fine

=AVERAGEIFS('CALCS 2'!U$821:U$1765,'CALCS 2'!$T$821:$T$1765,"<30",'CALCS 2'!$T$821:$T$1765,">28")/100

But if i try to swap out "<30" for <A2 (for example), it comes back with #div/0 error.

Can anyone assist on how to fix it?

Thanks.
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Hi, if you want the cell value to just contain the 30 and not the less than symbol then:

=AVERAGEIFS('CALCS 2'!U$821:U$1765,'CALCS 2'!$T$821:$T$1765,"<"&A1,'CALCS 2'!$T$821:$T$1765,">28")/100

Else if you want the cell to literally contain <30 then:

=AVERAGEIFS('CALCS 2'!U$821:U$1765,'CALCS 2'!$T$821:$T$1765,A1,'CALCS 2'!$T$821:$T$1765,">28")/100
 
Upvote 0
That's incredible. Thanks so much for your help. There's no way that I would ever have managed that.

Should save me loads of time.

Cheers!
 
Upvote 0

Forum statistics

Threads
1,216,108
Messages
6,128,872
Members
449,475
Latest member
Parik11

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