Create Subtotals For Matching Codes

Oct 15, 2008

my w/s has a column for codes and then currency columns. Users may select codes from a list of over 600 codes. I need to enter a formula that subtotals by each code used.

table looks like this:

CODE 1Q$ 2Q$ 3Q$ 4Q$ SUBTOTAL ADJ ADJ ADJ TOTAL

8810 10000 10000 10000 10000 40000 50000 45000
8910 10000 10000 10000 10000 40000 50000 45000
8810 10000 10000 10000 10000 40000 50000 45000
8811 10000 10000 10000 10000 40000 50000 45000

so in this example I need subtotals for 8810, 8910 & 8811
not sure if I need to use a pivot table, an array formula or if statement.

View 9 Replies


ADVERTISEMENT

Matching Up Company Codes Across Three Different Columns

May 15, 2014

I am trying to match up company codes across three different columns. I am inserting rows to get them to match up. However, there has to be an easier way.

1017
1017
1027 Total

1051
1021

[Code] ...

View 8 Replies View Related

Arrange The Part Codes In Nearby Matching Order

Feb 19, 2010

I have so many part codes in column A with their Group in Column B.I want to arrange in ascending orders only those part codes which have almost matching in Column A with other part codes with different group.Please see the attached file and expected result.

View 4 Replies View Related

Matching String Of Text To Separate List Of Codes?

Jun 19, 2014

I have a large sheet of data I'm trying to sort through. Each row of data has a column that contains a long string description. Each of these strings contains a three letter codes in all caps that I want to be able to pull out. I have a seperate sheet that has all of the possible three letter codes in one column. Is there a formula that can compare each string of text to this list of three letter codes and if it find a match put that code in a column on the original sheet?

Doc Number
String
Code

33333
This is an example string of text. An example three letter code would be HCB. The location of the code within the string varies.
HCB

33332
This is an example string of text. An example three letter code would be CDQ. The location of the code within the string varies.
CDQ

33331
This is an example string of text. An example three letter code would be RCA. The location of the code within the string varies.
RCA

Codes

DCP

HCB

RCA

CDQ

LCP

DCA

SCR

View 2 Replies View Related

Post Codes To Autofill Suburb Cell And Matching More

Apr 7, 2008

I am working on a large volume spreadsheet comprising of the usual mailing list fields such as first name, surname, company, address1, address 2 , suburb, state, postcode etc etc

Is there a way for Excel to auto fill a line of details (or display a list the matching entries)?

this way, i can start to enter a semi-unique field such as surname, company or address and a list of matching entries pop up for me to select the best fit.

I then would fill in the remaining data.

View 9 Replies View Related

Create A New Worksheet By Copying Another Tab With All The Codes

May 5, 2014

I am attempting to write a small code for the following scenario.I have a workbook with worksheets GP1, GP2, GP3 etc & a template page as the last tab.

All the worksheets column names are same but have different data.Last worksheet is the template for all of them. How do I create a command button in template page... upon clicking the button,

it should create a tab just before the template worksheet incrementing previous tab GP3 +1-> GP4. GP4 should be a copy of the template page along with all the vb codes associated with the template page.So tabs looks like=> GP1, GP2, GP3, GP4, template

View 5 Replies View Related

Find/create Missing Codes

Dec 28, 2008

I get a ledger dump every month with 20,000 lines of all transactions. There are 1,200 ledger codes, ten departments, and thirty activities. Each of the 20,000 lines has columns with the ledger code, a department, an activity, and other data. There are tens of thousands of possible combinations of ledger code, department and activity.

I have most of the ones which are commonly used every month, and I use them to create a =sumif summary which totals all the same concatenations of ledger code&department&activity. However, every now and again a new permutation arrives and I need to find it and then create the new concatenation for the =sumif to use in the summary. Is there any way to do this by running a routine which will locate the new combination and create the concatenation in the =sumif summary?

View 5 Replies View Related

If Statement Limit Workarounds: Convert Various Codes From One Column Of Spreadsheet Into Different Codes In Another Column

May 5, 2006

I'm trying to convert various codes from one column of an excel spreadsheet into different codes in another column. I was able to accomplish this with "If" statements, however I'm only able to string together seven of these statements in one command. Is there a better way to add formulas for more than seven conversions? Below is a copy of what I've done so far with the seven converts:

=IF(ISNUMBER(SEARCH("WARN",J2)),"Warning",IF(ISNUMBER(SEARCH("PSSNAP",N2)),"Sales",IF(ISNUMBER(SEARCH("WARN",L2)),"Warning",IF(ISNUMBER(SEARCH("2699",L2)),"Warning",IF(ISNUMBER(SEARCH("4004",L2)),"Warning",IF(ISNUMBER(SEARCH("2036",L2)),"Warning",""))))))

I want to add about 15 more codes to convert within this formula but it's maxed out in the format I'm using.

View 3 Replies View Related

Create Hyperlink From Numbers In Column To Matching File Names In A Folder

May 21, 2013

I need a macro to create a hyperlink i.e....... I have an excel sheet with numbers in column A.....I have files in a folder that matches the numbers in column A....

How would I create a macro to create a hyperlink from the numbers in column A to the "matching" file names in a folder?

View 3 Replies View Related

Compiling Partially Matching Data Into Matching Rows With Macro

Jan 20, 2013

My task is to combine two large databases into one spreadsheet by extending the number of columns. The data from each database is 90% matching based on an identification number, however occasionally there are additional rows or unmatched identification numbers that need to be kept for analysis.

When this happens, there needs to be a blank row inserted to represent the missing data in the rest of the corresponding row.

I am having trouble finding a quick way to do this because I have approximately 12,000 rows (and columns up to DV when combined).

for example:

p1
data
data
data
data
p2
data
data
data
data

[Code] .....

needs to become:

p1
data
data
data
data

[Code] .....

I am guessing I will need a macro of sorts, So far I have made one column that tell me if the ID's are matching or not (1 or 0) and if they are not matching (0) I manually insert the rest of the row that is missing or make space for the duplicate data (which needs to remain).

View 5 Replies View Related

Bank Reconciliation - Many To One Matching And Partial Cell Matching

Nov 19, 2009

programming 2 macros in a bank reconciliation sheet I am trying to create.

Basically the data consists of two sets: the ledger side and bank side. Both sides consists of multiple columns that include date, description and amount.

The following two situations can occur and which need to be covered with a macro.

Many to one matching
When we make payments to say 100 different suppliers at once, the ledger side will show 100 lines with the different amounts. However on the bank side it will only show one line with a total amount for the transaction. As the description on the ledger side is the same for all transactions done at the same time, it should be possible to have a macro add these lines and compare the total with entries on the bank side. Once a matching amount has been found, the macro should place an ‘x’ next to all entries on the ledger and bank side, in order to show that these transactions have been reconciled.

Partial cell matching
In this case we are only dealing with one line on both the ledger and bank side. The issue is that the description does not always perfectly match with one another. The ledger side might say ‘Brown Corp.’ and the bank side might say ‘Brown Corporation’. I want to come up with a macro that can recognize this partial match and still reconcile the lines by placing a ‘x’ to both the ledger and bank entry. The match however should be done with a combination of description, date and amount as several different bookings might be done for the same supplier in the same month.

View 12 Replies View Related

SUMIF With Subtotals

Jan 5, 2009

I am having a problem with a formula I think I should be able to get correct but not sure if I am able to do so. On the attached file I have a filter on the TIER's for "Is grater than or equal to 5". What I need is a SUMIF formula that will take into account the filters. This formula needs to separate out between "GER", "IRE" and "UK" in cells C37, C38 and C39.

I have a subtotal in cell C35 which gives me the subtotal of all countries but I'd like to be able to have the subtotal separated out between the 3 countries and also still have the ability to manipulate the data so I could select different TIER's or a range of TIER's and Cells C37 - 39 automatically update themselves.

View 3 Replies View Related

Compound Sum Or Subtotals

Sep 15, 2009

Have a look at the attache example. I have inventory items which have a fixed value. I have several quantity columns to reflect various inventory positions. (OnOrder, WIP, ATP, ATS, OnHand, PAB as at date()...)

At the top of the sheet I need to show sum of quantities and sum of values. In order to compute the values currently I need to hide columns to the extreme right to do the math on a row by row level and then sum the rows and copy the the value to another cell. In this case the cells with yellow background.

Is there a way to be able to write a formula that would return the sum of the qty multiplied by the value without adding an additional column. I would need to function like with filters as well (like =subtotal())

View 3 Replies View Related

Select Only One Row Or More Using SubTotals

Aug 28, 2012

I am using subtotals to create groups. Sometimes there is only one row but more often there are two or more rows. I am trying to run a macro that needs to select either one row (copy into memory) of which there will always be a blank row below that, given the space where the subtotal does its calculations. I have tried a couple things i.e.

ActiveCell.Select
Selection.End (x1Down) . Select
Selection.End (x1Down) . Select

or

Range(Selection, Selection.End(x1Down).Select
ActiveCell.Rows ("1:8").EntireRow.Select

Is there a way to have the macro start and if it sees only one row followed by a space (blank row of subtotal that creates the needed break, that it will copy that one row into memory or if there are two or more rows that it will copy all those rows up to the next break and put that into memory? There can be anywhere from 1 row to several hundred rows.

View 1 Replies View Related

Can't Calculate Subtotals

Jun 13, 2006

have an excel spreadsheet linked to a network printer, it contains a list of what each user printed, how many pages, and the total cost. It is constantly updated. The total cost column contains the wrong price, so Im using this formula:

=If(C2=0,"",SUM(D2/C2)*(H2))

in EACH field on the total user cost column to extract the CORRECT price. So, I started my macro, highlighted the entire TOTAL COST column, then inserted my formula into each field in that column. The correct price displays for rows that contain data, and rows without data are blank. However, when I try to create a SUBTOTAL (Data --> Subtotals) for each user, I get the following error: "To prevent possible loss of data, Microsoft Excel cannot shift nonblank cells off the worksheet."

This is because I applied the formula to the ENTIRE column - even blank cells still contain the formula. How do I get fields without data to be completely blank?

View 6 Replies View Related

Isolate Subtotals

Jul 12, 2006

I need the data "pulled down" into the subtotal row, so to get this after I subtotal, I'm sorting by C, and I've got some VBA deleting all rows where COLs A & B are blank (this is the longest part & the part I want changed the most - this gets rid of the non-subtotaled rows), extended replacing "Total" with "" in COL C and then inserting a lookup in A & B to get the data back next to the subtotals.

This takes really long and I'm sure there's a faster way to do this that I haven't thought of. All in all, I'm looking for something that will ONLY keep the subtotal rows, and will fill down the data to them while removing any non-subtotal rows.

View 9 Replies View Related

Automatically Do SubTotals

May 27, 2007

Client Location Product Cost Sub- total
ABD Here Slurry $125.
ABE There Mud $525. $650.

Where I want to enter the cost and have Excel do the sub-total automatically.
Is there an easy way to do this, remember I am new to all of this? The spread sheet is already 147 entries long and will only grow and I don't want to have to figure out the sub-totals each time.

View 9 Replies View Related

Bolding Subtotals

Aug 27, 2007

After using the subtotal function, I need to highlight and bold the subtotal rows. There are thousand over rows and it is impossible to do it manually, does anyone has a solution to this?

View 9 Replies View Related

Change Position Of Where Subtotals Are Placed?

Dec 31, 2013

Formula/code to change the position of where the subtotals are placed. I don't want them appearing at the beginning or end of the data set but in a separate column beside each data set. how to access the code so I can try and alter it myself.

View 14 Replies View Related

Subtotals And Sorting Data

Apr 24, 2014

I have sorted my data by three layers. First by Budget Center, then Invoice, and then Account. I am having trouble writing a formula that will total the amounts by account with respect to its invoice and budget center.

excel forum2.xlsx

View 4 Replies View Related

Sum Of Subtotals, If Negative Equals 0

Dec 31, 2009

I have a column of numbers that after each sum there will be a subtotal. If the sum is a negative number then the new subtotal will be 0. Attached is a sample.

View 3 Replies View Related

Conditional Subtotals (according To The Date)

Dec 11, 2005

Let's say I have this set of data
A..................B..........C
date_______amt_ sub
12/1/05____ 1000
12/1/05____ 2000
12/1/05____ 5000 7000
12/3/05____ 2000
12/3/05____ 9000 11000
12/6/05____ 1000 1000
12/7/05____ 4000
12/7/05____ 2000 6000

So we see a subtotal according to the date, where the total values in chronological order are calculated to be

12/1/05 7000
12/3/05 11000
12/6/05 1000
12/7/05 6000

What sort of formula, then, do I put in column C that subtotals values in B according to the date in A?

View 10 Replies View Related

Insert Subtotals Command

Oct 21, 2007

it state "Use the subtotals command to sum the totals for each sales person) *Hint: convert the list to a normal range before calculating the subtotals.

I highlight Sales person and click Date but subtotals key is not showing up. i have attach the file its in the Subtotals worksheet.

View 14 Replies View Related

Subtotals In Groups Vs Filters

Dec 12, 2008

Subtotal doesn't add cells hidden under a filter column but it does when grouping. How can I get groups to change a subtotal based on whether they are hidden or not. What I'm really trying to do is use conditional formatting to change the format when a group is expanded vs collapsed.

View 3 Replies View Related

Copy Subtotals To New Column

Jun 4, 2009

I am struggling to get the totals from a Pivot table using Getpivot data.

could someone please advise how can i get this.

=GETPIVOTDATA("Sum of USD Value",$A$3,"Security Code","Total")

View 6 Replies View Related

Using Conditional Formatting With Subtotals

Nov 21, 2011

I am trying to work out a spreadsheet that I am using conditional formatting to highlight every two rows. I have 2 lines for each item and i need them to be grouped together. I can get the formula =mod(row(),4)

View 4 Replies View Related

Add Text Frequency As Well As Subtotals

Jan 3, 2012

I need to count the number of times a word appears in a column in a pivot table and add the total value in the next cell minus 1 if the number is more than 1.

MANAGER

(All)
QA
(All)
Count of 1ST LVL ERROR
Error Type
Count

[Code]...

The totals in C come from a pivot table created from the data in a separate sheet. I need to dynamically show who made an error and the frequency of that kind of error. I've gotten the Error Type count to display according to the word in column B, but column C will show how many times that a specific notation was made.

For example:

"Annualization" appears in column B 3 times, but column C shows that one of the descriptions is listed twice in the separate sheet. The current formula shows 3, but it needs to count the 3 in B, then add any number that is more than 1 minus 1 in the relative C cell to yield 4.

This is my count array: =SUM(LEN(B6:B4506)-LEN(SUBSTITUTE(B6:B4506,D6,"")))/LEN(D6)

I've also used: =COUNTIF(_1ST_LVL_ERROR,"*"&D6&"*")

I don't know how to get the second column to factor in, though.

View 1 Replies View Related

Add Column To Table With Subtotals

Apr 26, 2012

I am trying to add a subtotal to the RIGHT of my table for every change in DATE. The desired result looks like this:

Number
Vendor
Run Date
Amount
Subtotals
12580A
4/12/2012 233,220.14

[Code]...

Right now I am manually typing in a sum formula at each change of the value. Is there some way to automatically perform this calculation and have it be in a column of the table?

View 7 Replies View Related

Adding Subtotals To A Report?

Oct 19, 2012

I have a report that needs subtotals between different teams. The report starts at cell A10.

In column A is the team name and then columns D through to G contain monetary values.

So the Admin team might contain data from A10-G15 (although this is variable depending on activity).

There is then three rows of blank cells before Sales team data appears - this might contain data for a dozen rows.

Then there is three rows of blank cells before Training team data appears......and so on.

There is ALWAYS three rows of blank data between teams and the goal is to enter totals for each team in the second blank row.

So in the above, Admin team totals would appear in row 17 in columns D-G.

Sales team data would kick in at row 19, run for a dozen rows (down to say row 30) and at row 32 the toals would appear.

Training team data kicks in at row 34 and so on.

View 1 Replies View Related

Have Two Levels Of Subtotals In Spreadsheet?

Oct 9, 2013

I have a report of employees' hours reported for the week, which I process payroll from.

I have sorted the spreadsheet first by employee number, and then by date. I have subtotaled each day's hours (with a formula rounding each day's hours to the nearest quarter hour).

I now need to add a subtotal of weekly hours, per employee number, and I cannot figure out how to do this.

Here is an example of what I want to do. I have highlighted the second subtotal I want to add to the spreadsheet, but have been doing the =sum(xxx) formula for each employee because I can't figure out how to subtotal again.

David L 9/30/2013 0005 360 6:00 A.M. 12:00 P.M.
David L 9/30/2013 0005 112 12:30 P.M. 2:22 P.M.
David L 9/30/2013 0005 115 2:22 P.M. 4:17 P.M.
David L 9/30/2013 0005 13 4:17 P.M. 4:30 P.M.

[Code].....

View 2 Replies View Related







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