Adding Columns Within A Pivottable

Jun 19, 2007

I have a data worksheet, which contains about 20,000 lines of journal entry info. There is a separate column for debit and credit, not one "amount" column. On another worksheet, I am aggregating the data to review the impact for this series of journal entries over a time period (12 months). Thus, my pivottable contains "Accounts" in the "ROW" and "Period" in the "COLUMN" sections of the PivotTable Layout. The "Debit" and "Credit" fields are then summed in the "DATA" portion of the PivotTable.

My issue revolves around getting the actual impact for each account for each time period. Essentially, I need an extra column inserted between each time period that sums the debits and credits for that period. Do I need a macro for this (not any experience with macros)? My file is way to big to share, so let me know if a pared-down sample would work.

View 5 Replies


ADVERTISEMENT

PivotTable - Adding Page Filters

Aug 11, 2014

First, the code:

[Code] ....

My problem is with this part here:

[Code] .....

I need it to filter on anything beginning with 2613, not just 261302. Unfortunately, I do not know all the possible inclusions or I could just add them individually, so I need a wildcard to add to this filter and I have never done that.

Thus, I ask how to write a wildcard filter that will work in this pivottable.

View 1 Replies View Related

Hide PivotTable Columns

Jul 17, 2007

Hide values in Column layout on pivot table i only want to show th total value as its based on quarter figures not per month and this way it looks like Quarterly totals are broken down per month and has to have 200 a mont whenits in fact 200 for the complete quarter, how can i had the 200 for each of the month and just have the total per country? This is what my pivot table looks like

county Month Quarterly totals

UK June 200
july 200
August 200

Uk Total 200

View 3 Replies View Related

Select And Print Used Pivottable Columns?

May 21, 2014

I would like to somehow select and print the used columns in my pivot table.

I currently have a code that prints TableRange2 but this also includes blank pivot tables columns which are not in use.

View 2 Replies View Related

PivotTable Code: The PivotTable Field Name Is Not Valid

Aug 3, 2007

The code I'm using that results in the following error message: "Run-Time Error '1004':

The pivotTable field name is not valid. To create a pivottable report, you must use data that is organized as a list with labeled columns. If you are changing the name of a pivottable field, you must type a new name for the field." Here's the code, I've seperated it into each sub hoping that will make it easier to read:

Option Explicit

Sub main_prog()
Call td_metrics_import
Call pt_td_metrics("Pivot_Page1", "PivotTable1", "PivotTable2")
Call pt_td_metrics("Pivot_Page2", "PivotTable3", "PivotTable4")
Call create_graph
End Sub...............

View 8 Replies View Related

Create PivotTable With Two Columns Of Data For The Same Column Header?

Dec 24, 2012

Can I create a PivotTable with two columns of data for the same Column header?

I have created a PivotTable in Excel 2003 with months for rows and cities for columns. I would like to have TWO columns of data for each city. The two data columns are: Average House Selling Price, and Number of Houses Sold. When I put both of these data fields into the PivotTable Wizard, they are listed below each other so that each Month occupies two rows, but each city occupies one column. I want the two data fields beside each other so that each month only occupies one row, but there are two data columns for each City.

View 2 Replies View Related

Adding New Columns And Moving Old Columns

Jul 19, 2013

Using VBA... I have Column N (eFIUnitRebate) which I want to swap with Column M (FFUnitPcnt)

Now with Column M as eFIUnitRebate and N as FFUnitPcnt I want to create an extra column (adjUnitCost) where Column N is and push FFUnitPcnt to become column O, etc.

Here is how the whole process should work:
Swap M and N
Insert new Column in N
Insert new Column in P
Insert new Column in Q
Insert new column in R

There is more information on the sheet after these columns so for all column inserts it needs to push whatever was there over.

So the layout is as follows:
J
K
L
M
N
O
P
Q
R

Units
UnitCost
UnitRebate

[Code] .....

These columns are thousands long, so I would like the formulas for them to be applied to the whole column as well.

View 5 Replies View Related

Adding Columns

Dec 16, 2006

I wish to have a column of values. It will be dates. There will be a value in each cell (hours worked by employee) I want to know only the total hours for the last 30 calendar days. I still need to see previous values, but I just want to total the last 30

View 9 Replies View Related

Adding In Different Columns

Jul 14, 2009

i have two columns

column1: status
column2: total time of status

infinite long

now what i need to do is count the total time a specific status has.

f.ex.

column1: status1, status2, , status1
column2: 0 days 4 hours, 1 day 0.5 hours, 5 days 3.5 hours

how can i make a formula that looks up
if (in column1= status 1)
time= column2

the result i need is:

status1 = 5 days 7.5 hours
status2= 1 day 0.5 hours

i thought about a countif over column1 but i dont know how to add the second column

View 9 Replies View Related

Adding Numbers In Columns

Aug 14, 2008

What's the fastest way to display the sum of each column in one row. Here's a picture of what I want to do: http://www.filefreak.com/ppublic/33833/excel%20help.bmp now I want the sum of each column to be displayed in for example row 10. I have tried manually clicking "autosum" (sp?) but that will take a lot of time as I have about 400 more of these.

View 2 Replies View Related

Adding Columns And Formulas And All That

Nov 6, 2008

I would now like to as remove the first column and add another column a and b. A would say "Service From Date" and column B would say "Service To Date" In addition I would like to add a column between "5202 Meals Provided" and "5221 S.A. Facility Lodging" a column that reads "7025 Number of Days Care" and that tallies like the rest of them.

View 14 Replies View Related

Adding Columns And Formulas

Dec 9, 2008

I need to editing a VBA script and can't assist right now. Here is the VBA script as it exists today:

View 3 Replies View Related

Adding New Columns By Reference Of Another Tab?

Jun 2, 2012

I am new to the Macro editing of Excel. I have a list in the first tab that I would like to click yes or no (how to set up a checkbox) and the appropriate column will pop up in the next tab with appropriate header. I would like it to be where the column will pop up in the correct order, so even if one is clicked in the middle, it knows where to put it.

View 6 Replies View Related

Adding Two Columns Of Several Workbooks

Jul 28, 2008

I d like to ask for a vba code that adds two columns starting from d5 and e5 for several worksheets called multi1,multi2,multi3,........The d column contains only numbers, the e column contains number and letters (product descriptions)

View 9 Replies View Related

Adding Speechmarks Around Text In Columns

Dec 7, 2012

I am trying to write the code for adding double speechmarks for the number of columns on my spreadsheet with a column heading Notes. There are about 10 columns out of 30, and all of them need double speachmarks.

My manual process was to insert a new column in from of the 'Notes' column, use the concatenate function for example - =concatenate("""",A2,"""") and copy the function down the column. The I was geting rid of the formula by copypaste special values, transfering to my original 'Notes' column and at the end deleting the new column that I added at the beginning.

Is there a quick code to populate a concatenate formula via VB? If not, what code can I use to replicate my manual process via VB. On the quick note, the spreadshee has always the same number and order of columns, but number of rown is defferent each time.

View 3 Replies View Related

Adding Duplicate Columns Into New Column?

Jan 6, 2014

I have 5 coloums in which the last three have numeric values. The first two coloums have name and country code. Now, The first two coloums have duplicate values but the rest of the corresponding columns have different numeriv values. What I want now is to add the numeric values of the coloumns of the duplicate data and want to display in the first row. For ex there are A = name , B= Country , C D and E contains different numeric values. A and B have dupilcate data but different C, D and E values. Now I want to add up the numeric values of the dupilcate data and get it displayed in a new coloum in the first row of the duplicate data set.

View 1 Replies View Related

Adding Columns To Accounting Template?

Jun 25, 2014

I just downloaded an income/expense template from Zillow to manage my rental properties. The template works great but it's only set up for 5 houses and I need more columns as I own more than 5. In the attached template the houses are listed by property codes and that is the column that I need to add to.

View 8 Replies View Related

Keep Functionality When Adding New Columns Of Data?

Jun 26, 2013

Each week I get new weekly data-metrics. I have a series of formulas that figure LAST 4 weeks average, LAST 8 weeks, etc etc. How do I drop in a new week of data and have my formulas adjust? For instance, my formula figures last 4 weeks average of May Wk 1, May Wk 2, May Wk3, May Wk4. Now it is June Wk1, so I want to figure (without changing any formula) May Wk 2, May Wk3, May Wk 4, June Wk 1.

View 1 Replies View Related

Freeze Formulas When Adding Columns Through VBA?

Jun 4, 2014

in my workbook: in sheet1 i have many cells with formulas which calculates values from sheet2. I also have a macro which is used often that will arrange and prepare data in sheet2, including adding some columns.

The problem is that after these columns are added, the formulas in sheet1 will be changed, even if I used f4 ($) in the formulas.

how can I freeze these formulas? I think a solution is to include the formulas in sheet1 in the macro I'm running for sheet2. But I would like to avoid this.

View 2 Replies View Related

Adding One If There Is Data In Adjacent Columns

Nov 20, 2008

I want to total cells that have data in them across a row. I have a name in Column A and then in Columns C-Z I have data. In Column B I want Excel to scan across cells C-Z and if a cell has data in it (it will be text) I want it to add one to the total in cell B. Would CountIF do this with text involved?

View 7 Replies View Related

Macro Adding Up Columns Wrong

Aug 19, 2013

This macro has a problem in that it totals up the colunmns in two places by error

The total should be at the end of the coumns only.

It gives me a total part way through the list which muddles things up a bit.

Sub prepareSAPexport()
'
' prepareSAPexport Macro
' prepare the sap export ready to be compared to CDS
'
' Keyboard Shortcut: Ctrl+s
'
Range("A1").Select

[code]....

View 1 Replies View Related

Adding Columns For A Different Sheet And Getting Totals?

May 7, 2014

OK, I have a spreadsheet that has several pages for tracking when items are added and removed. On the main sheet I need to have the total items added, the total items subtracted, and the total avaialble. This is also based off of month.

For example, on sheet 2 it would show 5 of an item added, 2 of an item subtracted, all for March. It would also show 3 items added, 2 subtracted for April. On Sheet one i need to report in a row any items added, any subtracted, and the current total. I am pretty sure that i have the formula for added items and subtracted items for the given month, but i do not know how to get the current total.

View 1 Replies View Related

Adding Specific Values In Different Columns Using One Formula?

Mar 28, 2014

How would I go about finding the "Number of Shirts Ordered" values in the top right?

View 1 Replies View Related

Restrict The Adding The Rows And Columns And Also Deletion

Jan 29, 2007

I want to restrict the adding the rows and columns and also deletion of rows and columns in excel template, the same template is circulated to all the program owners to capture there project metrics. With that template through macro values are extracting to consolidated report. Some times program owners are adding extra columns/rows with that we are getting errors/incorrect reports.

View 14 Replies View Related

Adding Columns To External Data Table?

Sep 11, 2013

I have a External Data Table, but I wanted to add a extra column to it for comments. I just need to be able to write down what I did with that particular order or things like that. I did make a column, but the problem is whenever I update the table the comments column fields stay static I mean they don't move with their row. So it ends up the comment belonging to a row is now on another row.

is there a way I can tell excel to move the cell with the record or something like that.

View 2 Replies View Related

Adding Multiple Columns For Dropdown List

Mar 5, 2013

I'm trying to set up a billing form for my work. I'm trying to include drop down list for each sections (personnel, equipment, and supplies), then all sum together as a bill. I'm not sure if this is doable in excel.

View 9 Replies View Related

Adding And Deleting Columns, Ruins Code

Jul 21, 2008

I have a spreadsheet with 20 or so columns but that number can change at any time. I need my code to by dynamic so if a column is deleted (or added) my code will still work.

Each column has a name in row 2 and I'm trying to use that in order to make everything dynamic. For example, my code counts the number of blue cells in colums D4:G68, but now if someone adds a column before column D, everything gets messed up and it will still count the cells in D4:G68 but I want to use E4:H64 now. Does that make sense? I have made code that searches the column names and returns the column number to correspond to the name. How would I change this?

Range ("C8") = "= CountBlue(E4:G68)"

the code doesn't look exactly like this, I believe it is actually in R1C1 format

View 9 Replies View Related

Copying 2 Columns Of Data Into A Single Row While Adding Spaces

Dec 4, 2013

I have two columns D and E that contain dates and values. Column D has the dates and Column E contains the corresponding values.

I need a macro to take all of the dates in column D (it is pulled from a different macro so the length of the two columns varies every time but starts at D2) and paste the first value in W1, the second value in AE1 , and so on (every eight cells).

I need to do the exact same thing with Column E except start at Y1, then AG1, etc (still every eight cells).

I will try to post an example later.

View 2 Replies View Related

Adding Sort Filters To Multiple Selected Columns

Nov 14, 2009

I have a row of sub-headings at row 12 that require Sort Filters. My problem is that I need the filters on selected columns only. It seems that with the standard filter button I get all or nothing.

View 8 Replies View Related

Function For Recognizing Matching Text And Adding Up Columns

Jan 8, 2007

I am currently tracking online PPC keyword reports with Excel and need to know if there is a function that will find and match words and phrases and then add the columns that are queried for the matching words/phrases. I think an example is definately in order.

December PPC
Keyword Clicks Cost Revenue
large dogs 45 .18 $12.00
small dogs 35 .25 $15.00

January PPC
Keyword Clicks Cost Revenue
large dogs 12 .14 $8.25
small dogs 18 .18 $5.35

Now using the example above I need a function or maybe even a macro that will scan all "keywords" and find a match for each keyword each month, say large dogs, and then add the clicks, costs, and revenue columns and post them on a particular row or rows.

So when running the function it will find and match "large dogs" for each month, it will then add the clicks for all months with "large dogs" in it and then populate a column or row with the total along with the keyword "large dogs" next to it. Is there a function that will do this or maybe even a macro?

View 10 Replies View Related







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