Excel averageifs-

Ira Hopkins

New Member
Joined
Apr 8, 2019
Messages
25
Hi hoping someone can help- looking for an average ifs but want to include "normal" or "Duplicates" between 2 dates in the average but not "first" -
CodeItemNameDateTypeAverageCharge
132​
BreadPete22/02/2021duplicate3.00%£146.42
132​
butterlorraine07/12/2022duplicate4.00%£104.80
132​
Breadjohn22/02/2021duplicate13.00%£472.75
132​
butterdavid07/12/2022duplicate6.69%£700.00
132​
Breadcolin22/02/2021duplicate30.10%£35.20
176​
butterPete07/12/2022normal3.00%£26.60
176​
Breadlorraine22/02/2021normal17.00%£382.90
176​
butterjohn07/12/2022First1.00%£36.20
176​
Breaddavid22/02/2021First0.00%£0.00
176​
buttercolin07/12/2022First0.00%£0.00
176​
Breadmark08/04/2014normal0.00%£8.20
176​
butterlorraine23/04/2015normal0.00%£0.00
176​
Breadjohn25/04/2016normal23.00%£933.35
176​
butterdavid24/04/2017duplicate15.33%£1,678.50
176​
Breadcolin03/12/2018normal6.80%£228.20
176​
butterdavid09/01/2020duplicate30.67%£486.70
241​
Breadcolin05/06/2009normal3.00%£157.00
241​
buttermark15/05/2012normal4.00%£111.10
241​
Breadlorraine05/05/2015normal7.00%£358.30
241​
butterPete07/08/2008normal0.00%£0.00
241​
Breadlorraine10/01/2012normal1.00%£8.00
241​
butterjohn04/02/2015normal0.00%£0.00
241​
Breaddavid22/11/2018normal7.77%£203.40
241​
buttercolin08/01/2020duplicate6.52%£117.30
243​
BreadPete13/12/2011normal0.00%£0.00
243​
butterdavid11/11/2014normal0.00%£0.00
243​
Breadcolin04/04/2017normal7.00%£175.70
243​
buttermark01/05/2018duplicate0.00%£0.00
244​
Breadlorraine15/04/2011normal1.00%£36.20
244​
butterPete26/09/2014normal1.00%£82.40
244​
Breadlorraine28/07/2017normal0.00%£0.00
252​
butterjohn26/07/2010normal5.00%£254.50
252​
BreadPete19/07/2013normal0.00%£0.00
252​
butterlorraine10/10/2016normal2.00%£68.60
252​
Breadjohn01/03/2020normal2.91%£56.00
270​
butterdavid29/06/2015normal1.00%£40.00
270​
Breadcolin10/07/2018normal0.97%£40.40
149​
butterPete05/10/2020normal0.00%£0.00
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Which column are you trying to get the average of?
 
Upvote 0
from the average column- sorry not very good at this so it adds the average in the average column together and divides by the number of times either Duplicate or first appears but between 2 dates ( eg 1/4/20 - 31/3/21)
 
Upvote 0
How about
Fluff.xlsm
ABCDEFGHIJK
1CodeItemNameDateTypeAverageCharge
2132BreadPete22/02/2021duplicate3.00%£146.4201/04/20200.1262
3132butterlorraine07/12/2022duplicate4.00%£104.8031/03/2021
4132Breadjohn22/02/2021duplicate13.00%£472.75
5132butterdavid07/12/2022duplicate6.69%£700.00
6132Breadcolin22/02/2021duplicate30.10%£35.20
7176butterPete07/12/2022normal3.00%£26.60
8176Breadlorraine22/02/2021normal17.00%£382.90
9176butterjohn07/12/2022First1.00%£36.20
10176Breaddavid22/02/2021First0.00%£0.00
11176buttercolin07/12/2022First0.00%£0.00
12176Breadmark08/04/2014normal0.00%£8.20
13176butterlorraine23/04/2015normal0.00%£0.00
14176Breadjohn25/04/2016normal23.00%£933.35
15176butterdavid24/04/2017duplicate15.33%£1,678.50
16176Breadcolin03/12/2018normal6.80%£228.20
17176butterdavid09/01/2020duplicate30.67%£486.70
18241Breadcolin05/06/2009normal3.00%£157.00
19241buttermark15/05/2012normal4.00%£111.10
20241Breadlorraine05/05/2015normal7.00%£358.30
21241butterPete07/08/2008normal0.00%£0.00
22241Breadlorraine10/01/2012normal1.00%£8.00
23241butterjohn04/02/2015normal0.00%£0.00
24241Breaddavid22/11/2018normal7.77%£203.40
25241buttercolin08/01/2020duplicate6.52%£117.30
26243BreadPete13/12/2011normal0.00%£0.00
27243butterdavid11/11/2014normal0.00%£0.00
28243Breadcolin04/04/2017normal7.00%£175.70
29243buttermark01/05/2018duplicate0.00%£0.00
30244Breadlorraine15/04/2011normal1.00%£36.20
31244butterPete26/09/2014normal1.00%£82.40
32244Breadlorraine28/07/2017normal0.00%£0.00
33252butterjohn26/07/2010normal5.00%£254.50
34252BreadPete19/07/2013normal0.00%£0.00
35252butterlorraine10/10/2016normal2.00%£68.60
36252Breadjohn01/03/2020normal2.91%£56.00
37270butterdavid29/06/2015normal1.00%£40.00
38270Breadcolin10/07/2018normal0.97%£40.40
39149butterPete05/10/2020normal0.00%£0.00
Data
Cell Formulas
RangeFormula
K2K2=AVERAGEIFS(F:F,D:D,">="&J2,D:D,"<="&J3,E:E,"<>First")
 
Upvote 0
Thanks Fluff but instead of the J2 & J3 is it possible to add up all the cell averages that are between those dates not containing a "first"? A lot will be using the sheet so if possible would like to pick up the dates from column D without having to add a J column- This is so confusing for me so really appreaciatte your help
 
Upvote 0
It is picking up the dates in col D, J2 & J3 are just to make things easier so you don't have to change the formula if the date range changes.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,230
Messages
6,170,883
Members
452,364
Latest member
springate

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