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

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
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,223,893
Messages
6,175,239
Members
452,621
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