Help with SUMPRODUCT formula

Woodpusher147

Board Regular
Joined
Oct 6, 2021
Messages
69
Office Version
  1. 365
Platform
  1. Windows
Hello
I have a sheet which calculates scores depending on cell colour.
Cell E7 contains a formula which calculates points and gives them a multiple of the colour scores
Gold = 5 so if column G is worth 20 for gold then the formula multiplies by 4

Column D has a dropdown with Bedroom - Upstairs or Downstairs

At the moment, the formula calculates points for both upstairs and downstairs and then a different calculation if COlumn D = Bedroom

I need to add another array so I can calculate differently for Upstairs therefore giving me different scores for all departments

I hope thats clear but here is the formula which may make it clear

=SUMPRODUCT(CFV(F11:Q11),IF(D11="Bedroom",{4,2,4,0,0,0,0,0,5,2,2,1},{4,2,4,4,1,1,2,1,0,0,0,1}))

I just to make another IF so if column D= Upstairs it would calculate 4,2,4,4,1,1,2,1,0,0,0,5

HOpe this is clear and someone can help


Thanks
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Would you be kind enough and use the xl2bb add in to post a sample of your worksheet (link below). If you cannot use the add in, then please post a table.
Expected results would help.

Thanks in advance.
 
Upvote 0
Isn't this just a nested IF statement?

=SUMPRODUCT(CFV(F11:Q11),IF(D11="Bedroom",{4,2,4,0,0,0,0,0,5,2,2,1},IF(D11="Downstairs",{4,2,4,4,1,1,2,1,0,0,0,1},{4,2,4,4,1,1,2,1,0,0,0,5})))

Checks for Bedroom, else checks for Downstairs, otherwise assumes D11 is the Upstairs array (though it could be any value of course)
 
Upvote 0
Solution
Isn't this just a nested IF statement?

=SUMPRODUCT(CFV(F11:Q11),IF(D11="Bedroom",{4,2,4,0,0,0,0,0,5,2,2,1},IF(D11="Downstairs",{4,2,4,4,1,1,2,1,0,0,0,1},{4,2,4,4,1,1,2,1,0,0,0,5})))

Checks for Bedroom, else checks for Downstairs, otherwise assumes D11 is the Upstairs array (though it could be any value of course)
Thats excellent, thank you very much
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,241
Members
452,622
Latest member
Laura_PinksBTHFT

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