ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   assign value based on criteria and total (https://www.excelbanter.com/excel-discussion-misc-queries/249116-assign-value-based-criteria-total.html)

rascal

assign value based on criteria and total
 
I have cells from c9 to AB9 that are populated with 1 of 4 different letters.
I have been able to get a count based on the criteria but what I need to do
is this:
If c9 to ab9 have an "a" in it count as 1 but if it has a "b" in it count as
..5. Is this possible.
Thanks for any suggestions

Mike H

assign value based on criteria and total
 
Hi,

Maybe this

=COUNTIF(C9:AB9,"a")+(COUNTIF(C9:AB9,"b")/2)

Mike

"rascal" wrote:

I have cells from c9 to AB9 that are populated with 1 of 4 different letters.
I have been able to get a count based on the criteria but what I need to do
is this:
If c9 to ab9 have an "a" in it count as 1 but if it has a "b" in it count as
.5. Is this possible.
Thanks for any suggestions



All times are GMT +1. The time now is 09:52 PM.

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