Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
nc nc is offline
external usenet poster
 
Posts: 119
Default how to sum all values of a variable that's repeated multiple times

I have a column where there are several variable, repeated many times.
On the right column the values of the variable ate given.
I want to add up all the values of each unique variable and get a table that
has all unique variables in one column and their corresponding summed up
values on the next cell.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default how to sum all values of a variable that's repeated multiple times

Hi,

Just highlight the range and create a pivot table. This will give you
exactly what you want.

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"NC" wrote in message
...
I have a column where there are several variable, repeated many times.
On the right column the values of the variable ate given.
I want to add up all the values of each unique variable and get a table
that
has all unique variables in one column and their corresponding summed up
values on the next cell.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,124
Default how to sum all values of a variable that's repeated multiple times

Sub sumifunique()
With Range("a1:a" & Cells(Rows.Count, "a").End(xlUp).Row)
.AdvancedFilter Action:=xlFilterCopy, _
CopyToRange:=Range("E1"), Unique:=True
Range("F1:f" & Cells(Rows.Count, "e").End(xlUp).Row) _
.Formula = "=sumif(a:a,e1,b:b)"
End With
End Sub


--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"NC" wrote in message
...
I have a column where there are several variable, repeated many times.
On the right column the values of the variable ate given.
I want to add up all the values of each unique variable and get a table
that
has all unique variables in one column and their corresponding summed up
values on the next cell.


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
Max no. of times a text repeated nsd Excel Discussion (Misc queries) 3 October 29th 08 05:40 PM
Inserting Data Repeated Times Dan Spracklin Excel Discussion (Misc queries) 1 November 10th 06 05:51 PM
Find multiple repeated values in a Pivot Table Tara H Excel Worksheet Functions 0 July 24th 06 11:46 AM
Looking up values,problem: they occure multiple times Wingman Excel Discussion (Misc queries) 3 April 18th 06 09:39 PM
Count No. of times Dates are repeated Mandeep Dhami Excel Discussion (Misc queries) 6 December 8th 05 02:55 AM


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