exclude a cell using =average

still learning

Well-known Member
Joined
Jan 15, 2010
Messages
821
Office Version
  1. 365
Platform
  1. Windows
Hi

I use the following to keep track of my gas millage

How would I change it to NOT include F90

Excel Formula:
=IF(A91="","",AVERAGE($F$78:F91))



mike
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Hello, do you mean:

Excel Formula:
=IF(A91="","",AVERAGE(F78:F89,F91))
 
Upvote 0
Hi hagia_sofia
Sort of.
I have numbers from F78 down.
I dragged the formula down to F200.
I start at F78...($F$78) and have a running average if there is a date in A...
I'm down to F91 with averages, so far
I want to be able to NOT include a cell in F in the average (F90) if the number is less than 20
I know i can change the value to 0 but it will still be included in the calculation
Your formula will work, but I was looking for a formula that I wouldn't have to change if I didn't want to use the number in a cell in F
Is the an if formula that would ...=if A91="","",AVERAGE($F$78:F91 but don't include and number that is less than 20)
mike
 
Upvote 0
Would be easier to understand what you have and what you want if you provided some sample data and expected results with XL2BB :)

Is it one of these that you are after?

24 09 03.xlsm
FGH
78353535
796851.551.5
80251.5 
81051.5 
8251.5 
83896464
842554.2554.25
Average excluding
Cell Formulas
RangeFormula
G78:G84G78=IF(A$91="","",AVERAGEIFS(F$78:F78,F$78:F78,">=20"))
H78:H84H78=IF(A$91="","",IF(F78<20,"",AVERAGEIFS(F$78:F78,F$78:F78,">=20")))
 
Upvote 0
Solution
Thank you all for your reply. I'll make up a sample sheet and post it with XL2BB
It'll take a cover of days.
I realized that I've got my columns labeled wrong in the question. I bet I'm the only one that has ever done that :mad:
 
Upvote 0
Thank you both for helping me.
I reread Peter's reply and was able to get the results i needed.
Sorry it took so long for a comeback
mike
 
Upvote 0

Forum statistics

Threads
1,224,064
Messages
6,176,164
Members
452,710
Latest member
mrmatt36

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