Exclude Formula/Calculation based on status

Cyril Beki

Board Regular
Joined
Sep 18, 2021
Messages
57
Office Version
  1. 2016
Platform
  1. Windows
Hello,

I have a progress bar to show the status of a project but I want some of the data will be excluded from the progression I used a drop-down to show "Done, Pending, and Not Available". Below is the image for better understanding and reference.

Progress Bar:
Status.png


Status:
Statuss.png

What I wish is, I need the formula to calculate only if it's stated Done, meaning if it shows "Not Available", then it will be excluded from the formula, so based on the image above, it should show 100% of progression instead of 71% since the rest I marked as "Not Available". Hope someone can help

here is the formula i currenlty used: =COUNTIF(F3:F28,"Done")/COUNTA(E3:E28)
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
try:
Excel Formula:
=COUNTIF(F3:F28,"Done")/  ( COUNTA(E3:E28)-COUNTIF(F3:F28,"Not Available"))

Why are you counting different columns though? What is the difference between E:E and F:F?

Maybe you should be using:
Excel Formula:
=COUNTIF(F3:F28,"Done")/  ( COUNTA(F3:F28)-COUNTIF(F3:F28,"Not Available"))
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,069
Messages
6,122,959
Members
449,096
Latest member
Anshu121

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