Help needed to create a formula

Steven_TN

New Member
Joined
Jul 20, 2020
Messages
4
Office Version
  1. 2013
Platform
  1. Windows
Hello,
I am trying to do the following (and I am totally stuck).
I have a list of suppliers and their respective deliveries they did for us. For each delivery, I have assigned a scale (green, yellow, red), in order to measure how good the delivery was in terms of timing. What I would like to do next is the following: I need to calculate the % of green/yellow/red based on the subtotal number of deliveries of each supplier and NOT based on the total number of deliveries (that is why I added a countif column, although I don't know if that helps)
For example, for AMBU SRL we had a total of 2 deliveries. One was green, the other one was red. I would like to obtain 50% for the green delivery and 50% for the red one. (see picture attached)
Do you guys know a formula that could yield the result I have manually written in the last column? i would then pivot the all thing to have charts etc.
Thank you!
 

Attachments

  • Cattura.PNG
    Cattura.PNG
    23.5 KB · Views: 11

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Hi Steven_TN

Not too sure if this is what you are looking for but you can try the formula below;

=COUNTIFS(A:A,A2,C:C,C2)/COUNTIF(A:A,A2)

You can insert the formula in cell D2. Basically the formula uses the COUNTIFS function to count the number of rows that agrees to multiple criteria i.e. in our case, it counts the number of rows that contains the supplier and a specific rating. The COUNTIF function at the end counts the number of supplies made by each supplier.

Regards,
Clive Muchemwa
 
Upvote 0

Forum statistics

Threads
1,214,649
Messages
6,120,732
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