Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 21
Default Sumif question - I think?

Column A contains part #s that are listed a varying amount of times
F8Z100
F8Z100
F8Z101
F8Z102
F8Z102
F8Z102
F8Z102

Colum B contains a value associated with the part # in column A
10
15
12
15
11
9
3

In Column C I want a formula that totals the values from Column B if they
have the for the same part # in Column A. (Desired result below)
25
12
-
-
-
38
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 964
Default Sumif question - I think?

Here's one option:

=IF(COUNTIF($A$1:A1,A1)=COUNTIF(A:A,A1),SUMIF(A:A, A1,B:B),"-")

Enter into column C and copy down as needed.

HTH,
Elkar


"irvine79" wrote:

Column A contains part #s that are listed a varying amount of times
F8Z100
F8Z100
F8Z101
F8Z102
F8Z102
F8Z102
F8Z102

Colum B contains a value associated with the part # in column A
10
15
12
15
11
9
3

In Column C I want a formula that totals the values from Column B if they
have the for the same part # in Column A. (Desired result below)
25
12
-
-
-
38

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default Sumif question - I think?

Create a list with distinct values by select column A including the header,
then do datafilteradvanced filter, select copy to another location and
unique records, then use something like

(assume the filtered list starts in H2 with the header in H1)

=SUMIF(A:A,H2,B:B)

then copy down


--


Regards,


Peo Sjoblom


"irvine79" wrote in message
...
Column A contains part #s that are listed a varying amount of times
F8Z100
F8Z100
F8Z101
F8Z102
F8Z102
F8Z102
F8Z102

Colum B contains a value associated with the part # in column A
10
15
12
15
11
9
3

In Column C I want a formula that totals the values from Column B if they
have the for the same part # in Column A. (Desired result below)
25
12
-
-
-
38



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Sumif question - I think?

Try something like this:

=IF(COUNTIF(A$1:A1,A1)=1,SUMIF(A$1:A$100,A1,B$1:B$ 100),"")

This will give you the sum against the first occurence of a part
number. I have assumed 100 rows of data - adjust to suit.

Hope this helps.

Pete

On Oct 24, 12:01 am, irvine79
wrote:
Column A contains part #s that are listed a varying amount of times
F8Z100
F8Z100
F8Z101
F8Z102
F8Z102
F8Z102
F8Z102

Colum B contains a value associated with the part # in column A
10
15
12
15
11
9
3

In Column C I want a formula that totals the values from Column B if they
have the for the same part # in Column A. (Desired result below)
25
12
-
-
-
38



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
SUMIF question Shan Excel Discussion (Misc queries) 1 December 3rd 06 03:34 AM
Question about SumIF zhuanyi Excel Worksheet Functions 3 August 11th 06 04:39 AM
SUMIF Question Brig Siton Excel Worksheet Functions 3 January 25th 06 05:16 PM
Sumif question J Shrimps, Jr. Excel Worksheet Functions 5 January 20th 06 05:26 PM
SUMIF question alice Excel Discussion (Misc queries) 2 November 24th 05 02:55 PM


All times are GMT +1. The time now is 04:12 PM.

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"