#1   Report Post  
heater
 
Posts: n/a
Default SUMIF cell = "Yes"

I have a column with a drop down list with "Yes" and "No". Another column
has values. I need a formula that sums the values only if "Yes" is selected.
If "No" is selected or the cell is blank, I don't want the value in column
"I" to be added. I have tried the following: =sumif(K25:K85, "Yes",I25:I85).
This sums all the values entered from I25:I85.
  #2   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

On Wed, 11 May 2005 13:49:22 -0700, heater
wrote:

I have a column with a drop down list with "Yes" and "No". Another column
has values. I need a formula that sums the values only if "Yes" is selected.
If "No" is selected or the cell is blank, I don't want the value in column
"I" to be added. I have tried the following: =sumif(K25:K85, "Yes",I25:I85).
This sums all the values entered from I25:I85.


And your problem is ???


--ron
  #3   Report Post  
CLR
 
Posts: n/a
Default

I dunno.........your formula seems to work for me in XL2k
I made my test drop down boxes with Data Validation.......maybe if you
made yours differently, therein lies the problem......


Vaya con Dios,
Chuck, CABGx3


"heater" wrote in message
...
I have a column with a drop down list with "Yes" and "No". Another column
has values. I need a formula that sums the values only if "Yes" is

selected.
If "No" is selected or the cell is blank, I don't want the value in

column
"I" to be added. I have tried the following: =sumif(K25:K85,

"Yes",I25:I85).
This sums all the values entered from I25:I85.



  #4   Report Post  
Bill Kuunders
 
Posts: n/a
Default

=SUMIF(K25:K85,"yes",I25:I85)
works for me
you need to check the exact spelling of Yes
there could be a space before or after.
Check the dropdown list.

Greetings from New Zealand
Bill K



"heater" wrote in message
...
I have a column with a drop down list with "Yes" and "No". Another column
has values. I need a formula that sums the values only if "Yes" is
selected.
If "No" is selected or the cell is blank, I don't want the value in column
"I" to be added. I have tried the following: =sumif(K25:K85,
"Yes",I25:I85).
This sums all the values entered from I25:I85.



  #5   Report Post  
heater
 
Posts: n/a
Default

The problem is it totals everything in column "I", no matter if cell
K25:k85="Yes", "No" or is blank. If column K25="NO", I do not want it to
total the sum in cell I25.

"Ron Rosenfeld" wrote:

On Wed, 11 May 2005 13:49:22 -0700, heater
wrote:

I have a column with a drop down list with "Yes" and "No". Another column
has values. I need a formula that sums the values only if "Yes" is selected.
If "No" is selected or the cell is blank, I don't want the value in column
"I" to be added. I have tried the following: =sumif(K25:K85, "Yes",I25:I85).
This sums all the values entered from I25:I85.


And your problem is ???


--ron



  #6   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

On Wed, 11 May 2005 14:39:18 -0700, heater
wrote:

The problem is it totals everything in column "I", no matter if cell
K25:k85="Yes", "No" or is blank. If column K25="NO", I do not want it to
total the sum in cell I25.


I can't reproduce this problem. You will need to provide more information. A
similar formula on my worksheet works as you describe.


--ron
  #7   Report Post  
bj
 
Posts: n/a
Default

something odd is definately happening
Try
=sumif(K25:K85,K25,I25:I85)
and toggel K25 back and forth to see what you get.


"heater" wrote:

I have a column with a drop down list with "Yes" and "No". Another column
has values. I need a formula that sums the values only if "Yes" is selected.
If "No" is selected or the cell is blank, I don't want the value in column
"I" to be added. I have tried the following: =sumif(K25:K85, "Yes",I25:I85).
This sums all the values entered from I25:I85.

  #8   Report Post  
heater
 
Posts: n/a
Default

It works now. I had one cell that had something wrong with it. Thanks.

"Ron Rosenfeld" wrote:

On Wed, 11 May 2005 14:39:18 -0700, heater
wrote:

The problem is it totals everything in column "I", no matter if cell
K25:k85="Yes", "No" or is blank. If column K25="NO", I do not want it to
total the sum in cell I25.


I can't reproduce this problem. You will need to provide more information. A
similar formula on my worksheet works as you describe.


--ron

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
Syntax for inferred cell references donesquire Excel Worksheet Functions 4 April 4th 05 09:29 PM
SUMIF, wildcard and cell ref Dave Excel Worksheet Functions 2 January 31st 05 08:13 PM
"criteria" in a sumif refering to the value in another cell mark Excel Discussion (Misc queries) 1 January 31st 05 07:39 PM
inserting data from a row to a cell, when the row number is specified by a formula in a cell [email protected] New Users to Excel 2 January 6th 05 07:18 AM
VLookup resulting in a blank cell... KempensBoerke Excel Worksheet Functions 1 October 28th 04 09:57 PM


All times are GMT +1. The time now is 08:08 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"