Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
jp
 
Posts: n/a
Default How do i create a countif formula in excel?

I need to count all the nonconsecutive cells in a given range that contain a
specific # 1-9. I have a formula that counts all the cells in the given
range: =countif(c4:k12,"1"). I need to modify it to count only the cells
d5,d8,d11,g5,g8,g11,j5,j8,j11 that contain the #1. I know there must be a way
but i am not familure enough with creating formulas to figure it out. Please
help. I am using excel 2002. jp
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default How do i create a countif formula in excel?

=SUMPRODUCT(COUNTIF(INDIRECT({"D5","D8","D11","G5" ,"G8","G11","J5","J8","J11
"}),1))

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"jp" wrote in message
...
I need to count all the nonconsecutive cells in a given range that contain

a
specific # 1-9. I have a formula that counts all the cells in the given
range: =countif(c4:k12,"1"). I need to modify it to count only the cells
d5,d8,d11,g5,g8,g11,j5,j8,j11 that contain the #1. I know there must be a

way
but i am not familure enough with creating formulas to figure it out.

Please
help. I am using excel 2002. jp



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Aladin Akyurek
 
Posts: n/a
Default How do i create a countif formula in excel?

If you have the free morefunc.xll add-in installed:

=SUMPRODUCT((ARRAY.JOIN(D5,D8,D11,G5,G8,G11,J5,J8, J11)=1)+0)

Otherwise:

=SUM(IF(MOD(ROW(D5:J11)-ROW(D5)+0,3)=0,IF(MOD(COLUMN(D5:J11)-COLUMN(D5)+0,3)=0,(D5:J11=1)+0)))

which must be confirmed with control+shift+enter, not just with enter.

jp wrote:
I need to count all the nonconsecutive cells in a given range that contain a
specific # 1-9. I have a formula that counts all the cells in the given
range: =countif(c4:k12,"1"). I need to modify it to count only the cells
d5,d8,d11,g5,g8,g11,j5,j8,j11 that contain the #1. I know there must be a way
but i am not familure enough with creating formulas to figure it out. Please
help. I am using excel 2002. jp

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
TRYING TO SET UP EXCEL SPREADSHEET ON MY COMPUTER MEGTOM New Users to Excel 5 October 27th 05 03:06 AM
Can I create an IF formula for single cell w/ dif. text in Excel? bennymichael Excel Discussion (Misc queries) 1 July 21st 05 08:59 PM
Can I create a formula in Excel that evaluates form information? SallyP Excel Worksheet Functions 4 June 14th 05 06:40 PM
Create an if-then formula in Excel to limit column total? Nancy M Excel Discussion (Misc queries) 2 February 13th 05 10:47 PM
How do I create a formula in Excel that will countif or sumif bef. bkclark Excel Worksheet Functions 4 November 10th 04 05:30 PM


All times are GMT +1. The time now is 12:33 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"