Using IF function for an array of cells and 2 criteria

DonnaRonna

New Member
Joined
Sep 11, 2018
Messages
9
Hi,

I'm new to the forum and am hoping I can get some help.

I'm trying to search a worksheet for anywhere an error check (all error check calculations are labeled as such) is being done and then showing that either the error check calculations show no errors or show that there are errors being calculated.

Generally I'm trying to make the following work:

If D1:D200 contains the phrase "Error check" AND F1:F200 = 0, then display the word "Clear", otherwise display the word "Errors"

I haven't able to hit upon the right syntax to make that work.

Can anyone help?

Thanks

DonnaRonna
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Welcome to the Board!

You can use COUNTIF to count the number of times "Error check" occurs in your range. If it occurs 1 or more times, then you know if exists.

I am not quite clear on this part:
AND F1:F200 = 0
Are you looking for 0 to exist anywhere in that range?
Or only is cells where column D on the same row says "Error check"?
What other types of entries might appear in column D? Any blank cells?
 
Upvote 0
Thanks for the response!

I've thought about it a bit more and maybe this says it better

There are rows in the spreadsheet that are labeled Error Check, and have a calculation of the error amount. I want a formula that finds each row that has those error checks, and then totals the error amounts.

What I'm looking to do is check cell range C1:C200 for all the occurrences of the phrase "Error Check". Then for each of those occurrences, sum the values in the cells in column D adjacent to those "Error Check"s and display that.

Does that help?
 
Upvote 0
Hi,

Then based on your latest description, just a SUMIF would work:


Book1
CDEF
1Error check116
2No error2
3Error check3
4Error check4
55
6Not checked6
77
8Error check8
Sheet245
Cell Formulas
RangeFormula
F1=SUMIF(C1:C200,"Error check",D1:D200)
 
Upvote 0

Forum statistics

Threads
1,213,546
Messages
6,114,251
Members
448,556
Latest member
peterhess2002

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