Calculate how many of a value there are and return a percentage.

Kylen

New Member
Joined
Jan 30, 2015
Messages
48
Hi,

I need help creating a formula that calculates the following:

Part 1
Take the value in "B1" and look for it from Cell "A4" and to the end of the list. For each row where the value from "B1" is located, it must count what's in cell "C" on the same row. Cell C contains only two different values, either "Over" or "Under".

Values to be returned are what percentage of the rows where the value "B1" is located, contains the value "Over".

If there is no value in "B1", it should calculate the same as above, but not take into account what's in Cell A. It should only count how many "Over and" Under" there are in Cell C and what percentage is "Over".
Name-2
Cell A3Cell C3
Name-1Over
Name-1Under
Name-1Under
Name-2Over
Name-2Over
Name-2Under
Name-3Under
Name-3Over
Name-3Under


Part 2
How do you make a chart that shows an arrow at the percentage calculated by the formula above?

Br
Kylen
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Not sure I understand part 2

Part 1
Book1
ABCD
1Cell A3Name-2Cell C3Percent
267%
3
4Name-1Over
5Name-1Under
6Name-1Under
7Name-2Over
8Name-2Over
9Name-2Under
10Name-3Under
11Name-3Over
12Name-3Under
Sheet1
Cell Formulas
RangeFormula
D2D2=IF(B1="",COUNTIF(C4:C12,"over")/COUNTA(C4:C12),COUNTIFS(A4:A12,B1,C4:C12,"over")/COUNTIF(A4:A12,B1))
 
Upvote 0
Hi,

Thanks for your answer! :) It seems to work as expected. :)

Part 2
I want to create something similar to below that shows the percentage value from part -1. How to create one?
1604256844018.png

Br
Kylen
 
Upvote 0
sorry not sure how to make those graphics
 
Upvote 0

Forum statistics

Threads
1,214,958
Messages
6,122,475
Members
449,087
Latest member
RExcelSearch

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