Change how total is calulated based on contents of cells

MikeyMo

New Member
Joined
Mar 26, 2020
Messages
6
Office Version
  1. 365
  2. 2016
  3. 2013
Platform
  1. Windows
Hard to title this post, but the issue is as follows:

I have three cells (A1,B1,C1) with scores and a fourth (D1) with the totals.
Cell D1 contains the formula: =(A1* .25) + (B1* .25) + (C1* .5). Simple enough.

However, the requirement is if either A1 or B1 does not contain a score, then the value in A1 or B1 needs to be multiplied by .50 instead of .25. For example, if A1 is null then B1*.50.
Finally, if A1 and B1 are both null, the total will only be calculated using C1, which will always have a score.

I have attached an image of this for reference. Looking for the cleanest way to do this with formulas. VBA is not my strong game but I'd be willing to thrash through it if it works better.

Thanks Folks.
Mikey
 

Attachments

  • Calc.png
    Calc.png
    10 KB · Views: 8

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).

Forum statistics

Threads
1,214,649
Messages
6,120,733
Members
448,987
Latest member
marion_davis

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