Solved

Microsoft Excel 2007 formula

Posted on 2012-04-13
2
384 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
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 41

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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Excel Pivot Table with No Summary Fields 7 29
Excel Macro - Lookup-Highlight 4 24
Excel 3 22
Add macros on Open 9 29
As with any other System Center product, the installation for the Authoring Tool can be quite a pain sometimes. This article serves to help you avoid making these mistakes and hopefully save you a ton of time on troubleshooting :)  Step 1: Make sur…
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

707 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now