How can I multiply an array by a percentage

lcorcoran

New Member
Joined
Nov 4, 2021
Messages
17
Office Version
  1. 365
Hi All,

I have this formula that works grand, but my boss has asked me to add a column to my forecast Table for probability percentage, and I need to multiply an array of numbers by a percentage by before I to a sumifs.

I have two formulas in one and I using a bit of VBA code to switch between the two formulas, before I do the Sumifs I’m using the Offset to get my array of numbers, I need to multiply each number in the array by the probability column and then do the Sumifs, for info I’m also doing this in power query which is feeding in to a pivot table on a different sheet, I'm doing this for a quick summary report at the top of my sheet/report. I haven’t been able to get it to multiply the array I keep getting an #Value! Error, any help would be much appreciated





=SWITCH(Settings!$AE$1,

TRUE,

LET(

totalHours, SUMIFS(OFFSET(Forecast[Total Hours], 0, SEQUENCE(1, ((U2-M2)/7)+2)),

Forecast[Employee Name], OFFSET(B3, 1, 6)#,

Forecast[Status], "<>On Hold",

Forecast[Status], "<>Lost"),

lookupValue, Q4#,



IF(totalHours = lookupValue,

"All Good",

IF(totalHours = 0,

"H",

totalHours - lookupValue

)

)

),

FALSE,

SUMIFS(OFFSET(Forecast[Total Hours], 0, SEQUENCE(1, ((U2-M2)/7)+2)),

Forecast[Employee Name], OFFSET(B3, 1, 6)#,

Forecast[Status], "<>On Hold",

Forecast[Status], "<>Lost"))
 

Attachments

  • Screenshot 2024-12-03 165113.JPG
    Screenshot 2024-12-03 165113.JPG
    147 KB · Views: 14

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
I need to multiply an array of numbers by a percentage
Do you mean that you need to multiply SUM of an array of numbers by a percentage? Or do you need to get the percentage of the SUM of the array of numbers?
 
Upvote 0
It’s complicated, we are bidding for number of projects and we have a employees planned out to work on the projects(Week 1, Week 2, Week 3 ect…), so I need to sum up the hours per employee each week, but if the probability of getting the project reduces to say 50%, and if the employee was planned to work Week 1 * 20hrs, Week 2 * 20hrs, Week 3 * 10hrs ect.. now they are Week 1 * 10hrs, Week 2 * 10hrs, Week 3 * 5hrs. And if project two goes to 25% we need to weight the hours by that percentage, so If we change the percentage on a project we need all the hours to change. I can and will be doing this in power query as well but I want to be able to do it with a formula, so that when the manager change the percentages they can see the changes without have to refresh the powerquery.
 
Upvote 0
Something like this?
Book1
ABC
1Hours if 100% GuaranteedPercent of Getting JobNew Hours Total
2Job #1
39025%22
4Job#2
52050%40
620
720
820
9Job#3
101080%20
115
125
135
Sheet1
Cell Formulas
RangeFormula
C3C3=PercentHours(A3,B3)
C5,C10C5=PercentHours(A5:A8,B5)
 
Upvote 0

Forum statistics

Threads
1,224,505
Messages
6,179,151
Members
452,891
Latest member
JUSTOUTOFMYREACH

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