ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Formula (https://www.excelbanter.com/excel-discussion-misc-queries/79344-formula.html)

Phxlatinoboi®

Formula
 
I am currently using the following formula:

=COUNTIF(E24:AB24,"A")*2

as a way to caculate hours for me.

What I need it to do now is that if there is a "B" there to caculate it as 1.

Is there a way to do this?


CaptainQuattro

Formula
 

Countif(e24:ab24,"a")*2+countif(e24:ab24,"b")


--
CaptainQuattro
------------------------------------------------------------------------
CaptainQuattro's Profile: http://www.excelforum.com/member.php...o&userid=32763
View this thread: http://www.excelforum.com/showthread...hreadid=525947


wdjsxj

Formula
 
=COUNTIF(E1:AB1,"A")*2+COUNTIF(E1:AB1,"B")

Phxlatinoboi®编写:

I am currently using the following formula:

=COUNTIF(E24:AB24,"A")*2

as a way to caculate hours for me.

What I need it to do now is that if there is a "B" there to caculate it as 1.

Is there a way to do this?


JMB

Formula
 
=COUNTIF(E24:AB24,"A")*IF(COUNTIF(E24:AB24,"B")0, 1,2)


"Phxlatinoboi®" wrote:

I am currently using the following formula:

=COUNTIF(E24:AB24,"A")*2

as a way to caculate hours for me.

What I need it to do now is that if there is a "B" there to caculate it as 1.

Is there a way to do this?



All times are GMT +1. The time now is 10:48 PM.

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