Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
TBoe
 
Posts: n/a
Default Summing 2 columns

I can't seem to figure this out...here's an example spreadsheet.

1 blue red
2 red red
3 blue blue
4 red red
5 red blue

I trying to get the sum of red only when red is equal in both columns.
In this case the the total would be 2. I tried count and sum if but I think
my syntax is all wrong. Thanks so much..............

Terry
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

=SUMPRODUCT(--(A1:A100="red"),--(A1:A100=B1:B100))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"TBoe" wrote in message
...
I can't seem to figure this out...here's an example spreadsheet.

1 blue red
2 red red
3 blue blue
4 red red
5 red blue

I trying to get the sum of red only when red is equal in both columns.
In this case the the total would be 2. I tried count and sum if but I

think
my syntax is all wrong. Thanks so much..............

Terry



  #3   Report Post  
TBoe
 
Posts: n/a
Default

YOU! YOU! Your good! You my man are a genius. Many, many thanks.
Now! Can you point me to a good website so I can understand that formula?

Thanks again
Terry


"Bob Phillips" wrote:

=SUMPRODUCT(--(A1:A100="red"),--(A1:A100=B1:B100))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"TBoe" wrote in message
...
I can't seem to figure this out...here's an example spreadsheet.

1 blue red
2 red red
3 blue blue
4 red red
5 red blue

I trying to get the sum of red only when red is equal in both columns.
In this case the the total would be 2. I tried count and sum if but I

think
my syntax is all wrong. Thanks so much..............

Terry




  #4   Report Post  
Bob Phillips
 
Posts: n/a
Default

Indeed I can

http://www.xldynamic.com/source/xld.SUMPRODUCT.html

--

HTH

RP
(remove nothere from the email address if mailing direct)


"TBoe" wrote in message
...
YOU! YOU! Your good! You my man are a genius. Many, many thanks.
Now! Can you point me to a good website so I can understand that formula?

Thanks again
Terry


"Bob Phillips" wrote:

=SUMPRODUCT(--(A1:A100="red"),--(A1:A100=B1:B100))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"TBoe" wrote in message
...
I can't seem to figure this out...here's an example spreadsheet.

1 blue red
2 red red
3 blue blue
4 red red
5 red blue

I trying to get the sum of red only when red is equal in both columns.
In this case the the total would be 2. I tried count and sum if but I

think
my syntax is all wrong. Thanks so much..............

Terry






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
Not summing a columns? Nicole Excel Worksheet Functions 2 April 23rd 05 03:30 PM
Columns in Excel will not allow user to click in them Kim Excel Discussion (Misc queries) 1 December 28th 04 06:37 PM
Summing values of corresponding columns lanceg Excel Worksheet Functions 0 November 7th 04 10:56 AM
Summing values of corresponding columns lanceg Excel Worksheet Functions 2 November 5th 04 05:41 AM
Summing values of corresponding columns lanceg Excel Worksheet Functions 0 November 4th 04 10:10 PM


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