Averageif

RLJ

Active Member
Joined
Mar 15, 2011
Messages
417
Office Version
  1. 365
Platform
  1. Windows
I need to have the AverageIF Function work in Excell 97-03. Can I add it into the workbook as a Function in VBA and have it work in both 97-03 and 2010?

If so, what would the function text be that I entered into the VBA Editor?
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
=AVERAGEIF('User Template'!$L$5:$L$28,B3,'User Template'!I5:I28)

How can I take this formula to make it work.
 
Upvote 0
=AVERAGE(IF('User Template'!$L$5:$L$28=B3,'User Template'!I5:I28))

Confirm with CTRL-SHIFT-ENTER rather than just Enter.
 
Upvote 0
I'm perplexed... When I copy this formula down three rows I get a (0.00) value???

=AVERAGE(IF('Joel McRae'!$L$5:$L$2000=$B$3,'Joel McRae'!$I$5:$I$2000))

It should give me the exact same results.
 
Upvote 0
I did get it to work with the CTL+SHIFT+ENTER.

On a separate note, I tried to get to the site for the HTML maker to post like you did in the reply and it says that I do not have sufficient privilages to go the page for the download.

How do I get the privilages?
 
Upvote 0
If you are at a company, you will probably have to talk with your system administrator.
 
Upvote 0

Forum statistics

Threads
1,224,600
Messages
6,179,833
Members
452,947
Latest member
Gerry_F

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