Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 1
Default Excel Formula Problem

Is there anyone out there that can help me with a function please. My
objective is a formula which will read from a list of items and count them,
giving the result in a separate column/cell, ONLY if another cell in a column
says "Y" NOT counting the item if it says "N" ?

Thanks


  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2,276
Default Excel Formula Problem

Hi,

=SUMPRODUCT((A1:A10="??")*(b1:b10="Y"))

change range to fit your needs


"Carol @ Prison" wrote:

Is there anyone out there that can help me with a function please. My
objective is a formula which will read from a list of items and count them,
giving the result in a separate column/cell, ONLY if another cell in a column
says "Y" NOT counting the item if it says "N" ?

Thanks


  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 12
Default Excel Formula Problem

=COUNTIF(B1:B10,"Y")
where B1:B10 is the range with the "Y" or "N" values.
--
Rob Jordan
Powered by Creative Laziness


"Eduardo" wrote:

Hi,

=SUMPRODUCT((A1:A10="??")*(b1:b10="Y"))

change range to fit your needs


"Carol @ Prison" wrote:

Is there anyone out there that can help me with a function please. My
objective is a formula which will read from a list of items and count them,
giving the result in a separate column/cell, ONLY if another cell in a column
says "Y" NOT counting the item if it says "N" ?

Thanks


  #4   Report Post  
Posted to microsoft.public.excel.newusers
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Excel Formula Problem

=COUNTIF(B1:B10,"Y")
I'm afraid the above won't satisfy what the OP wanted, which was a
conditional count of a col of items dependent on the status indicated in
another col (the "Y" or "N" in this instance). Eduardo's response shows one
way to get there which has been noted by the OP.
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:27,000 Files:200 Subscribers:70
xdemechanik
---
  #5   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 12
Default Excel Formula Problem

But it would give the same answer as it doesn't matter which column you're
counting (unless I'm not completely understanding the problem). And it's
simpler, easier to maintain, and more intuitive for less advanced users.

--
Rob Jordan
Powered by Creative Laziness


"Max" wrote:

=COUNTIF(B1:B10,"Y")

I'm afraid the above won't satisfy what the OP wanted, which was a
conditional count of a col of items dependent on the status indicated in
another col (the "Y" or "N" in this instance). Eduardo's response shows one
way to get there which has been noted by the OP.
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:27,000 Files:200 Subscribers:70
xdemechanik
---



  #6   Report Post  
Posted to microsoft.public.excel.newusers
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Excel Formula Problem

I'd read OP as having sample data like this:

Item1 Y
Item2 Y
Item1 Y
Item2 N

where
Eduardo's: =SUMPRODUCT((A1:A10="Item1")*(B1:B10="Y")) returns 2
while your: =COUNTIF(B1:B10,"Y") returns 3

--
Max
Singapore
http://savefile.com/projects/236895
Downloads:27,000 Files:200 Subscribers:70
xdemechanik
---
"Rob Jordan" wrote:
But it would give the same answer as it doesn't matter which column you're
counting (unless I'm not completely understanding the problem). And it's
simpler, easier to maintain, and more intuitive for less advanced users.


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
problem with excel formula L. Wilson Excel Worksheet Functions 1 June 18th 08 02:40 AM
Excel formula problem Oregon Sailor Excel Discussion (Misc queries) 2 April 24th 07 05:10 PM
Excel Formula Problem prasanta Excel Discussion (Misc queries) 1 April 22nd 06 03:46 AM
Problem with formula in Excel Bill R Excel Worksheet Functions 3 August 15th 05 03:02 AM
EXCEL FORMULA PROBLEM detlghtpd Excel Discussion (Misc queries) 1 April 7th 05 12:22 AM


All times are GMT +1. The time now is 07:02 PM.

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

About Us

"It's about Microsoft Excel"