Data counting from different sheets !

alinpion

Board Regular
Joined
Jul 12, 2011
Messages
79
Hello!

I want to count every time whet a cell calue is equal to 0 , different than 0 and cell value varies between -5 and + 5 ; every time when one of this conditions is met the formula will wount 1 and place it in corespondend column. The counting will be done for pairs of 5 cells. (please see atachement)

An example of what I want to do is attached !!

http://www.sendspace.com/file/kh7sb4<!-- / message --><!-- attachments -->
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Any ideas on how to count is cell value is in the -5 : +5 range ;

I've tried =COUNTIF(data!A2:A6; {">=-5";"<5"}) but it doesn't work !!
 
Upvote 0
=SUM(COUNTIF(data!A2:A6; {">=-5";"<5"}))

is what you mean to have...

I've solve that ; the formula was :
=COUNTIF(data!A2:A6; ">=-5")-COUNTIF(data!A2:A6; ">=5")

Now I need to know how to do this :

if formula is in B2 do COUNTIF(data!A2:A6; "=0") ; if formula is in B3 do COUNTIF(data!A7:A11; "=0") ; B4 A12:A16 and so on from 5 to 5 cells

I need a formula that will detect the cell in witch is placed and base on that it will determin the cells witch will be counted (ex: if formula in B2 then COUNTIF(data!A2:A6; "=0") like above)<!-- / message --><!-- edit note -->
 
Upvote 0
You know how this formula =COUNTIF(data!A2:A6; "=0") shold give a blank (" ") is all cells A2:A6 are blank
 
Upvote 0

Forum statistics

Threads
1,224,607
Messages
6,179,871
Members
452,948
Latest member
UsmanAli786

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top