#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 103
Default Count

i have data that looks like the following:

2 7
1 5
2 7
1 4
2 7

I need a formula that will find how many time the number 7 is in the right
column and add up the corresponding number in the left column. So the answer
for this example would be 6, found 3 sevens in right column so added 2+2+2.
I tried an index(...,match( but couldnt get it to work. Please help.
Thanks.

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...tions/200706/1

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,202
Default Count

i have data that looks like the following:

2 7
1 5
2 7
1 4
2 7

I need a formula that will find how many time the number 7 is in the right
column and add up the corresponding number in the left column. So the
answer
for this example would be 6, found 3 sevens in right column so added
2+2+2.
I tried an index(...,match( but couldnt get it to work. Please help.
Thanks.


Try this...

=SUMIF(B1:B5,"=7",A1:A5)

where I have assumed the first column of numbers is in A1:A5 and the second
column of numbers is in B1:B5.

Rick

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Count

=SUMIF(B1:B5,7,A1:A5)


"brownti via OfficeKB.com" wrote:

i have data that looks like the following:

2 7
1 5
2 7
1 4
2 7

I need a formula that will find how many time the number 7 is in the right
column and add up the corresponding number in the left column. So the answer
for this example would be 6, found 3 sevens in right column so added 2+2+2.
I tried an index(...,match( but couldnt get it to work. Please help.
Thanks.

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...tions/200706/1


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
Count Employee Work Time - Don't Double-count Overlapping Apts. J Excel Worksheet Functions 0 April 27th 07 05:52 AM
Excel 2000, count, sort a list & count totals? sunslight Excel Worksheet Functions 1 April 9th 07 05:46 PM
Count Intervals of 2 Consecutive Values in same Row and Return Count across Row Sam via OfficeKB.com Excel Worksheet Functions 6 November 29th 05 03:27 PM
Count Intervals of 1 Numeric value in a Row and Return Count down Column Sam via OfficeKB.com Excel Worksheet Functions 8 October 4th 05 04:37 PM
Count Intervals of Filtered TEXT values in Column and Return Count across a Row Sam via OfficeKB.com Excel Worksheet Functions 9 July 31st 05 03:37 AM


All times are GMT +1. The time now is 06:04 AM.

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"