[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Counting # of WOs in Excel meeting specific criteria (updated)

Posted on 2016-10-04
3
Medium Priority
?
50 Views
Last Modified: 2016-10-04
I realized in implementing a solution yesterday that I need a tweak.

The current formula is showing Column F (COUNT_WO) = 1 when Column D is not blank and Column E is blank. I need the formula to be revised so that Column F (COUNT_WO) = 0 if Column D is not blank and Column E is blank.

I am resubmitting my sample spreadsheet that uses the current formula as outlined below, and I've added a column called 'Desired Results' to show what I am after.

The current formula being used in the sample spreadsheet in F2 is:
=IF(AND(COUNTIF($A$2:A2,A2)=1,IFERROR(SEARCH("amd",B2),0)=0,NOT(ISBLANK(D2)),IFERROR(FIND("N/A",E2),0)=0),1,0)

SUMMARY OF CRITERIA
The criteria to be met:
Col A is not blank, and the number is unique (format of number is always "yyyy-#######")
Col B does not contain the text string "amd" or "AMD"
Col D is not blank
Col E is not blank, and does not contain "N/A"

Then:
Column F (COUNT_WO) = 1

If the above conditions are not met, then:
Column F (COUNT_WO) = 0

If Col D is not blank and Col E is blank, then:
Column F (COUNT_WO) = blank

If error, then:
Column F (COUNT_WO) = blank
EE_Summary_Count_WOs_Updated.xlsx
0
Comment
Question by:Andreamary
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 27

Accepted Solution

by:
Glenn Ray earned 2000 total points
ID: 41828356
Here is the revised formula.  It only needed an extra test inside the AND(...) function to see if the value in column E is not blank.
=IF(AND(NOT(ISBLANK(A2)),COUNTIF($A$2:A2,A2)=1,IFERROR(SEARCH("amd",B2),0)=0,NOT(ISBLANK(D2)),NOT(ISBLANK(E2)),IFERROR(FIND("N/A",E2),0)=0),1,0)

I also added a test to check if the value in column A is also not blank; that was left out of the previous formula.

-Glenn
0
 

Author Closing Comment

by:Andreamary
ID: 41828913
Perfect...thanks, Glenn!

Andrea
0
 
LVL 27

Expert Comment

by:Glenn Ray
ID: 41829048
You're welcome.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

650 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question