View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.misc
Hugsie Bear Hugsie Bear is offline
external usenet poster
 
Posts: 4
Default Counting a specific number only if an adjacent cell has something

Hi,

I am trying to work out how to use if and count if to count the number of
cells with a certain number in, but only if a cell in an adjacent coloumn has
something in it. If statements don't seem to take ranges for its logical
test, and countif doesn't seem to want to allo me to define the criteria as,
cell=1 AND adjacent cell < 0

My data is something like

1 100
1
1 15
2
2 67
1 34
3 82
3
2
3 43

I want to get a readout of the number of 1's that have something in adjacent
coloumn.

Thanks in advance

Hugsie