SIGforum
Excel question....

This topic can be found at:
https://sigforum.com/eve/forums/a/tpc/f/320601935/m/6070091005

April 19, 2023, 12:52 PM
Lord Vaalic
Excel question....
I want to give each item going down in rows a rating, 1, 2, or 3.

I want to at the top of that column to add how many 1's, 2's and 3's there are and give a percentage.

I don't know how to write macros, so is there an easy way to do it?

Ex:

1's = 25%
2'S = 25%
3's = 50%


item A - 2
item B - 3
item C - 3
item D - 1




Don't weep for the stupid, or you will be crying all day
April 19, 2023, 01:44 PM
KDR
I'm just a casual user but the COUNTIF function should work.

=COUNTIF(Range, criteria)

for your example below

=countif(B1:B4, "1")/5 format that as a percentage or multiply by 100. Repeat for "2" and "3"


____________________
I Like Guns and stuff
April 20, 2023, 09:15 AM
P250UA5
Something like this?


Done with the below formula


You could make the data range a table, and reference the table column & not have to adjust your formulas as new rows are added




The Enemy's gate is down.
April 20, 2023, 10:59 AM
Lord Vaalic
Thank you guys! The forum comes through again!




Don't weep for the stupid, or you will be crying all day