Averageifs with date range

rgillson3

Board Regular
Joined
Oct 3, 2013
Messages
132
Office Version
  1. 365
Platform
  1. Windows
I'm trying to create a spreadsheet that summarizes information by using the =averageifs function.

I want the average of values in Col G, that fall between dates in Col. A

I'm trying to "edit" the formula to use the dates from other cells.

This is what I have. But, it is not working.

=AVERAGEIFS($G$126:$G$132, $A$126:$A$132, ">="&J29, $A$126:$A$132, "<="&K29)
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
a sample would help here

column G are the value to average and column has dates

Are the cells actually dates and NOT text ??
if you right click on a cell and format - general waht does it show
are the dates left or right justified

A SMALL sample spreadsheet, around 10-20 rows, would help a lot here, with all sensitive data removed, and expected results mocked up and manually entered, with a few notes of explanation.

This will possibly enable a quicker and more accurate solution for you.

MrExcel has a tool called “XL2BB” that lets you post samples of your data and will allow us to copy/paste your sample data into our Excel spreadsheets, saving a lot of time.

You can also test to see if it works ok, in the "Test Here" forum.

OR if you cannot get XL2BB to work, or have restrictions on your PC

then put the sample spreadsheet onto a share

I only tend to goto OneDrive, Dropbox or google docs , as I'm never certain of other random share sites and possible virus.
Please make sure you have a representative data sample and also that the data has been desensitised, remember this site is open to anyone with internet access to see - so any sensitive / personal data should be removed

Make sure you set any share or google to share to everyone
 
Upvote 0
Try this:

Book1
AGJKLM
28StartEndAverage IF
292024-01-052024-01-0718.33333
124
125
1262024-01-0315
1272024-01-0410
1282024-01-0517
1292024-01-0619
1302024-01-0719
1312024-01-0816
1322024-01-0911
Sheet2
Cell Formulas
RangeFormula
M29M29=AVERAGEIFS(G126:G132,A126:A132,"<="&K29,A126:A132,">="&J29)
 
Upvote 0
Solution

I finally figured it out.

awoohaw - Thank you for confirming I was on the right track with the formula.​


My last "issue" was that I had the incorrect cell references in the formula. Rookie mistake and I apologize.
 
Upvote 0

Forum statistics

Threads
1,215,220
Messages
6,123,697
Members
449,117
Latest member
Aaagu

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