This is fully tested. I made sure it was not including the cells in between.
I put data in columns A - E and then included only columns A, C, E and it
did not include b and c in the sum. Why don't you try it.
I tried exactly the formula you quoted:
=COUNTIF((x12)z12)m12),3)
With X12, Z12, and M12 blank, putting a 3 in N12 gave a result of 1, and
also putting a 3 in Y12 increased the count to 2.
Clicking on the fx button next to the formula bar shows the 3 from N12 among
the long string of zeroes, making it clear that the range includes more than
just the 3 cells..
I tried exactly the formula you quoted:
=COUNTIF((x12)z12)m12),3)
With X12, Z12, and M12 blank, putting a 3 in N12 gave a result of 1, and
also putting a 3 in Y12 increased the count to 2.
Clicking on the fx button next to the formula bar shows the 3 from N12 among
the long string of zeroes, making it clear that the range includes more than
just the 3 cells..
Your formula also works in XL97 plus the fx button shows the whole range
including the intermediate values as David says but it only counts, (or sums
if you use SUMIF()), the referenced cells not the intermediate ones.
--
HTH
Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings
(e-mail address removed)
Replace @mailinator.com with @tiscali.co.uk
Your formula doesn't work on my machine with XL97. I get the same answere
with David Biddulph. To me your formula is not a "bullet proof" and won't
work on all machines.
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.