ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   COUNTIF and then SUM in Same Function (https://www.excelbanter.com/excel-worksheet-functions/27457-countif-then-sum-same-function.html)

wayne75

COUNTIF and then SUM in Same Function
 

Can anybody tell me if I can do a countif and then within the same
formula do a basic sum i.e. Subtract 1 from the countif result (All
within the same cell).

Any help greatly appreciated

Many Thanks

Wayne


--
wayne75
------------------------------------------------------------------------
wayne75's Profile: http://www.excelforum.com/member.php...o&userid=23669
View this thread: http://www.excelforum.com/showthread...hreadid=373447


mangesh_yadav


=COUNTIF(A1:A10,"a")-1

counts the occurance of string "a" in the range A1:A10 and then
subtracts 1 from it.

Mangesh


--
mangesh_yadav
------------------------------------------------------------------------
mangesh_yadav's Profile: http://www.excelforum.com/member.php...o&userid=10470
View this thread: http://www.excelforum.com/showthread...hreadid=373447



All times are GMT +1. The time now is 08:50 PM.

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