#1   Report Post  
Posted to microsoft.public.excel.misc
jimbob
 
Posts: n/a
Default Conditional Query


I have two columns with data, Col N and Col O. If Col O3:O278 has a
number =1, I want to take the corresponding value in Col N3:N278 and
sum it with all the other cells in Col N that also have a corrsponding
value=1 in Col O. So, if O3 has a "1", and O4 has a "1", I want to take
the value for N3 and N4 and sum them.


--
jimbob
------------------------------------------------------------------------
jimbob's Profile: http://www.excelforum.com/member.php...o&userid=29107
View this thread: http://www.excelforum.com/showthread...hreadid=506190

  #2   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default Conditional Query

It sounds like =sumif() should work ok for you:

=sumif(o3:o278,1,n3:n278)



jimbob wrote:

I have two columns with data, Col N and Col O. If Col O3:O278 has a
number =1, I want to take the corresponding value in Col N3:N278 and
sum it with all the other cells in Col N that also have a corrsponding
value=1 in Col O. So, if O3 has a "1", and O4 has a "1", I want to take
the value for N3 and N4 and sum them.

--
jimbob
------------------------------------------------------------------------
jimbob's Profile: http://www.excelforum.com/member.php...o&userid=29107
View this thread: http://www.excelforum.com/showthread...hreadid=506190


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
Bill Kuunders
 
Posts: n/a
Default Conditional Query


one way.....

=SUMPRODUCT(--(O3:O278=1),N3:N278)

Greetings from New Zealand
Bill K

"jimbob" wrote in
message ...

I have two columns with data, Col N and Col O. If Col O3:O278 has a
number =1, I want to take the corresponding value in Col N3:N278 and
sum it with all the other cells in Col N that also have a corrsponding
value=1 in Col O. So, if O3 has a "1", and O4 has a "1", I want to take
the value for N3 and N4 and sum them.


--
jimbob
------------------------------------------------------------------------
jimbob's Profile:
http://www.excelforum.com/member.php...o&userid=29107
View this thread: http://www.excelforum.com/showthread...hreadid=506190



  #4   Report Post  
Posted to microsoft.public.excel.misc
jimbob
 
Posts: n/a
Default Conditional Query


Well, I left one little detail out. After I sum the values in N3:N278, I
then need to divide that number by the number of times that a value of
"1" was found in O3:O278. Thanks so much for your help.


--
jimbob
------------------------------------------------------------------------
jimbob's Profile: http://www.excelforum.com/member.php...o&userid=29107
View this thread: http://www.excelforum.com/showthread...hreadid=506190

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
Conditional MS Query Dean Excel Worksheet Functions 1 January 10th 06 01:52 PM
Conditional Format Not Working KMH Excel Discussion (Misc queries) 0 December 22nd 05 05:32 PM
AHHH! Again JAA149 Excel Discussion (Misc queries) 0 October 31st 05 11:36 AM
AHHHH-Get Data from Multiple Excel workbooks JAA149 Excel Discussion (Misc queries) 5 October 30th 05 05:19 PM
How to preserve conditional formatting on a web query table result Simon L Excel Discussion (Misc queries) 9 February 26th 05 01:19 AM


All times are GMT +1. The time now is 09:40 AM.

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"