Simplifying equation - ????

spydey

Active Member
Joined
Sep 19, 2017
Messages
314
Office Version
  1. 2013
Platform
  1. Windows
Just out of curiosity, is there an easier way to do this equation? Meaning, can I simplify this equation to any degree?

The order of the columns must stay the same, sorry.

Code:
=((15*SUMIF($G3:$H3,"<>"&"N/A"))+(10*SUMIF($I3:$K3,"<>"&"N/A"))+(15*SUMIF($L3,"<>"&"N/A"))+(5*SUMIF($M3,"<>"&"N/A"))+(15*SUMIF($N3,"<>"&"N/A"))+(5*SUMIF($O3,"<>"&"N/A"))-(5*$P3))/(100-((15*COUNTIF($G3:$H3,"N/A"))+(10*COUNTIF($I3:$K3,"N/A"))+(15*COUNTIF($L3,"N/A"))+(5*COUNTIF($M3,"N/A"))+(15*COUNTIF($N3,"N/A"))+(5*COUNTIF($O3,"N/A"))))

I was just curious if maybe I am making it more complicated than it really needs to be .... I tend to do that for some reason .... :rofl::rolleyes:

Thanks y'all

-Spydey
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
This seems to do the same thing:

Code:
=SUM(IF($G3:$P3<>"N/A",$G3:$P3*{15,15,10,10,10,15,5,15,5,-5}))/(100-SUM(($G3:$O3="N/A")*{15,15,10,10,10,15,5,15,5}))

confirmed with Control+Shift+Enter.
 
Upvote 0
This seems to do the same thing:

Code:
=SUM(IF($G3:$P3<>"N/A",$G3:$P3*{15,15,10,10,10,15,5,15,5,-5}))/(100-SUM(($G3:$O3="N/A")*{15,15,10,10,10,15,5,15,5}))

confirmed with Control+Shift+Enter.

Eric my man!!! Awesome work. I hadn't even thought about using an array to simplify it.

Thank you a million man for your assistance. I was content with using the formula I had but was kind of annoyed that it was so long.

Thank you for you time. It is very much appreciated.

-Spydey
 
Upvote 0

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,633
Latest member
DougMo

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