Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Andres
 
Posts: n/a
Default Sum of rows in same column if x=x

Good afternoon everyone:

I need to sum the values of different rows in the same column if the match a
value in the column.
10
111
20
111
30
112
40
112
42
143
15

all the information is in the same column and I need to add the rows if they
match a value, for example if 111 total 30 if 112 total 50 if 143 total 15

How can I do this?

Cheers,

Andres Angel
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Spreadsheet
 
Posts: n/a
Default Sum of rows in same column if x=x


From your post I'm not really sure what you are trying to do. Can you
clarify your question?


--
Spreadsheet
------------------------------------------------------------------------
Spreadsheet's Profile: http://www.excelforum.com/member.php...o&userid=34730
View this thread: http://www.excelforum.com/showthread...hreadid=554303

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Andres
 
Posts: n/a
Default Sum of rows in same column if x=x

What I need is to have the total number of items that hve the same header.
so if 2 or more rows have aheader 111 i need to add the values avobe each
row with the number 111.
If the value is 148 I need to add all the rows avobe the value 148.
A1 5
A2 111
A3 8
A4 148
A5 5
A6 148
A7 10
A8 111
So

111 15
148 13

I hope this helps you clarify.

Thanks


"Andres" wrote:

Good afternoon everyone:

I need to sum the values of different rows in the same column if the match a
value in the column.
10
111
20
111
30
112
40
112
42
143
15

all the information is in the same column and I need to add the rows if they
match a value, for example if 111 total 30 if 112 total 50 if 143 total 15

How can I do this?

Cheers,

Andres Angel

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Spreadsheet
 
Posts: n/a
Default Sum of rows in same column if x=x


Here' s a formula that works for your example

C2=SUMIF(A2:A8,C1,A1:A7)

In C1 enter the number that you want to sum each row above.

For example, if C1=111 then C2=15
and if C1=148 then C2=13

This formula can easily be expanded to fit your range of data. Just
change the A2:A8 to A2:A(last row number) and change the A1:A7 to
A1:A(last row number - 1). Hope that helps.


--
Spreadsheet
------------------------------------------------------------------------
Spreadsheet's Profile: http://www.excelforum.com/member.php...o&userid=34730
View this thread: http://www.excelforum.com/showthread...hreadid=554303

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
Return SEARCHED Column Number of Numeric Label and Value Sam via OfficeKB.com Excel Worksheet Functions 23 January 30th 06 06:16 PM
Need rows in Column A removed if they fully or partially match with any Column B row [email protected] Excel Discussion (Misc queries) 1 August 21st 05 11:41 PM
Question regarding how to search a column and print a row(s) Max Excel Discussion (Misc queries) 0 July 15th 05 04:14 AM
match and count words David Excel Worksheet Functions 5 July 4th 05 02:24 AM
moving alternating rows to a column with the order staying the sam Duke Carey Excel Discussion (Misc queries) 0 April 27th 05 09:51 PM


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