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

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
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,223,234
Messages
6,170,891
Members
452,366
Latest member
TePunaBloke

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