Solved

Microsoft Excel 2007 formula

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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

Microsoft Office Picture Manager is not included in Office 2013. This comes as a shock to users upgrading from earlier versions of Office, such as 2007 and 2010, where Picture Manager was included as a standard application. This article explains how…
How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

726 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