ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Assigning values to letters (https://www.excelbanter.com/excel-worksheet-functions/61162-assigning-values-letters.html)

Cheri

Assigning values to letters
 
We have a spreadsheet that we are to enter either an "A", "B", or "M" to
designate whether some is "Above", or "Meets", or is "Below" a designation.

An "A" equals 5 points
An "M" equals 3 points
and the "B" equals 0 points

I would like a formula that allows me to designate the value for each entry
in the row and adds the values together. So, if there are 4 "A"s and 5 "M"s,
the result will be 35.

Thanks!

bpeltzer

Assigning values to letters
 
If your letters are in C2:C10, for instance, then =5*countif(c2:c10,"A") +
3*countif(c2:c10,"M") will get you the result.

"Cheri" wrote:

We have a spreadsheet that we are to enter either an "A", "B", or "M" to
designate whether some is "Above", or "Meets", or is "Below" a designation.

An "A" equals 5 points
An "M" equals 3 points
and the "B" equals 0 points

I would like a formula that allows me to designate the value for each entry
in the row and adds the values together. So, if there are 4 "A"s and 5 "M"s,
the result will be 35.

Thanks!


Biff

Assigning values to letters
 
Hi!

Try one of these:

=SUM(COUNTIF(A1:J1,"A")*5,COUNTIF(A1:J1,"M")*3)

=SUMPRODUCT(((A1:J1="A")*5)+((A1:J1="M")*3))

=SUM(COUNTIF(A1:J1,{"A","M"})*{5,3})

Biff

"Cheri" wrote in message
...
We have a spreadsheet that we are to enter either an "A", "B", or "M" to
designate whether some is "Above", or "Meets", or is "Below" a
designation.

An "A" equals 5 points
An "M" equals 3 points
and the "B" equals 0 points

I would like a formula that allows me to designate the value for each
entry
in the row and adds the values together. So, if there are 4 "A"s and 5
"M"s,
the result will be 35.

Thanks!




Cheri

Assigning values to letters
 
Thank you so much!!!! That was perfect!

Cheri

"bpeltzer" wrote:

If your letters are in C2:C10, for instance, then =5*countif(c2:c10,"A") +
3*countif(c2:c10,"M") will get you the result.

"Cheri" wrote:

We have a spreadsheet that we are to enter either an "A", "B", or "M" to
designate whether some is "Above", or "Meets", or is "Below" a designation.

An "A" equals 5 points
An "M" equals 3 points
and the "B" equals 0 points

I would like a formula that allows me to designate the value for each entry
in the row and adds the values together. So, if there are 4 "A"s and 5 "M"s,
the result will be 35.

Thanks!



All times are GMT +1. The time now is 08:27 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com