Excel - chechking corresponding data

  • Thread starter Thread starter royend
  • Start date Start date
R

royend

Hi,

I want to make a calculation based on two corresponding columns o
data. In B7:B500 the cells are blank or filled with an x. In C7:C50
the cells are blank or filled with a number.

I need to count how many rows have a number in C and at the same tim
is blank in B.

What I tryed was:
=SUMPRODUCT(COUNTIF(B7:B500,"=x"),COUNTIF(C7:C500,"<>"""))

It didn't work, so now I truly need some assistance from you.

Thanks in advance.

Ro
 
Hi and thanks for your suggestions.

Somehow it didn't work. It seems to be a bit moody today, and I can'
figure out why this ain't working...

The arrays should work though. The three first rows gives this:
(FALSE; TRUE; FASLE) and
(TRUE; TRUE; TRUE)

Which should give me the answer 1. But instead I get 0.

Any other ideas and tips are welcome.

Best Regards,
Ro
 
The arrays should work though. The three first rows gives this:
(FALSE; TRUE; FASLE) and
(TRUE; TRUE; TRUE)

Which should give me the answer 1. But instead I get 0.

Any other ideas and tips are welcome.

Best Regards,
Roy


Post the exact formula that gives you zero with

{FALSE;TRUE;FALSE} and {TRUE;TRUE;TRUE}

it sounds to me as you have some extra parenthesis in there
 
Two things.

First, did you try *both* formulas?
They're not *exactly* the same!
They will read column C differently.

Which leads to the second question.
How are the columns populated ... keyboard or formulas?

If formulas, try some keyboard entries with X's and numbers, and see what
results you get.
If you start seeing expected returns with keyboard entries, (which is what I
tested with, and expect Trevor did also), examine closely exactly what your
formulas are returning to those columns.

If you're still experiencing problems, post back with your formulas.
 
Thanks for great replies!

This seems to give me the correct answer:
=SUMPRODUCT(--(B7:B500="N"),--(C7:C500<100))

I have replaced the blanks with an N, so this formula counts where th
B column equals N and where the C column is less than 100.

Thanks again!

:)

Ro
 
Yep: blank or x in column B, blanks and numbers in column C, all keyed in
.... no imagination ;-)


Ragdyer said:
Two things.

First, did you try *both* formulas?
They're not *exactly* the same!
They will read column C differently.

Which leads to the second question.
How are the columns populated ... keyboard or formulas?

If formulas, try some keyboard entries with X's and numbers, and see what
results you get.
If you start seeing expected returns with keyboard entries, (which is what I
tested with, and expect Trevor did also), examine closely exactly what your
formulas are returning to those columns.

If you're still experiencing problems, post back with your formulas.
--
Regards,

RD

-------------------------------------------------------------------------- -
Please keep all correspondence within the NewsGroup, so all may benefit !
-------------------------------------------------------------------------- -
 

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.

Ask a Question

Back
Top