F
Francis Hookham
COUNTIF problem - I hope this makes sense!
A10 heads a column of box sizes:
40
50
..
..
220
230
B10:H10 contain:
Ar Et . . Sl Sy
On another sheet are two columns named 'AllLGs' and 'BoxHeights':
AllLGs BoxHeights
Ar 0001 100
Ar 0002 110
Ar 0004 110
..
..
Sy 2076 120
Sy 0278 50
Sy 0279 90
I am trying to count the number of boxes of each size under each heading but
this depends on both the box size below A10 and the LEFT(AllGGs,2) equalling
the column headers in B10:H10
So I was hoping the following would do it but it wont:
=COUNTIF(AND(BoxHeights,RC1),(left(AllLGs,2)=R10C))
I trust I have explained the problem well enough - maybe COUNTIF will not
accept two criteria using AND - or am I just not thinking clearly?
Francis Hookham
A10 heads a column of box sizes:
40
50
..
..
220
230
B10:H10 contain:
Ar Et . . Sl Sy
On another sheet are two columns named 'AllLGs' and 'BoxHeights':
AllLGs BoxHeights
Ar 0001 100
Ar 0002 110
Ar 0004 110
..
..
Sy 2076 120
Sy 0278 50
Sy 0279 90
I am trying to count the number of boxes of each size under each heading but
this depends on both the box size below A10 and the LEFT(AllGGs,2) equalling
the column headers in B10:H10
So I was hoping the following would do it but it wont:
=COUNTIF(AND(BoxHeights,RC1),(left(AllLGs,2)=R10C))
I trust I have explained the problem well enough - maybe COUNTIF will not
accept two criteria using AND - or am I just not thinking clearly?
Francis Hookham