Averaging cells which are not adjacent

Paul Naylor

Board Regular
Joined
Sep 2, 2016
Messages
99
Office Version
  1. 365
  2. 2003 or older
Platform
  1. Windows
  2. Mobile
  3. Web
Hi, Hoping someone can help I need to Average cells which are not adjacent , but struggling to adapt the following formula:

=IF(G31="--","--",AVERAGE(IF(ISERROR(G32:I32),"",G32:I32))).

I need to adapt this formula to include the following cell ranges G32:I32 & AN32:AS32 ( 1st formula is average of period figures and formula also need is average of last 3 periods

On a seperate but related note I was looking for a way to automate this , so if I select a period ( 1-13) from a drop down box it automatically gives me the average of the previous 3 months figures inc current one e.g. P1 will give me P12,P13 & P1 ( rolling periods) & data relates to call scorings so each agent has 3 calls per period x 13 periods - 39 Calls Cell references for data ( scores are G32-AS32 ). The plan was then to adapt so I could select 6 mthly figures. I know I can always calculate manually and copy the cells, but wondering if another way?
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.

Forum statistics

Threads
1,223,248
Messages
6,171,021
Members
452,374
Latest member
keccles

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