Put Data In Column B As Common Row For Each Block

Dec 30, 2008

I have a matrix with info of persons of different cities in consecutive rows, where the
city data is in column B. I would like to eliminate columnb B and divide all persons from
any particular city with 2 new rows, their city name and below a field for every column data.

*The number of employees for city would be variable.

Original data (The columns used go from A to E)

1 City_1 Employee_1 Address_Employee_1 Other data_Employee_1
2 City_1 Employee_2 Address_Employee_2 Other data_Employee_2
3 City_1 Employee_3 Address_Employee_3 Other data_Employee_3
4 City_1 Employee_4 Address_Employee_4 Other data_Employee_4
5 City_2 Employee_1 Address_Employee_1 Other data_Employee_1
6 City_2 Employee_2 Address_Employee_2 Other data_Employee_2 ...

View 9 Replies


ADVERTISEMENT

Pull Out The Top Five Most Common Numbers In A Block Of Numbers

Apr 7, 2009

I have a large block of numbers in a spreadsheet and I am wondering how I can look at the whole block and pull out the top five most common numbers. So perhaps the number 4 is repeated the most times, it would be number 1, number 18 might be repeated the second most number of times so it would be in the number 2 slot etc etc.

View 6 Replies View Related

Search Common Data From One Column And Return Corresponding Data From Another Column

Oct 6, 2013

I have two columns of data and what I would like to do is have excel look over one column ( I5-I379) and for each cell that has say 30 in it I want it to return the value from a corresponding column (G5-G379), to form a separate column.......is this possible?

View 9 Replies View Related

Matching Data From Common Column?

Jul 7, 2011

Table 1

Code:
7/4/2011AMWG16=01BLK25K_USA[a3]*042711Date a Rich Black Man By June 232350$0.19 http://www.jyxsaw.com/blackrm/index.php?t202id=2676&t202kw=AMWG16=01_0210-3
7/4/2011AMWG16=01BLK25K_USA[a3]*042711Date a Rich Black Man By June

[Code]....

I've got two tables of information here, if you scroll to the far right of table 1 and look at the left of table two, you'll see a common code like:

AMWG16=01_0211-20
AMWG16=01_0212-16

and these entries will appear multiple times as well

AMWG16=01_0212-16

appears twice and the data is different and will need to be added up

How can I:

1. Add up the data on each table with the common string such as "AMWG16=01_0212-16"

2. Take all the data that has been added up and combine the statistics, for example,
when its all done it should show

AMWG16=01_0212-16

in the first column, and then all the statistics from the two tables in the columns to the right.

I'm guesssing...

Since some entries appear multiple times, you will need to sum up all the unique entries for that value. Say:

AMWG16=01_0211-20

Shows up three times, you'll need to sum up all the values and this needs to be done on both tables

THEN

You can combine the data

I'm familiar w/ vlookup, index, match functions, but I'm not quite sure how to put this all together

View 4 Replies View Related

Compare Multiple Column Of Data And List Out Common And Unique Component In Adj Columns

Jan 23, 2006

I am trying to compare multiple column in a worksheet to find
common component in all the columns and what is unique to a particular
column only. And list the results/finding in adj column. What i am
trying to accomplish is something as below.

BEFORE
Sheet1 Sheet2 Sheet3
Column2 Column2 Column2
02-1234-12 07-1234-12 02-1234-12
04-1234-12 03-1234-12 02-1234-12
05-1234-12 02-1234-12 06-1234-34

AFTER
Common to all Unique to sheet1 Unique to Sheet2
02-1234-12 05-1234-12 07-1234-12

View 14 Replies View Related

How To Create Third Column With Common Value

Aug 22, 2014

I have two columns(1 and 2), Column two will for each data set have two common values. For most of the data set where column two have the second common value, i can find it based on column 1, but where column 1 differs, i do not know how to get data based on column two.

See attached, column 1 and 2 data. Column 3 I took out one common value, column 4 I just did a IF function to populate blank spaces with common value, but for row 24 - 26 if does not work because column 1 does not follow same logic. Is there a way to populate a third column with one value(can be either of the two common values in column 2(note there will be multiple data sets)?

doc list.xlsx‎

View 5 Replies View Related

Truncate To Last Common Folder In A Column?

Sep 15, 2014

I have Column A with file paths from the same main directory.

C:UsersSJohn.AJAXDesktopTimeBills.docx
C:UsersSJohn.AJAXDesktopTimeDChargers hick.docx
C:UsersSJohn.AJAXDesktopTimeDChargers raps.docx
C:UsersSJohn.AJAXDesktopTimeDChargersDodgersstadium.docx
C:UsersSJohn.AJAXDesktopTimeDChargersDodgersstats.docx

I would like to find the last common folder along the entire Column (Time),
remove all to the left, and insert E: in its place. Getting:

E:TimeBills.docx
E:TimeDChargers hick.docx
E:TimeDChargers raps.doc
E:TimeDChargersDodgersstadium.docx
E:TimeDChargersDodgersstats.docx

I have already created a VBA Script for other parts of this project, so I would like to add the script to the end rather than create a separate macro. If there is a formula that can do this I am willing to work with that as well.

View 4 Replies View Related

Match Two Lists With One Common Column?

Oct 17, 2008

I have two lists, let's say:

A B
Eva 1982
Anna 1981
Lisa 1983
John 1980
Steve 1972
...

And

A B
Eva Female
John Male
Lisa Female
...

Can in any way match the above lists automaticly, so the information from List number 2, column B, appears at the correct place in List number 1, Column C? For empty cells, no information is fine.

View 3 Replies View Related

How To Add Common Word In Filled Column

Sep 18, 2013

I have a column in excel sheet of more than 1000 different names. I want to add S/o with each name how can I do that ?

View 4 Replies View Related

Find Out The Most Common Keywords In Column

Oct 12, 2009

In column A I have 50,000 cells, each containing 1 to 10 keywords. For example
A1 = "jobs"
A2 = "jobs in milton keynes"
A3 = "it jobs in milton keynes"
A4 = "sales jobs in milton keynes"
A5 = "well paying brickie work in spain"
etc
etc

At first I was trying to find out the most common keywords in column A, and I used the following code to do so

View 7 Replies View Related

Getting Most Common Value Of Column That Is Result Of Filter

Nov 1, 2013

I'm applying a filter in a sheet that's something like this, after applying the filter it looks like this (Example Item 999)

Item
Inv. Qty
Avi. Qty
Flag
BOX

999
12
9
N
X1

[code]...

I was trying to get the "Flag" Column value, (inside the filter and it crashed)

Code:
With InventorySheet
.AutoFilterMode = False
LRowOnQ = .Cells(Rows.Count, "Q").End(xlUp).Row
.Range("B1").AutoFilter Field:=2, Criteria1:=Project
.Range("D1").AutoFilter Field:=4, Criteria1:=ContractNumber
.Range("N1").AutoFilter Field:=14, Criteria1:=Code
.Range("Q1").AutoFilter Field:=17, Criteria1:=">0"
Set rangeFilteredInventory = .Range("Q1:Q" & LRowOnQ)
ControlFlag = .Range("L2").Value
End With

After the filter, it always take the same value.

Code:
With InventorySheet
.AutoFilterMode = False
LRowOnQ = .Cells(Rows.Count, "Q").End(xlUp).Row
.Range("B1").AutoFilter Field:=2, Criteria1:=Project
.Range("D1").AutoFilter Field:=4, Criteria1:=ContractNumber
.Range("N1").AutoFilter Field:=14, Criteria1:=Code
.Range("Q1").AutoFilter Field:=17, Criteria1:=">0"
Set rangeFilteredInventory = .Range("Q1:Q" & LRowOnQ)
End With
ControlFlag = InventorySheet.Range("L2").Value

Is there any way to take the most common letter of the result range?

I'm aware there's a average option in subtotal, but I think it's just for numbers.

Code:

With InventorySheet
.AutoFilterMode = False
LRowOnQ = .Cells(Rows.Count, "Q").End(xlUp).Row
.Range("B1").AutoFilter Field:=2, Criteria1:=Project
.Range("D1").AutoFilter Field:=4, Criteria1:=ContractNumber
.Range("N1").AutoFilter Field:=14, Criteria1:=Code
.Range("Q1").AutoFilter Field:=17, Criteria1:=">0"

[code]...

And it doesn't even do the loop.

View 1 Replies View Related

Macro To Create New Column From Common Words

Jun 4, 2013

I have a spreadsheet with approx 7000 rows, many of which contain the same item but with flavors and other variations on the end. An example would be:

VB:
A B
10142 6kg of whey bundle With Free protein shaker-Banana
10143 6kg of whey bundle With Free protein shaker-Chocolate
10144 6kg of whey bundle With Free protein shaker-Strawberry
10145 6kg of whey bundle With Free protein shaker-Unflavoured
10010 **Bodybuilding Warehouse Premium Whey Probiotic - 2.2kg
10011 **Bodybuilding Warehouse Premium Whey Probiotic - 2.2kg + FREE Shaker

Would it be possible To create a New column (column C) which would display all common words from row b into the New column Like below?

A B C
10142 6kg of whey bundle With Free protein shaker-Banana 6kg of whey bundle With Free protein shaker
10143 6kg of whey bundle With Free protein shaker-Chocolate 6kg of whey bundle With Free protein shaker
10144 6kg of whey bundle With Free protein shaker-Strawberry 6kg of whey bundle With Free protein shaker

[Code] ....

I've attached a larger sample of our list to get a better idea of different variations that are on the spreadsheet.

I think what we need is something similar to this thread[URL] .....

Sample List.xlsx

View 2 Replies View Related

Concatenating Cells Based On Common Value In Next Column?

Apr 23, 2013

I'm using excel 2008 for mac. I've got a spreadsheet with around 4000 rows. The data is organized like this:

|___________URL_________|______EMAIL______|
|Example Domain
|Example Domain
|Example Domain
|Example Domain
|Example Domain

What I'm trying to do is concatenate all of the URLs into one cell so that each email address has only 1 single row with many URLs associated with it. I tried using VLOOKUP(B1, $A$1:$B$4000, 1, FALSE) but this didn't work. I thought it was a long shot anyway. I also tried writing a bash script do parse a csv with this data and create a csv file with the URLs concatenated with no luck. I'm trying to get my data to look like this:

|___________URL_________|______EMAIL______|
|Example Domain
|Example Domain
|Example Domain
|Example Domain
|Example Domain

Where these are 2 adjacent cells.

EDIT: The format didn't turn out like I'd hoped. In the first example, each URL has an associated email address, each in its own row. In the second, it is just one row, with multiple urls in the first cell and an email address in the second cell.

View 3 Replies View Related

Join Two Spreadsheets Based On A Common Column

May 13, 2006

I have two worksheets. One has columns A B C , the second has columns A B C D. Columns A in the two worksheets reflect the same data (serial number) , although one worksheet could have more rows than the other since it gets updated manually daily. I would like to use a macro that would:

1. use columns A's value in worksheet 1 to match a row in worksheet 2 then merge columns from worksheet 1 & 2 and insert into a new worksheet
2. repreat until all rows in worksheet 1 are read
3. save worksheet 3

View 3 Replies View Related

Sum Data Block Between Two Dates

Apr 11, 2012

I have a database with dates in coloum F, coloums G to Q is where different product tonnages are entered. Cell Report C2 is the start date and cell C3 is the end date. I can calculate the total tonnage of a product (coloum J) bu using the formula

= Sum(Data!J:J)-Sumif(Data!F:F,""&Report!C3,Data!J:J)

This works but now if I want to total from coloum G through to coloum Q between the dates I cannot get it to work.

View 2 Replies View Related

Merge Couple Of Spreadsheets With Common Column / Field

Sep 15, 2013

I have a couple of spreadsheets. all of them have a same or common column called "ID".

The order of the ID columns of the spreadsheets are not in the same order however.

I'd like to see if there is a way that I can merge the spreadsheets to one using the shared ID.

To explain more:
Spreadsheet1 columns are: "ID", "URL", "Location"
Spreadsheet2 columns are: "ID", "Picture"
Spreadsheet3 columns are: "ID", "Address"

As I said copy/past is not an option as the IDs are not in the same order. I need to create a new spreadsheeet and have all "ID", "URL", "Location", "Picture", "Address" in that spreadsheet.

View 12 Replies View Related

Excel 2013 :: Finding Common Value Repeated In Each Column?

Dec 21, 2013

I have an Excel file in which I want to find the numbers which are repeated in several columns (B to L), but there are too many rows to find them looking one by one cell, is there a function which will allow me to find the common values which appear in these columns?

eg.:

A B C
1 3 4
2 1 7
2 4 7
4 1 1
results: 1 & 4

View 6 Replies View Related

Find Top 10 Most Common Words In Column Of Text Strings?

Apr 1, 2014

I've been racking my brains trying to find a way of doing this. I have a list (column A in Excel) of over 50,000 organisations and I'd like to know what the most common words used in the names are. Ideally it would great if I could produce a top 10 list of the most common words at the top e.g. Ltd, School or Church with a count in the next column of how times that word it appears

View 5 Replies View Related

Filter Data Into Groups That Contain A Common Data Point Using Pivot Tables?

Apr 30, 2013

I want to use a Pivot table to filter data to show just the studies that contain patients from the 'South' area?

As per example below I want to be able to see all the patients in all areas but only for studies that have patients from the south. I put together an array formula that works well for small tables but is too much with one one my sheets that contains 200,000 rows.

Before filtering:

Study ID
Study Short Title
Study Patient ID
Area

1346
LLP
90126
Northwest

[code]....

View 8 Replies View Related

Copying Block Of Data To Another Sheet?

Feb 12, 2014

I am looking out for a code where I can copy a block of data to the second sheet and adding the new block of data below the previous one.

The block of data ranges from E6 to K15. On a click of the command button the data gets copied to sheet2 starting from A2. It will be pasted in sheet2 from A2 to G11. When I click the command button with the new data it will be added from A12 to G21 after that A22 to G31 and so on It will keep on adding the block.

View 4 Replies View Related

Automatically Create Set Of Charts From Block Of Data

Jul 12, 2012

I have a quite big database as a result of a study in Excel 2010. There is a special block of data for every participant in the study, including 16 data series in 16 lines. I have to make a unique chart for every line.

One block is bulid up in a way, that every row is the input for a chart, with the exception of one "spacer" row, which is empty.

Name
1 2 3 4 ...
A
B
C

D
E
F

For example in the sample above, there should be 6 line-charts (A, B, C, D, E, F) next to the block.

Can a macro be written, so I can automatically create the chart-set by selecting the block's upper left cell and running the macro? Or is there any easier method?

View 5 Replies View Related

Taking Multiple Data Block To Another Sheet

Mar 3, 2007

I need to use Excel 2007 in a stock sheet situation.
I have attached a picture of what the sheet will look like.
What I need is a formula that will take a value in column c and then add the value in colum a behind that. Preferably with a X or - between them ie.

If i took the first row and applied the formula it should kick out 5 x Jam
The main thing is it must output the answer to another file/page so that the main page stays the same. And if there is no value in Colum c it must ignore it.

View 9 Replies View Related

Copy Data From One Book To Another From Common Data In One Cell

Feb 15, 2010

Got an issue that I can only seem to do with things like the program Hotkey and making physical macros. I'm sure it is easy but I'm lost.

I have data in one book that looks like this (Call it Book1)

Date: Service
ProviderReason for callCRM
SR #DM
SR #WO #Device #Serial #Issue15/02/2010DATE: 03/02/10
TIME: 11:29
BUS: 1234AO
ISSUE DETAILS: Issue with Console


and data in another book that looks like this (Call it Book2)

DeviceSerial NumberNameTerminal PositionTerminal Group Location DescriptionTerminal IDDescription Service Provider 104012343030123456ConsoleDriver Console1234AO90401234Service Provider Name found Here

I need to find the BUS: 1234AO from the cell in Book1 then look that Bus up in Book2 and then from Book2 copy the Device, Serial Number, and Service Provider into the cells into Book1 and repeat this infintely often. The problem I have is the the bus can have 1 Console and 1-5 Readers and I need to find that data also. So for example I need to find BUS 1234AO and get the Console details and past that into one issue and the next issue will have the same bus number 1234AO but I need the details for Reader2 (that detail is in the Name field as shown above.) The issue details will always have the Console text and Reader# text in it.

The problem I have is that the Reason for call cell has ALT-ENTER characters in it and the details are not always in the same spot but the details are almost always in the format ####AO (four numbers and the letters AO)

View 19 Replies View Related

Merging Data In Common

Apr 12, 2009

I have two spreadsheets that have one set of data in each column in common.... simply put it is a number.

From the one spreadsheet, I want to pull the column that is to the right of the number in column and merge it with the other data.

I am trying to figure out a formula that will accomplish this... I have attached a file to show the two spreadsheets and my end result I would like to have.

View 13 Replies View Related

How To SUM Data With The Common Header

Aug 3, 2014

I have attached the excel sheet here for reference.

I would like to sum up the values across rows, so long as they have the terms "FQ1", "FQ2", "FQ3" or "FQ4" in the first row.

In other words, for the row "Total Revenue", I would like to sum up the quarterly values, using VBA, since the number of quarters increase with time.

How should I code up a VBA for that?

View 4 Replies View Related

Autofilter Block Of Data From Active Cells Offset

Jul 16, 2012

Thats the best I could describe that What I face today is the means to run a VBA Autofilter from an Activecell. The Activecell is a search result. I have a table that spans from A1 to E5000. The Activecell will always be in Column A. What I need to happen in when the Activecell is found an Autofilter is placed in the block of data from Column B to E. The rows will change after every search hence my dilemma. Each block of data has its own header as well

So if my Activecell is A2 then I need B1:E4 Autofiltered then Column E sorted Smallest value to Largest. The Activecell needs to remain static. The size of the blocks of data are exactly the same.

Here is a photo example of the desired result. Untitled.jpg

There are hundreds of blocks of data like this.

View 7 Replies View Related

Error Code Selecting Block Of Data From Worksheet?

May 3, 2014

I am trying to select a block of data from a remote worksheet but I keep on getting the following error

Run time error '1004':

Application-defined or object-defined error.

I have attached the file and I am working on worksheet 21 "PT Monthly Report 1"

View 7 Replies View Related

Excel 2007 :: Make One List Out Of Columns Based On Common Information In Column C?

Oct 12, 2011

Is it possible to take the information below and make one list out of columns F, H and J based on the common information in column C? For example, group all the 18s in a list, followed by the 44s.this is excel 2007

column CColumn Fcolumn Hcolumn J

Option code
18180L12369301/123/54
18180L12369301/123/54
18180L12369301/123/54[code].....

View 2 Replies View Related

Copy Data Not Common Between 2 Sheets

Jan 8, 2008

I am trying to write a VBA code to conditionally copy and paste a range of cells on sheet A into sheet B if the specified cell value is not found on sheet B. Here's an example

On sheet A, there are phone numbers in column M that I need to find in sheet B. The reference column in sheet B is already a named range ("Description") which I'm using to conditionally format several cells in sheet A to turn green when the phone number is not found on B. This is the formula I'm currently using to do this "=AND( COUNTIF(DESCRIPTION, $M2)=0, $R2>0)" ...Obviously I'm using the AND function to tell the format to only work if the cell value of R is greater than 0.

What I would like to do to something very similar to what I already have in place, only now I would like to have a macro search through column M and instead of highlighting the proper cells...I would like to copy the associated row data from columns B:N in sheet A and paste special>values into A:M on sheet 2. Also, I need to keep the "R is greater than 0" condition in place.

View 3 Replies View Related

Insert Data From Different Worksheet Based On Common Value

May 7, 2013

I have searched and there are some examples that are similar to what I'm looking for but I cannot seem to use those answers to make my problem work. The example from the forums that seems to match my problem the closest is [URL]....

Summary: I have an Excel file called "COST TEMPLATE.XLSX" that has product information (serial number, quantities, pricing), calculations and reports; then on a monthly basis I receive a file (VENDOR_EXPORT.CSV) with updated product quantities to be merged into the cost spreadsheet.

I would like to merge specific data fields from the VENDOR_EXPORT.CSV file into my cost template based on the serial number. I am attaching three dummy files that hopefully describes the issue:

1. COST TEMPLATE.XLSX
2. VENDOR_EXPORT.XLSX - which highlights the cells to be import and to which corresponding column
3. VENDOR_EXPORT.CSV - raw CSV file

My preference is to do this with functions, not macros. How to add the export into the existing workbook as a temporary worksheet, or just pull from the other workbook as CSV file.

View 3 Replies View Related







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