MartinS
Active Member
- Joined
- Jun 17, 2003
- Messages
- 487
- Office Version
- 365
- Platform
- Windows
Can't think how to do this this morning!
I have some data (wedding guests) in a spreadsheet, and we are working out costings for food/travel etc, so have multiple columns. The first column is name(s), i.e.
Fred & Barbara
Jon & Rob
Sarah
Betty & Barnie
Gabbi
I wanted to count the number of guests, so used the following formula:
So, for the selection above, returns 8.
What I also need is to count the number of guests with 'Yes' in another column, and that's where I'm struggling!
Fred & Barbara Yes
Jon & Rob No
Sarah Yes
Betty & Barnie Yes
Gabbi No
So my formula wants to know how many guests have said yes - in the example above, it should return 5.
The formula needs to count each row that has 'Yes' in column 2, and then for each 'Yes' row, the number of guests.
Hope that makes sense?
Thanks
Martin
I have some data (wedding guests) in a spreadsheet, and we are working out costings for food/travel etc, so have multiple columns. The first column is name(s), i.e.
Fred & Barbara
Jon & Rob
Sarah
Betty & Barnie
Gabbi
I wanted to count the number of guests, so used the following formula:
Excel Formula:
=(COUNTA(B4:B9)-COUNTIF(B4:B9,"*&*"))+COUNTIF(B4:B9,D11)*2
What I also need is to count the number of guests with 'Yes' in another column, and that's where I'm struggling!
Fred & Barbara Yes
Jon & Rob No
Sarah Yes
Betty & Barnie Yes
Gabbi No
So my formula wants to know how many guests have said yes - in the example above, it should return 5.
The formula needs to count each row that has 'Yes' in column 2, and then for each 'Yes' row, the number of guests.
Hope that makes sense?
Thanks
Martin