Calculate average() up to a certain cell

seyss

New Member
Joined
Nov 1, 2013
Messages
14
Office Version
  1. 365
Platform
  1. Windows
Hello,

I want to use the PROCV or other function to help me calculate the average of some numbers in a column up to a month defined in another cell.

Example:

jan/2109
feb/2128
mar/2162
apr/2188

I'd have a cell indicating the current month, example:

Cell A1 = mar/21

I need to calculate the average of those numbers up to the month in cell A1 (mar/21); it'd return average(9,28,62) = 33.
If I change A1 to apr/21, it'd return average(9,28,62,88) = 46.75

Any tips?

Thanks!
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Could you update your details about information what version of Excel are you using? It helps to help You.
 
Upvote 0
BTW: put this as 'Office version' in your account details.
If these data: jan/21 , feb/21 etc. a real date formatted to display mm/yy or it is a text looks like date?
 
Upvote 0
Book1
ABCDE
1Apr-2146.75Jan-219
2Feb-2128
3Mar-2162
4Apr-2188
Sheet9
Cell Formulas
RangeFormula
B1B1=AVERAGEIFS(E:E,D:D,"<="&A1)
 
Upvote 0
Solution

Forum statistics

Threads
1,215,772
Messages
6,126,806
Members
449,337
Latest member
BBV123

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