IF + value THEN calculation

lavezzi7

New Member
Joined
Dec 12, 2017
Messages
15
Hi guys,

I am trying to set up a formula that would automatically subtract 20% (from 100%) for any given value of the given cells:

Example:

100 %

A X
B
C X
D
E

In this case, cells B, D and E do not have any value so the percentage should be 60 %.

Thanks in advance! :)
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Hi Lavezzi,

Assuming that your data is in cells A1:A5, for example:
A1 - 80
A2 - empty
A3 - 70
A4 - empty
A5 - empty

Then you can paste the following formula into cell B1 & drag it down:
=IF(LEN(A1),A1*0.8,0.6)

Is this what you were looking for?
 
Upvote 0
Thanks for the answer but not exactly like that.

Let's assume I want to calculate the completeness of a 5 member team. Full team is 100 % completeness.

When a player is injured the completeness decreases by 20 %, for instance if 4 players are injured team completeness will be 100 % - (4 * 20 %) = 20 %.

I am also trying with LEN but cannot figure it out yet.
 
Upvote 0
:) awesome!
P.S. =LEN will simply check if a cell is not blank.
 
Upvote 0

Forum statistics

Threads
1,216,101
Messages
6,128,845
Members
449,471
Latest member
lachbee

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