Sumproduct Formula

ryansm05

Board Regular
Joined
Sep 14, 2016
Messages
148
Office Version
  1. 365
Platform
  1. Windows
Hi,

I'm not sure if a Sumproduct is the best approach, but I'm needing to achieve the below:

In cell N4 I have returned the value of £10,030.41 which is an average of all the basic pay (row 3) and actuals (row 1). If this was looking at the 'Forecast' cells the average would be a lot lower as there are zeros.
In cell O4 the same methodology as N4 has been applied but on bonus instead.


Actual (a)Actual (B)Actual (c) Actual (d)Actual (e)Actual (f)Actual (g)Actual (h)ForecastForecastForecast (K)Forecast (L)(M)Actual (N)Actual (O)
P01P01P02P02P03P03P04P04P05P05P06P06AverageAverage
Basic PayBonusBasic PayBonusBasic PayBonusBasic PayBonusBasic PayBonusBasic PayBonusBasic PayBonus
10,000.001,000.0010,020.001,002.0010,040.041,004.0010,060.121,006.010.000.000.000.00
10030.04​
1003.004​

If anyone can help I'd be very grateful!

Thanks
Ryan
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
try into N4:

Code:
=AVERAGE(IF(($A$3:$L$3=N3)*($A$4:$L$4>0),$A$4:$L$4))
this is array formula, so you have to accept it with Ctrl+Shift+Enter not just Enter (as usual). Curly brackets {} should appear around formula (check formula bar).
Then drag it right into O4.
 
Upvote 0
try into N4:

Code:
=AVERAGE(IF(($A$3:$L$3=N3)*($A$4:$L$4>0),$A$4:$L$4))
this is array formula, so you have to accept it with Ctrl+Shift+Enter not just Enter (as usual). Curly brackets {} should appear around formula (check formula bar).
Then drag it right into O4.


Legend! This is absolutely perfect.

Thanks you very much.

Ryan
 
Upvote 0

Forum statistics

Threads
1,214,858
Messages
6,121,960
Members
449,057
Latest member
FreeCricketId

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