Two Plus Two Older Archives  

Go Back   Two Plus Two Older Archives > 2+2 Communities > Other Other Topics
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-20-2005, 07:07 PM
Bradyams Bradyams is offline
Senior Member
 
Join Date: Jan 2005
Posts: 566
Default Excel Question

Here's an example of what I need:



In the yellow cells I want to sum the values in the "J" column corresponding to the letter in the "I" column. I know that I can use "sumif=I1:I6,"X",J1:J6" for that. Here's the catch though, I only want to use values that have a "No" next to them in the "K" column.

I hope that's clear. Is it possible?

Thanks.
Reply With Quote
  #2  
Old 09-20-2005, 07:29 PM
Dynasty Dynasty is offline
Senior Member
 
Join Date: Sep 2002
Location: Las Vegas
Posts: 4,044
Default Re: Excel Question

An intermediary step should do the job.

Basically, in collumn L, write a forumula which says "If K=Yes, then L=0; If K=No, then L=J.

Then use your original forumula in the new collumn L.

If this hurts the visual presentation, then just hide collumn L.
Reply With Quote
  #3  
Old 09-20-2005, 07:31 PM
Bradyams Bradyams is offline
Senior Member
 
Join Date: Jan 2005
Posts: 566
Default Re: Excel Question

I had an intermediate step in my actual worksheet, but I didn't like the way it looked. I didn't know that you could hide columns though.

Thanks again
Reply With Quote
  #4  
Old 09-20-2005, 07:45 PM
Keats13 Keats13 is offline
Member
 
Join Date: Mar 2004
Location: MA
Posts: 33
Default Re: Excel Question

Try (for A, for example)

=sum((i$1:i$6=m2)*(k$1:k$6="No")*j$1:j$6)

Then hit CTRL+SHIFT+ENTER (not just enter)

(The $ are not necessary, but enable you to copy & paste with ease.)
Reply With Quote
  #5  
Old 09-20-2005, 08:04 PM
bravos1 bravos1 is offline
Senior Member
 
Join Date: Jun 2005
Location: In too deep
Posts: 323
Default Re: Excel Question

[ QUOTE ]
Try (for A, for example)

=sum((i$1:i$6=m2)*(k$1:k$6="No")*j$1:j$6)

Then hit CTRL+SHIFT+ENTER (not just enter)

(The $ are not necessary, but enable you to copy & paste with ease.)

[/ QUOTE ]

OR you can just put this formula in N2 and drag it down

=SUMPRODUCT(--($I$1:$I$6=$M2),--($K$1:$K$6="No"),$J$1:$J$6)

If you want to count a yes instead, then just change No to Yes.

These 2 are basically the same except I used SUMPRODUCT where keats just used SUM, but "manually" added the product by multiplying.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:27 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.