Summing The Items Of Each Of Different Groups In A Table

Nov 24, 2009

Items, of 3 different groups, and their values are entered in a table progressively, over a year period . I am trying to work out a way of getting the month total value of each of the 3 groups seperately, for each month of the year. A sample worksheet is attached

View 10 Replies


ADVERTISEMENT

Summing Groups

Apr 16, 2008

What I want is to sum any/all groups of numbers larger than 0 that are grouped in 4 or more....e.g. in my example D1:G1. The answer should be 150.... I'm trying this formula: ...

View 9 Replies View Related

VBA Code - Summing Groups Of Numbers

Jul 17, 2014

Product Group Arg.Braz.Mex.Peru
Red paint Paint5324
Blue paintPaint5684
WallpaperWallpaper6585
LampsFurniture 4631
ChairsFurniture 1645
Green paintPaint1356
SofasFurniture 3358

SUM(Paint,Argentina)SUM(Paint,Brazil)SUM(Paint,Mexico)SUM(Paint,Peru)
SUM(Wallpaper,Argentina)SUM(Wallpaper,Brazil)SUM(Wallpaper,Mexico)SUM(Wallpaper,Peru)
SUM(Furniture,Argentina)SUM(Furniture,Brazil)SUM(Furniture,Mexico)SUM(Furniture,Peru)

I am trying to work out VBA code or another way in Excel to find a solution for this problem - I need to be able to sum up the values that I have posted below - so for SUM(Paint,Argentina), this would be the sum of the red paint, blue paint and green paint values under the Argentina heading, that are all categorised into the 'Paint' group. The same follows for all the other categories. I was trying to use 'Defined Names' to group the categories together, and so would then do =Sum(Paint). However this was not allowing me to sum by each country, and the 'Create from Selection' naming tool was not naming all of the values for Paint (blue paint, red paint, etc.) under the paint category.

This is an incredibly simplified version of the data I am actually dealing with - I am doing this for 70 country columns and 250 rows of product categories.

View 4 Replies View Related

Summing Colored Items

Jun 18, 2007

I have a worksheet that has values in column F. I would like VBA code that will sum all the highlighted items in column F.

View 9 Replies View Related

Counting/Summing Items

Jul 20, 2009

I have a separate sheet with the followingvery simplified as I probably have over 300 lines of dates and dollars)

Date Dollars

2/3/2009 $25
5/3/2009 $30
5/4/2009 $50
7/4/2009 $100
8/7/2009 $25

On another sheet, I want to count the number of items by month submitted and sum the $ amount.

January $0
Febuary $25
March $0
April $0
May $80
June $0
July $100
August $25
Through December

Pivot table would be best if possible....but any function that would work would be fine.

View 9 Replies View Related

Summing Multiple Items Based On A String In A Cell?

Jan 24, 2014

I have columns (1-7) containing values of time these columns are labelled G,R,A,S,D,B,T by 850 rows (which are locations/jobs)

The next set of columns (1-7 determins what week the work takes place) so you will get a G in a cell or GR etc.

I would like a formula to work out the sum of the time columns by the code in the corresponding cell - I am stuck!

Seantc example.xlsx

View 7 Replies View Related

Create Groups In Pivot Table Using VBA

Jan 26, 2012

I regularly build a pivot table using VBA. I now want to group countries into regions within the pivot table, and I want to automate that using vba.

For simplicity, assume I have the countries Germany, Netherlands, Belgium, Luxembourg, Norway and Sweden; and I want to create the Groups BeNeLux and Scandinavia. (In reality, I have 150 countries, one group of 10 countries, 2 countries I want to show individually, and the rest of the world I want to group together)

I know I could select the cells using something like cells(d2:f2).group, but that seems wrong....

I have attached a file showing how far I can get with vba and where i want to get.

I have also tried things like ".DataRange.cells(2).group by:=3" but that never led to anything....

grouping reqs.xls

View 2 Replies View Related

Pivot Table Update Within Groups

Sep 30, 2008

I have a data table that looks somewhat like this a number of rows of "Date", "ID#" and other extraneous fields.

I have a pivot table that simply lists the total count by date, then i grouped it by month and then by quarter:

Date4 Date2 Date Count of ID 2008-Q4 76 October 2008 29
10/1/08 8
10/15/08 19
10/21/08 1
10/31/08 1

November 2008 25
11/1/08 2
11/15/08 19
11/21/08 1
11/29/08 2
11/30/08 1

December 2008 22
12/1/08 1
12/15/08 19
12/21/08 1
12/31/08 1

My problem is, when i add a new row to the main table, say with a date of "December 20, 2008", and refresh the pivot table, the information ends up clear at the bottom (in this case, after the year 2014).

I figured the pivot refresh would place the data among the other December 2008 rows in the pivot table.

View 9 Replies View Related

Separate The Data From A Table Based On Certain Groups

May 12, 2009

I have a worksheet with 10000 records. For example, entire data in ColA-ColZ. In that, ColA-ColF - Personal Information; ColG-J Group1; ColK-N Group2; ColO-R Group3; ColS-U Group4; ColW-Z Group5. I this case, the data to be copied into another sheet as follows:

1) the personal data should be copied repeatedly.
2) Each Group data should be copied next to personal data.
3) The group's name is mentioned at the top of the datasheet.

I have attached a sample workbook for your kind reference.

View 2 Replies View Related

Display Table Data In Related Groups

Mar 12, 2008

I have an excel document that contains two columns and ithe columns there are more than 50000 rows of data. The first column contains numbers and the second column contains text filled from only three values for example work, work 1 and work 2.
I want to see only the three identical same values from column A where the values from column B are diferent.Example of how to look the result criteria:

Column A Column B
123456 work
123456 work 1
123456 work 2

View 5 Replies View Related

Summing A Row From A Table Of Data

Oct 27, 2009

The formula is in C4, and I am trying to sum the data when the value of B4 is matched in the table. see attached.

View 4 Replies View Related

Summing A Pivot Table Based On For Criterias

Jan 16, 2009

I do not know if this is possible, I have a pivot table, however I would like to be able to sum a particular range based on start and end date. then by make and model as the second set of criteria, The sum would be displayed into a form on a different worksheet. attached is a file so I would like to know the total

View 3 Replies View Related

Summing Multiple Table Values Using VLookup

May 20, 2013

I'm trying to get a more manageable formula for totaling multiple values in one box using Vlookup. For clarification this is what I mean:

On spreadsheet A, I have this table:
[IMG][/IMG]

The value in B2 is the name of the item I am making and the items below are the components required to manufacture said item. In order to build them, I need so many (Column E) and I have indexed my remaining values simply by doing =E3-H3. To build each component requires minerals which are listed on a seperate sheet (Sheet B) as such:

[IMG][/IMG]

The only Value in the above table I am truly interested in is "Current" (E Column).

Back on SheetA, I have a second table which adds all of the component minerals up for a grand total of the minerals required to make the item in B2 as such:
[IMG][/IMG]

Now, this is my issue: The code for N3 is incredibly unwieldy:

=IF($F$3>0, $F$3*VLOOKUP($L3,
'Component Materials'!$A$15:$E$21,5,FALSE))+IF($F$4>0, $F$4*VLOOKUP($L3,
'Component Materials'!$A$25:$E$31,5,FALSE))+IF($F$5>0, $F$5*VLOOKUP($L3,
'Component Materials'!$A$45:$E$51,5,FALSE))+IF($F$6>0, $F$6*VLOOKUP($L3,
'Component Materials'!$A$55:$E$61,5,FALSE))+IF($F$7>0, $F$7*VLOOKUP($L3,
'Component Materials'!$A$65:$E$71,5,FALSE))+IF($F$8>0, $F$8*VLOOKUP($L3,
'Component Materials'!$A$115:$E$121,5,FALSE))+ IF($F$9>0, $F$9*VLOOKUP($L3,
'Component Materials'!$A$135:$E$141,5,FALSE))

I set this up to look at a specific value and if it was >0, it would multiply that value times whatever value it found on SheetB ("Component Materials"). The size of this formula makes this difficult to migrate to further items, so I would like to reduce the complexity of the formula.

View 7 Replies View Related

Pivot Table - Stop It Summing Date Entries

Dec 5, 2013

How do I stop a pivot table adding data together?

e.g.

1st Nov -100
1st Nov - 100
2nd Nov - 200
2nd Nov -200

I want this but instead get this:

1st Nov - 200
2nd Nov - 400

I need the pivot to split it out,

View 1 Replies View Related

Listing Unique Values And Summing W/o A Pivot Table

May 27, 2009

I have a set of data that I'm trying to identify the unique values in a column and then sum the related quantites against each of those values:

View 14 Replies View Related

Summing Data In A Table Using Row And Column Criteria (with Multiple Instances)

May 14, 2013

I have a table that looks like the following, only it's actually much larger:

_Red Blue Green Blue
A 2 4 2 3
B 5 2 1 1
C 3 1 2 5
D 2 3 4 2

As an example, I'm trying to sum all cells that match Blue and C. The answer should be 6, but I always end up with either zero or #VALUE.

View 4 Replies View Related

Looking Up Items In Price Table

May 9, 2014

I have a price table with about 70,000 line items (some lines are duplicates).

There are about 12 columns each with different qualities such as item name, size, thickness, price and etc.

I've been building this table in excel and just importing it into Access for the time being.

When a customer sends me an order, I'd like to be able to look up the items in my price table (matching across multiple columns) and automatically return the price for each item.

So far, I've been using the following formula....

=LOOKUP(2,1/($A$1:$A$60000=D1),$B$1:$B$60000)

With A5:A60000 = price list concatenate so all columns in 1
D1 = item I'm searching for
B1:B60000 = prices for items

The only thing is that this is very labor intensive.

The only thing is my customers will typically submit an order and it is NOT in the same format as I need it to be.

So it's very labor intensive and I spend hours just editing their order in a spreadsheet so that it follows the format I need it to.

View 1 Replies View Related

Sorting Items In A Table

Nov 24, 2008

I've got this table that I want to sort. I've got it formatted as a table in Excel 07.

ABDescription
11Sunbake
24Make Sandcastle
35Apply Sunscreen
46Sip Coconut Mocktail
52Play with kids
66Seashells
72Starfish
83Swim
91Snorkel
2Surf
3Boogieboarding
4Eat Icecream
1Play beach volleyball

I'd like to sort the table where all the 1's are together and in line with column A ie......

View 2 Replies View Related

Arrange Items In Table?

Dec 21, 2012

Im developing one excel vba file to an entity .

My main objective is speed and automatization in the competition organization.

Im almost finishing it but now im stuck in this situation:

I have a table with 13 cells

A: athlete name
B: athlete weight
C: random number (raffle)
and then from 1 to 10 is the final Groups.

E.g

Name
Weight
No
1
2
3
4
5
6
7

[code].....

Now i need to create a macro to display the itens in the groups when the weighing is finished...

E.g

Name
Weight
No
1
2
3
4
5
6
7
8
9

[code].....

The conditions are:

The numbers should be displayed in the athletes groups

The difference between all the athletes weights shouldn't be > 3 kilos If theres is more than 5 athletes per group the heaviest should go to next athletes group and pop up one message informing that maximum athletes per group was reached...

View 6 Replies View Related

Too Many Items For Pivot Table

Jul 25, 2008

I have a database table with selling prices. I want to get a count of number of customers by sales price range.

For example:

Price Count
$0-$5 #
$5-$10 #
$10-$15 #
Total

My nose says this is what a pivot table should do but there are too many sales prices and the pivot table craps out. How do I get them into ranges as above and then count them?

View 9 Replies View Related

Filter First X Items Of Pivot Table?

Oct 26, 2013

I've created a PivotTable using VBA that contains hundreds of PivotItems, which would look bad when a PivotChart is made.

I'd like to set the PivotTable to make visible only the first X items (let's say 10). How would I do this in VBA?The macro recorder gives me the name of the PivotItem, but this varies so I'd like to use an index:

VB:
ActiveSheet.PivotTables("PivotTable4").PivotFields("UWI").PivotItems("Item1").Visible = False
ActiveSheet.PivotTables("PivotTable4").PivotFields("UWI").PivotItems("Item2").Visible = False

View 2 Replies View Related

VBA For Specific Items Only In Pivot Table

Jun 4, 2014

See attached.

Basically, I just want to do a pivot which shows the Name and Number for those names listed in the LIST tab.

The pivot source is the data tab, and the result is in the result tab.

I have the code to create the pivot, but filtering it for those specific names on the LIST tab is where I am getting stuck.

Attached File : Excel VBA Pivot Problem.xlsx‎

View 1 Replies View Related

Getting Pivot Table To Only Show Top 10 Items?

Nov 29, 2011

Is there a way to have a Pivot Table show only the Top 10 items based on dollar amount. Data covers a month of daily activity (+/- 250 rows), but i only want the Top 10 items based on Dollar amount. Is this possible?

I know filters can do top 10 but it doesn't consolidate similar items.

View 5 Replies View Related

Pivot Table Not Grouping Like Items?

May 24, 2012

I've created a pivot table that is not grouping "like" items. I have verified all fields are numbers using the =isnumber() formula. All items present with the "true" value. Just in case, I tried doing text to columns and refreshing the data but that did not work either. All items are formatted the same. All data fields have values.

View 1 Replies View Related

Multiple Matching Items From Table

Jan 30, 2008

I'm working on a travel form, which allows people to enter a travel itinerary. From that, I want to be able to extract the cities where they are spending one or more nights - so that I can then do the calculations for accommodation allowances.

I am able to calculate the number of nights stay in each city where there is an overnight stop. But I'm stuck on how to extract every combination of City and Nights where Nights is greater than zero - there is no need to calculate for cities with no overnight stay.

I have attached an example spreadsheet.

Some notes:

- the itinerary and accommodation tables have to remain separate, as they hold more data than in the example,
- the itinerary table can't be sorted for number of nights. It has to be in chronological order for each segment!

Every lookup function I check out seems to demand a sorted table.

View 9 Replies View Related

Combine The Values Of Items On Pivot Table?

Aug 22, 2014

I have to check if two items are in column A, and if yes, there values from column B shoulded be summed. I tried different combinations with IF, LOOKUP but didn't go far.

View 2 Replies View Related

Sum Of Items In A Table, After Using A Dropdown, That Conform To A Formula

Jan 26, 2010

If I have a table with, For example:
dates in the first column, and an A,B,C,D,E, or F in the next.
Is there a way that you can have a cell that will tell me how many A's, C's, and F's (summed) are in the current selection, when someone uses the dropdown to narrow it down to one date?

View 7 Replies View Related

Generate Items In Second Table Without Having To Enter Manually

Jul 15, 2013

How to use I have these two tables, like the picture shows.

How to get the "food" items to generate in the second table without having to enter them manually?

For example, if I were to enter 3 food items out of 10 entries, on the second table, those food items would appear.

excel.png

View 1 Replies View Related

Using VBA To Select And Deselect Pivot Table Items?

Mar 21, 2012

I am trying to use the bellow code to set one pivot item (MyItem) to true and the rest to false... unsuccesfully

Code:
For Each pt In Sheets("Schedule Dashboard").PivotTables(PivotTable1)
If pt.PivotFields("District").PivotItems(MyItem).Visible = False Then
pt.PivotFields("District").PivotItems(MyItem).Visible = True
Else
pt.PivotFields("District").PivotItems.Visible = False
End If
Next pt

View 9 Replies View Related

VBA To Select Multiple Items In Pivot Table

Jun 21, 2012

I'm trying to write a macro to select the multiple sets of the same data for several PIVOT tables. I've tried Slicers but it seems that this takes up too much processing power and always times out.

My workaround is to do a macro that picks out the said data, however when i do the below, plus another 4-500 lines i get told that there are too many line continuations

Code:
ActiveSheet.PivotTables("PivotTable6").PivotFields( _
"[Postal District].[Postal District].[Postal District]").VisibleItemsList = _
Array("[Postal District].[Postal District].&[AB11]", _
"[Postal District].[Postal District].&[AB12]", _

[Code] ...

What I'm looking to do is express all the postcodes in one line or at least multiple post codes in one go, this is what I've tried:

Code:
"[Postal District].[Postal District].&[AB12].&[AB13]"
and
Code:
"[Postal District].[Postal District].&[AB12,AB13]"
But to no avail.

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved