Add Cost Data Of Data Split Into Several Subcategories

Jul 12, 2012

I have a set of data that has cost associated with it that is broken up into several categories repeatedly. The subcategories are NOT defined to a specific set of subcategories i.e. they can be anything. The subcategories may also be alphanumeric and have spaces/other special characters in them. What I want to do is to be able to pick the cost and slot it in the appropriate category in the main sheet.

The exact number of rows and columns in the data is not fixed so it would be great if this is editable in the VBA code depending on how many rows and columns the final data set has.

An example is attached. In the example I have put all the cost as 1 for simplicity but in the actual document all the costs are different values. Also in the example I did not put any category as alphanumeric or with spaces/special characters but in the actual data there may be.

The logic I can think of is to first identify all unique values in the array, insert them as new rows, then add up the cost values (this is just a suggestion).

Book1.xlsx

View 9 Replies


ADVERTISEMENT

Split Data In A Cell And Get The Value For The Split Data From A Different Table

Jul 31, 2006

Here's my problem. I have a cell where there are many data strings seperated by ",". Each data string has a seperate value of its own like for e.g:
A2: aa,ab,ac

String Value
aa 1
ab 1
ac 3

What I want it accomplish is that, split the A2 cell into the different data string entities seperated by ",", then get the corresponding value of each of the data string entity, and to take the average of all the values of the different data string entities.

View 9 Replies View Related

Cost Per Row Of Data

Mar 6, 2014

I have an excel table that among other fields it has a [product Charge] field.. what im trying to do is to get a cost per row based on the [Product Charge] field.. so example if I have 10,000 rows and the total for that field is 1,000,000 the cost should be 100 ( [Product Charge] / total rows).... I then want to be able to use it in a pivot table...

View 1 Replies View Related

Extracting Data From One Massive Worksheet To Split To Smaller Sheets Of Data

May 20, 2008

10/05/0808:30:00 AMValid Card EntryLamDoor 1
10/05/0808:31:00 AMDoor Leave Open Door 1
10/05/0808:32:00 AMDoor Closed Door 1
10/05/0808:41:00 AMValid Card Exit Yap Door 1
10/05/0808:46:00 AMValid Card Exit Lam Door 2
10/05/0809:14:00 AMValid Card EntryLam Door 2
10/05/0810:18:00 AMValid Card Exit Lam Door 2
10/05/0810:19:00 AMValid Card Entry Yap Door 1
10/05/0810:40:00 AMValid Card Exit Yap Door 1
10/05/0810:42:00 AMValid Card EntryLamDoor 2
11/05/0808:30:00 AMValid Card EntryLamDoor 2
11/05/0808:20:00 AMValid Card EntryYapDoor 1
11/05/0810:20:00 AMValid Card Exit Lam Door 1
11/05/0811:40:00 AMValid Card Exit Yap Door 1

the above is the data i need to work with (dates are in dd/mm/yy). i need to find a way (a macro, preferably) to extract the date and time corresponding to one person, and paste it into a new sheet, e.g. at sheet 2 (renamed to "lam") should be

10/05/0808:30:00 AM 11/05/0808:30:00 AM
10/05/0808:46:00 AM 11/05/0810:20:00 AM
10/05/0809:14:00 AM
10/05/0810:18:00 AM
10/05/0810:42:00 AM

View 10 Replies View Related

Excel 2010 :: Importing Data That Has Imbedded Cost Center Subtotals - Move To Column

Jul 29, 2014

I am trying to create a Dashboard in excel (2010) using tables/pivot tables to build it. The data I am bringing into excel has these key fields of data: cost center+cost center description, general ledger account+general ledger account description, and YTD amount.

My problem is the data is from an external source report and the report has subtotals built in at cost center, and the report's format of subtotaling puts the cost center first and then the general ledger accounts below. There is no
formula value in the cell that has the subtotaled amount and the number of general ledger accounts can vary depending on whether there has been general ledger activity.

I want to take this format:
July YTD
Cost Ctr 1050 XYZ$6.00
625110 Supplies$2.00
650150 Postage$2.00
650550 Fees$2.00
Cost Ctr 1052 ZZZ$4.00
670500 Pens$2.00

and have it look like this
Cost CenterCost Center DescrGL AcctGL Acct descYTD Amt
1050 XYZ 625110 Supplies $2.00
1050 XYZ 650150 Postage $2.00
1050 XYZ 650550 Fees $2.00
1052 ZZZ 679200 Pens $2.00

Besides manually doing data moves and assigning a unique sort sequence number to keep the records together, how else can I quickly move my cost centers to a new column and keep the cost center with the gl account and $amount?

View 3 Replies View Related

Drop Down Lists To Get Subcategories

Jun 3, 2009

As part of my project I have to create a data extraction excel sheet which is used as a template to extract relevant information from journal articles.

From each article I need to extract information on multiple psych. scales. For example, lets say Article 1 has information of ScaleA and Scale B so I would enter the means/sdev./... on each Scale from that article in respective columns. Article 2 might have info on Scale A and Scale C so I would enter them in respective columns.

As you see there are about 8-10 Scales with many subcategories (means,sdev,...), so my question is there a way to create a drop down menu such that all the scales (A-H) are in that menu and upon selection of a particular Scale the sub columns (with mean,sdev.,...) open beside/underneath it. I hope you understood my question.

View 12 Replies View Related

Vlookup Formula Get "a Cost-country" Value And Data

Feb 4, 2009

Workbook has following sheets:
"equipment List" and "vlookup data"

"equipment list" has following fields where cost is the field that needs the vlookup data value.

model, building, cost

"vlookup data" has following fields in 2 different ranges.
range1
manfacturer, model, cost-usa, cost-canada,cost-england
range2
building, country

requirement is that "cost" field in "equipment list should have the value based on the model and cost with respect to the building value.

i can do simple vlookup to get "a cost-country" value but fail to understand how to ensure the value comes from the correct cost-country column based on the building info.

View 2 Replies View Related

How To Split Data Entry

Nov 28, 2013

I am trying to find away to split up data that is entered as text into a cell,and split that text data into 3 columns. Sample text enters in a cell can be:

10-3 or 1-3-1 or 12-11-0 or 1-6 or 8-8.

As you can see, the text entry can have two or three numbers in it. I would like to split this data so it looks like this: 10-3 would be cell A5=10, cell A6=3 and cell A7 is blank.

Another example would be 1-3-1 would be split A5=1, A6=3 and A7=1.

I know about the text to column function, but that is not the case as I want the data to split automatically with a formula.

View 3 Replies View Related

Split Data From One Cell...

Mar 9, 2009

I'm working on a datasheet that needs some tweaks...

In column A, I have these data
CA 902-20
GA 100-10
UP 200-20
WC 100-20
UP10-299
Best99-000
City #123-89

how can I tidy the data into column B so that they have it will have a standard format of a single letter followed by (no space) 5 digits.
ex: C90220
G10010
U20020
W10020
U10299
B99000
C12389

I am thinking using Left and Right formula, does that sound right?

View 3 Replies View Related

Split Data Within A Cell?

May 29, 2009

My data within a cell has 3 values separated by commas i.e. abc, def, ghi. I want to separate these values into their own cells. Is there a formula or command that can do this? of course I can go into each cell and cut and paste the values onto another cell, but I have thousands of cells that need to be reformatted.

View 3 Replies View Related

Split Data To Many Columns?

Dec 1, 2013

1 1100200157326 7000000000011126 Mr .AA BB CC 30,548.68 16 1,759.00 3,523.75

1
1100200157326
700000000001
1126
Mr. AA BB CC
30,548.68
16
1,759.00
3,523.75

2 1100200313905 700000000002 1127 Miss AA BB 48,329.53 9 1,969.00 3,944.75

2
1100200313905
700000000002
1127
Miss AA BB
48,329.53
9
1,969.00
3,944.75

3 1100200568628 700000000003 1127 Mrs. AA 24,990.00 5 1,825.56 3,652.84

3
1100200568628
700000000003
1127
Mrs. AA
24,990.00
5
1,825.56
3,652.84

I have data on column A and I want split data to many columns. This is Example.

View 5 Replies View Related

Create New Column To Group Subcategories Into Categories

Apr 6, 2012

I have a column that has subcategories, and I would like to create a new column that would group those subcategories into categories.

Is there a formula that once it detects a certain word in the subcategory should give a certain category name that I choose?

View 1 Replies View Related

Split Data From 1 Cell Into 2 Cells

Jun 17, 2009

I have a list of first names and surnames, the first name and surname are in one cell together but seperated by a commer.

For example in A1 would be Steve, Jones

What I want to do is have this split into two new cells. So in A2 I would have his first name and in A3 his surname. Formula to do this is what I cant get to work.

View 2 Replies View Related

Split Cell Data Into Rows?

Feb 5, 2014

I have data in column A and Column E & F shows the required output.

View 7 Replies View Related

Split One Cell Data Into Different Cells

Jul 10, 2009

macro of the attached sheet.

Actaully i want a macro which are splits one cell data into deiffernt cells or rows.

View 9 Replies View Related

Split Data In One Column Into Two Columns

Mar 12, 2009

For each cell in column A, I am trying to split the data between two new cells. The data in each cell is separated by a “|”. All information to the left of “|” should go in column B. All information to the right of “|” should go in column C.

Column A
Aa3 |AAA
A3 |AA-
A2 |A
A3 |BBB+
Aa3 |AA
Aa2 |AA+

Desired Results
Column B………….Column C
Aa3…………………AAA
A3…………………..AA-
A2………………..…A
A3…………………..BBB+
Aa3…………………AA
Aa2…………………AA+

View 4 Replies View Related

Split Cell Data Into Two Columns

Sep 1, 2009

I am trying to split data from a cell into two columns. I have tried the LEFT and RIGHT functions but as the data held is not always the same number of characters this does not work for the LEFT function. The only constant thing is that the last character will always be in the second column. An example of data would be:

9065-10A
9065-9B
9065-11C

and I need to be split into 2 columns as follows:

Column 1 Column2
9065-10 A
9065-9 B
9065-11 C

View 2 Replies View Related

Split Data Into Adjacent Columns

Nov 21, 2009

I am looking for two formulas (col. B+C) in order to split every second value from Col. A into two adjacent columns. Empty cells, in col. A, should be ignored. The requested result is shown in green and red.

View 4 Replies View Related

Split Data In One Cell Into Below Rows?

Sep 23, 2012

I have data in two Columns one Columns contains data with different line in each cell

like

MR X
MR Y
MR Z

and in the other column with single line like

Success
Failed

see the below image for clear view.

In this case, I want to split the data in to each line in to each row.

Like MR X Failed
Mr Y Failed
Mr Z Failed and so on..

View 2 Replies View Related

Split One Cell Data To Different Cells

Aug 11, 2013

Ihave data in column "B" like bellow & i want split that one cell data to different cells base on space. i mean after each space data should add to next cell ( from column "C" data can split). (formula or macro)

41981 (C-2313) TEX-120 3000 M - Poly Poly Core - Silver Falcon

41981 (C-2313) TEX-60 3000 M - Poly Poly Core - Silver Falcon

42684 (C-3899) TEX-120 3000 M - Poly Poly Core - Silver Falcon

View 1 Replies View Related

Split Data Into Separate Workbooks

Sep 26, 2013

I would like to separate data into multiple workbooks based on a unique value in the column. For instance if I have Departments in Column F, that has data of accounting, HR, etc. I would like to put all accounting data into a accounting workbook and all HR data in a HR workbook.

View 4 Replies View Related

Split Data Into Separate Spreadsheets

Sep 25, 2008

every month I import (from SAP) Local Authority staffing data for 200 schools into an Excel template. After a bit of tweaking I end up with a single spreadsheet showing formatted and adjusted data for all schools, with relevant headings separated by page breaks.

This is fine if for distributing a hard copy to schools, but I want to email it. I've seen macros that would allow data to be split onto separate tabs, but is there a way to break it down into 200 separate spreadsheets? I confess to not knowing any VBA, so be gentle with me

View 9 Replies View Related

Split Range Data For CSV File

Jun 5, 2008

I've got an Excel document that is generated from a third party programme (See ExcelDoc attached)

I'm trying to manipulate it so that a macro creates a CSV file like the one attached (see THK.csv)

I need to have the following columns in the CSV file populated using the Excel spreadsheet

Column A: Will need to have the NUMBER that is in cell B2 of the Excel file in this case the number is 0714 (need to keep the preceeding 0 too)

Column B: Will need the phone number
Column C: Will need the fax number
Column D: Will need to have the email address
Column E: Will need to have the date only
Column F: Will need to have the Order Number
Column G: Will need to have the Customer name
Column H: Will need to have the Customer telephone number
Column I: Will need to have the Customer alternative telephone number
**Column J: Will need to have the 1st line of the address (after First Address in xls doc)

I've managed to get a macro that will take the information and transpose it into a new document and rename it as an CSV file but I am having a lot of problems trying to get the macro to create the CSV file in the format that I need (see following macro)

Sub CreateCSV1()

Dim wbMyBook As Workbook, iAddPos As Integer

Application. ScreenUpdating = False
Range("B2:B11").Copy
Workbooks.Add
Range("A1").PasteSpecial (xlPasteValues), Transpose:=True
Range("A1") = Left(Range("A1"), InStr(Range("A1"), " ="))
iAddPos = InStr(Range("J1"), "TEGKON:")

I've attached the xls document (the one that is generated and the CSV file which is the format I'm trying to achieve.)

**This cell is generated and will have commas at the end of each line of the address and will be terminated by a period (at line 4 of the address. Sometimes there will be 4 lines to an address but sometimes there may only be 2 or three. In the case where there is no information I need to have a blank ( null) value in the cell

View 4 Replies View Related

Use All Data Inside A String After Using The SPLIT Comand

Jul 1, 2013

I have a string like this:

VB:

test = "banana|apple|limon"

I did this:

VB:
test_2 = split(test,"|")

The code returned the test_2 var like a matrix with 3 data inside.

But when I try to copy the data inside with:

VB:

For i = 0 To UBound(teste_2)
test_3 = teste_2(i)
Next i

The code editor returns a ByRef error.

How to solve?

View 5 Replies View Related

How To Split Data Of A Shipment Into Multiple Rows

Aug 18, 2014

I want to split data of a shipment into multiple rows, based on the a standard pallet quantity

E.G.

1) SKU: 807020450043BATCH: 41826790QTY: 15600
(PALLET QTY 1560)
2) SKU: 807580450044BATCH: 41452190QTY: 5760
(PALLET QTY 576)

I want to split the row by the pallet qty, will result in 10 rows of 1560 / 576 Data will look like this

8070204500434182679015600
807580450044414521905760

View 3 Replies View Related

Summarise Data After Applying Allocation Split

Feb 25, 2009

The task involves summarising about 10,000 lines of data into months by Plant by Process. I can achieve it by stepping through a couple of schedules but I'm sure it can be done using one formula (but I can't find it!).

View 8 Replies View Related

Split Data Into 2 Cells, Text To Columns

Feb 26, 2009

i have cells with city and state in them and i'm trying to separate the one column into two columns. the problem is, i'm trying to keep the city name in one column and the state in the other. some of my cells have two word cities like new albany, or upper arlington. the text to columns feature is separating those cells into 3 columns not 2. is there a way to do this?

example:
worthington, oh
upper arlington, oh

text to columns splitting upper arlington into 3 different cells because the only delimiter in the cell is a space. i need to keep upper arlington in one cell and oh in another.

View 7 Replies View Related

Split A Cell Of Data Into Multiple Rows?

Mar 22, 2013

I have some data from web-site, when I copy paste these data to Excel is only in 1 cell and i would like to split it into multiple rows by comma.

View 4 Replies View Related

Macro To Split Data Into Separate Worksheets

Oct 30, 2010

I have a macro below which splits the data in my workbook (Attached) into seperate workbooks on the basis of each change in data, and saves the new workbooks with the value available in column A. Everything else works perfectly with this code I just want the code to take the workbook name from Column B, not Column A as it is currently taking.

Sub Test()
Dim Sh As Worksheet
Dim Rng As Range
Dim c As Range
Dim List As New Collection
Dim Item As Variant

[Code] ......

View 9 Replies View Related

Split Data In One Column Into Multiple Columns

Jan 26, 2012

I have an address in one cell in excel. Street/City/State/Zip are all separated by two spaces like this: 123 Anywhere St Chicago IL 60607 United States

I want to break them out into separate columns. The "Text to Columns" won't work because there are no commas or dashes separating the data.

View 3 Replies View Related







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