Solved

Microsoft Excel 2007 formula

Posted on 2012-04-13
2
390 Views
Last Modified: 2012-04-16
I need a count if formula where in Column A I have a name and Column B I have a value. I need a formula so that if A = a certain name it will return a 1 (just a simple count function) and if it doesn't have a value in Column B then it will return a 0.
0
Comment
Question by:mmcgillo88
[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 Comments
 
LVL 50

Assisted Solution

by:barry houdini
barry houdini earned 250 total points
ID: 37844942
Do you want to do that for the whole column? This will count rows that have your designated name in column A and where the corresponding row in column B is not blank

=COUNTIFS(A:A,D2,B:B,"<>")

where your name to count is in D2

regards, barry
0
 
LVL 42

Accepted Solution

by:
dlmille earned 250 total points
ID: 37845423
I think I would modify that so that for column B to return a 1 if the name is found and there are more than one occurrences of that name having a value that's not blank, and 0 if there are no matches of that kind, you would need:

=IF(COUNTIFS(A:A,D2,B:B,"<>")>0,1,0)

Dave
0

Featured Post

Office 365 Training for IT Pros

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

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

This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
Outlook for dependable use in a very small business   This article is about using the Outlook application (part of Microsoft Office) in a very small business, or for homeowners where dependability and reliability are critical requirements. This …
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

728 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