Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default How to Add columns if a condition exists

Hello;

I have a set of data lets say column A,B,C rows 1-?. I want to make a cell
where if A:X and B:X are both 0 add the number in A:X to a total. If B:X or
A:X are either not 0 then do not add. I would like to go through both
colums row by row and get a total to display in one cell. Any help would be
great. Also, A:X simply means Column A row X (whatever) whre the row for A
and B are the same. I would like to display the total in C:1. NOTE to avoid
confusion when comparing colums A and B, the row will be the sane and then to
the next row and so on...
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default How to Add columns if a condition exists

Put this in C1:

=SUMPRODUCT((A1:A1000)*(B1:B1000)*(A1:A100)*(B1: B100))

I've assumed you have 100 rows - adjust ranges to suit your data, but
you cannot use full-column references in Excel versions prior to 2007.

Hope this helps.

Pete

On May 5, 4:22*am, swanley007
wrote:
Hello;

I have a set of data lets say column A,B,C rows 1-?. *I want to make a cell
where if A:X and B:X are both 0 add the number in A:X to a total. *If B:X or
A:X are either not 0 then do not add. *I would like to go through both
colums row by row and get a total to display in one cell. *Any help would be
great. *Also, A:X simply means Column A row X (whatever) whre the row for A
and B are the same. *I would like to display the total in C:1. *NOTE to avoid
confusion when comparing colums A and B, the row will be the sane and then to
the next row and so on...


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
lookup with multiple condition, but one condition to satisfy is en Eddy Stan Excel Worksheet Functions 2 October 27th 07 02:06 PM
VBA:: determine if UDF exists? George[_3_] Excel Discussion (Misc queries) 1 May 7th 07 12:57 PM
Code to delete columns meeting a condition CEG Excel Discussion (Misc queries) 6 February 5th 07 05:03 PM
File Exists Mike McLellan Excel Discussion (Misc queries) 2 May 4th 06 09:20 AM
Need help with a function I'm not sure exists Cervantes Excel Worksheet Functions 7 August 16th 05 06:38 AM


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