i need help on something asap.

nnos

Board Regular
Joined
Feb 7, 2012
Messages
73
Hello,

So i have this issue, i want to use averageifs function to do my calculation.

On my excel i have a column for year from 1985 to 2011, and a row for months from Jan to Dec.
so i want to use averageifs to calculate the data i have. I want it to take the average of a month within that year.

so for example

year: months Data
1985 Jan 123
1986 Feb 1312

how can i approach this? anything would help.
 

Some videos you may like

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".

vavs

Well-known Member
Joined
Jul 2, 2004
Messages
514
You may want to try a pivot table. Use the year followed by the month and then use the average function in the data area.

This way you can select a year, group of years and you can even group the months into quarters if necessary.
 

T. Valko

Well-known Member
Joined
May 9, 2009
Messages
16,623
Hello,

So i have this issue, i want to use averageifs function to do my calculation.

On my excel i have a column for year from 1985 to 2011, and a row for months from Jan to Dec.
so i want to use averageifs to calculate the data i have. I want it to take the average of a month within that year.

so for example

year: months Data
1985 Jan 123
1986 Feb 1312

how can i approach this? anything would help.
Something like this...

=AVERAGEIFS(C:C,A:A,1985,B:B,"Jan")

That will average column C where column A = 1985 and column B = Jan.

Better to use cells to hold the criteria:

E1 = 1985
F1 = Jan

=AVERAGEIFS(C:C,A:A,E1,B:B,F1)
 

Watch MrExcel Video

Forum statistics

Threads
1,122,809
Messages
5,598,202
Members
414,218
Latest member
speedbit

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
Top