#1   Report Post  
Shirley
 
Posts: n/a
Default Excel formula

I am using an excel spreadsheet to count the occurrences
in two different columns and can't figure out the
formula. For example, I want a total of cells that have
a "yes" in column L and a "yes" in column O, if there is
only a "yes" in one of the columns I don't want to count
it.
  #2   Report Post  
N Harkawat
 
Posts: n/a
Default

=sumproduct(--(L1:L1000="Yes"),--(O1:O1000="Yes"))

"Shirley" wrote in message
...
I am using an excel spreadsheet to count the occurrences
in two different columns and can't figure out the
formula. For example, I want a total of cells that have
a "yes" in column L and a "yes" in column O, if there is
only a "yes" in one of the columns I don't want to count
it.



  #3   Report Post  
 
Posts: n/a
Default

Hi

Try something like:
=SUMPRODUCT((L2:L11="yes")*(O2:O11="yes"))
When using SUMPRODUCT(), the ranges must contain the same number of cells,
and you cannot use full column references.

--
Andy.


"Shirley" wrote in message
...
I am using an excel spreadsheet to count the occurrences
in two different columns and can't figure out the
formula. For example, I want a total of cells that have
a "yes" in column L and a "yes" in column O, if there is
only a "yes" in one of the columns I don't want to count
it.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Formula in an Excel comment The Window Cleaner Excel Discussion (Misc queries) 0 March 10th 05 11:03 AM
Excel should have a simpler subtraction formula similar to "sum". Darius Excel Worksheet Functions 5 February 21st 05 11:14 PM
How do I get the formula bar in excel 2003 unionhall Excel Discussion (Misc queries) 1 February 17th 05 10:10 AM
Need excel formula to display 28.50hrs in HRS & MINS? rbc Excel Worksheet Functions 4 January 6th 05 12:21 PM
Suddenly Excel can't calculate formula!!! Bob H Excel Worksheet Functions 2 November 30th 04 08:35 PM


All times are GMT +1. The time now is 04:44 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"