Count one column by the result of another column?

mv8167

Board Regular
Joined
Apr 27, 2005
Messages
103
I am trying to count a column. My goal is for each Manual test found, I want to check to see if a date is present in another column. If a date is found, then add 1 to a counter. Same thing, I would like to check for each Manual test if a Pas or Fail was issued.

I am trying to refference a column looking for the word Manual. If the function finds the word Manual, I want it to look in another column (same row) to find the date. If there is a date, then add 1 to conut. If space is blank/empty, continue to next Manual row.

I have been trying a few solutions witrh no luck:

=IF(COUNTIF(B3:B152,"=*manual*"),COUNTIF(C3:C152,("")))

=IF(COUNTIF(B3:B152,"=*manual*"),COUNTA(C3:C152,("")))

=IF(COUNTIF(B3:B152,"=*manual*"),SUMIF(COUNTA(C3:C152,("")))

ETC...

Is it even possible to ?
 
Aladin,

Thanks, that worked fine.

Last one, if I want to count the tests that are not Manual, or empty lines, would I use:

=SUMPRODUCT(1-ISNUMBER(SEARCH("Manual",B3:B152)),1-ISNUMBER(SEARCH("",B3:B152)))
 
Upvote 0

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Aladin,

I was trying to evaluate your formula:

Aladins Formula:
Code:
=SUMPRODUCT(--ISNUMBER(SEARCH("manual";A1:A10));--ISNUMBER(B1:B10))

Can you please confirm:
*do you use the isnumber to convert error values resulting from the search function into Falses?
*then with -- you get them back to 0 and 1's/

trying to learn here. thanks for teaching.[/b]
 
Upvote 0
shodan said:
Aladin,

I was trying to evaluate your formula:

Aladins Formula:
Code:
=SUMPRODUCT(--ISNUMBER(SEARCH("manual";A1:A10));--ISNUMBER(B1:B10))

Can you please confirm:
*do you use the isnumber to convert error values resulting from the search function into Falses?

Yes.

*then with -- you get them back to 0 and 1's/

Yes.
 
Upvote 0
mv8167 said:
Aladin,

Thanks, that worked fine.

Last one, if I want to count the tests that are not Manual, or empty lines, would I use:

=SUMPRODUCT(1-ISNUMBER(SEARCH("Manual",B3:B152)),1-ISNUMBER(SEARCH("",B3:B152)))

Either:

=SUMPRODUCT(1-ISNUMBER(SEARCH("Manual",B3:B152)),--(B3:B152<>""))

Or:

=SUMPRODUCT(1-ISNUMBER(SEARCH("Manual",B3:B152)),1-ISBLANK(B3:B152))
 
Upvote 0

Forum statistics

Threads
1,216,100
Messages
6,128,824
Members
449,470
Latest member
Subhash Chand

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top