ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   New Users to Excel (https://www.excelbanter.com/new-users-excel/)
-   -   how can i add cells that are not in a range? (https://www.excelbanter.com/new-users-excel/47449-how-can-i-add-cells-not-range.html)

ladynole

how can i add cells that are not in a range?
 
need help with formula. i want the total number of cells that contain "yes"
from the following cells,G9,G10,G12,G13,G14,G18,G24 .. appreciate the help..

Alan

Try
=COUNTIF(G9:G24,"Yes")
Regards,
Alan.
"ladynole" wrote in message
...
need help with formula. i want the total number of cells that contain
"yes"
from the following cells,G9,G10,G12,G13,G14,G18,G24 .. appreciate the
help..




Bernie Deitrick

=COUNTIF(G9:G10,"Yes")+COUNTIF(G12:G14,"Yes") + COUNTIF(G18,"Yes")+
COUNTIF(G24,"Yes")

HTH,
Bernie
MS Excel MVP


"ladynole" wrote in message
...
need help with formula. i want the total number of cells that contain
"yes"
from the following cells,G9,G10,G12,G13,G14,G18,G24 .. appreciate the
help..




aka excel

Select the cells G9,G10,G12,G13,G14,G18,G24 and give it a name by typing in
the name in the name box. Then try the the formula countif("Name
given","yes")

"ladynole" wrote:

need help with formula. i want the total number of cells that contain "yes"
from the following cells,G9,G10,G12,G13,G14,G18,G24 .. appreciate the help..


ladynole

Thank you very much. It worked like a charm.

"Bernie Deitrick" wrote:

=COUNTIF(G9:G10,"Yes")+COUNTIF(G12:G14,"Yes") + COUNTIF(G18,"Yes")+
COUNTIF(G24,"Yes")

HTH,
Bernie
MS Excel MVP


"ladynole" wrote in message
...
need help with formula. i want the total number of cells that contain
"yes"
from the following cells,G9,G10,G12,G13,G14,G18,G24 .. appreciate the
help..






All times are GMT +1. The time now is 04:47 PM.

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