Formula help

Posted on 2011-09-26
Last Modified: 2012-05-12

Can someone please explain to me how I would get the following?

On the attached spreadsheet I have some data that I would like to add together.
I would like to count for example both column A and column H as one if they both say “Yes”
Would this be an IF statement?
Question by:vegas86
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
  • 2
  • 2
  • +1
LVL 50

Expert Comment

by:Ingeborg Hawighorst
ID: 36640608

if you want to return a 1 if both column A and H in a given row equals Yes, then use in row 2


copy down.

cheers, teylyn

Author Comment

ID: 36644130
Hey Teylyn,

Sorry I worded that wrong. What you did is perfect but is there any chance i can do the entire columns at once? so count how many rows that have yes is both columns A and H and return a number?
LVL 26

Expert Comment

ID: 36645596
... or, if you're trying to count Yes's but treat A and H as one then...


Please see attached.

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

LVL 51

Expert Comment

by:Huseyin KAHRAMAN
ID: 36647579
N1: BothYes
N2: =IF(AND(A2="Yes", H2="Yes"),1,0)
Copy down


you can hide column N if you wish
LVL 51

Expert Comment

by:Huseyin KAHRAMAN
ID: 36647762
here how it works...
LVL 50

Accepted Solution

Ingeborg Hawighorst earned 500 total points
ID: 36648356
You can use countifs()


cheers, teylyn

Author Closing Comment

ID: 36669249
Thanks for all your help and suggestions guys. Thank you Teylyn the countif was exactly what i needed!

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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,…
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

740 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