Averageifs formula that goes by date range and one other criteria

njsutorius

New Member
Joined
Apr 6, 2014
Messages
43
Hello,

I have pieced together a formula that will average a list of scores if 2 criteria are met. 1) is a id #, and the 2nd is a date range.

The formula is as follows: =AVERAGEIFS(Sheet2!H:H,Sheet2!D:Sheet2!D,C10,Sheet2!G:G,">="&D5,Sheet2!G:G,"<="&D6)

C10 = the agent id #
sheet2!H:H is the list of scores
Shhet2 D:D is the agent id's
Sheet2G:G is the date range
D5 and D6 are the to and from dates

When i run the formula i get a #VALUE result but i cant figure out why.

I was messing around with it so much that the year part of the dates somehow got changed from 2013 and 2014 to 2113 and 2114. When they changed to the 2114/2113 the formula all of a sudden worked! I used find/replace to change the dates back to 2013 and 2014 both on the date range and the reference cells, but once again it returns to a #value response. what am i doing wrong? I tried changing the dates back to 2114/2113 and it failed to work.

I attempted to format the cells for the date range and specifically chose a date format to see if this would resolve the issue but it did not.

Appreciate any help.

Thanks
Nate
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
is the data on sheet 2 populated by formulas or pasted, particularly the scores in column H

if it comes from formulas you might want to check for any value errors in the data
 
Upvote 0
is the data on sheet 2 populated by formulas or pasted, particularly the scores in column H

if it comes from formulas you might want to check for any value errors in the data

Good advice. Ill be sure to keep it in mind as i can easily see how that could occur.
 
Upvote 0

Forum statistics

Threads
1,215,425
Messages
6,124,827
Members
449,190
Latest member
rscraig11

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