Hi,
I have a range of cells with values, and am trying to get the average of those cells with values only.
For example, Company ABC has 2 areas, and since both areas only have data till March, I will need to sum the values in both areas and divide it by 3 (Jan, Feb and March). As I will get more data periodically, I may need to divide the total sum by 4, 5, 6 months, etc as and when I receive data. As the list is very long, I tried using pivot table, but it didnt work as pivot table will average it by 12 months. Anyway to work around it?
The end result I need is highlighted in yellow.
Thanks!
I have a range of cells with values, and am trying to get the average of those cells with values only.
For example, Company ABC has 2 areas, and since both areas only have data till March, I will need to sum the values in both areas and divide it by 3 (Jan, Feb and March). As I will get more data periodically, I may need to divide the total sum by 4, 5, 6 months, etc as and when I receive data. As the list is very long, I tried using pivot table, but it didnt work as pivot table will average it by 12 months. Anyway to work around it?
The end result I need is highlighted in yellow.
Book1 | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | |||
1 | Entities | Area | Floor Area (sqm)* | Jan 22 | Feb 22 | Mar 22 | Apr 22 | May 22 | Jun 22 | Jul 22 | Aug 22 | Sep 22 | Oct 22 | Nov 22 | Dec 22 | Total | |||
2 | ABC | Lot 1 | 5.00 | 5.00 | 2.00 | 6.10 | 13.10 | ||||||||||||
3 | ABC | Lot 2 | 4.00 | 2.00 | 1.30 | 5.20 | 8.50 | ||||||||||||
4 | ABC | - | |||||||||||||||||
5 | Sub total | 7.00 | 3.30 | 11.30 | - | - | - | - | - | - | - | - | - | 21.60 | |||||
6 | DEF | Lot 1 | 6.00 | 8.00 | 8.40 | 6.50 | 2.50 | 7.80 | 2.80 | 36.00 | |||||||||
7 | DEF | - | |||||||||||||||||
8 | DEF | - | |||||||||||||||||
9 | Subtotal | 8.00 | 8.40 | 6.50 | 2.50 | 7.80 | 2.80 | - | - | - | - | - | - | 36.00 | |||||
10 | XYZ | Lot 1 | 3.00 | 5.10 | 2.10 | 8.30 | 9.00 | 4.70 | 2.10 | 31.30 | |||||||||
11 | XYZ | - | |||||||||||||||||
12 | XYZ | - | |||||||||||||||||
13 | Subtotal | 5.10 | 2.10 | 8.30 | 9.00 | 4.70 | 2.10 | - | - | - | - | - | - | 31.30 | |||||
14 | |||||||||||||||||||
15 | Average | ||||||||||||||||||
16 | ABC | 7.2 | |||||||||||||||||
17 | DEF | 6 | |||||||||||||||||
18 | XYZ | 2.22 | |||||||||||||||||
19 | |||||||||||||||||||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
D13:O13,D9:O9,D5:O5 | D5 | =SUM(D2:D4) |
P2:P13 | P2 | =SUM(D2:O2) |
Cells with Data Validation | ||
---|---|---|
Cell | Allow | Criteria |
D9:O9 | Any value | |
D13:O13 | Any value | |
D2:O5 | Any value |
Thanks!