
Signature
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email
> Could anyone sort out this formula please. I've tried various combinations
> but seem to be stuck.
[quoted text clipped - 10 lines]
>
> Bryan.
Thanks for that Bernard, all I get is a circular ref problem. It also needs
to cover the whole 512 cells. It could be up to 30 blocks of 1's and needs
to be automatic as it has to be equal another cell and the N 1's counted
individually (which is simple for even me =sum (c5:c512). then multiplied.
i.e. ? blocks by ? occasions by say 5 blocks x 5 occasions x 20 days S=S D.
5X5X20.
>I am short of time but this seems to for me
> Give it a try with some data you can count in your head.
[quoted text clipped - 14 lines]
>>
>> Bryan.
Gord Dibben - 16 Feb 2008 21:46 GMT
Circular reference would come from having the formula within the range of cells.
=SUMPRODUCT(--(C1:C512=1),--(C2:C513<>1)) entered in D1 for testing.
I tested on column C with 50 known blocks of 1's in the C1:C512 range.
Bernard's Formula returned 50
Gord Dibben MS Excel MVP
>Thanks for that Bernard, all I get is a circular ref problem. It also needs
>to cover the whole 512 cells. It could be up to 30 blocks of 1's and needs
[quoted text clipped - 21 lines]
>>>
>>> Bryan.
Bryan De-Lara - 16 Feb 2008 22:02 GMT
Thanks Gord. I know my problem now, I was entering it in the wrong cell.
Nice when people take the trouble, many many thanks.
Bryan.
> Circular reference would come from having the formula within the range of
> cells.
[quoted text clipped - 35 lines]
>>>>
>>>> Bryan.