Joining Two Datasets Together (VBA Needed?)
Jun 19, 2014
So I have two sets of data, I've attached a worksheet which has them both. The datasets have different intervals, but I need to drag "Colour" from Data2 into Data1 and associate it with the correct interval. Sometimes the intervals match up and sometimes they don't - which could be a problem, but as long as its within a small spread it's fine. The "Colour" column in Data1 is filled with my desired result, the source being Data2.
ManyToMany_Example.xlsx
View 3 Replies
ADVERTISEMENT
Nov 13, 2009
I have two spreadsheets, A & B. A can be thought of the master spreadsheet and has one record for every employee giving personal information, including a personel number. B has 0, 1, or 1+ records for every employee in A. Each of these records has a personel number. I want to copy the value of a specific field from B to A.
For example:
A:
personel number1
personel number2
personel number3
B:
personel number1, 'sally'
personel number1, 'john'
personel number3, 'pete'
merge A & B:
personel number1, 'sally', 'john'
personel number2
personel number3, 'pete'
View 5 Replies
View Related
Apr 11, 2013
Imagine I have some columns of data. How can I stack multiple columns on below the other in column A?
For example, A column is blank now. B,C,D have some data.
A
B
C
D
1
[Code]...
Can all the columns be stacked in the empty column A?
A
1
ab
2
cd
[Code]...
This is just an example. I have 8000 columns in reality.
View 2 Replies
View Related
Mar 28, 2008
I have 2 columns of Data that contain address fields.
SHEET1
Address1 Address2
%MW4003 %MW4004
%MW5643
%MW9878 %MW9879
%MW13002
%MW5643
etc
The address2 Column is based on a formula.
What i need to do is combine the 2 columns together in another sheet in a column. I do require duplicates to come through, and ideally i need it sorted.
SHEET2
Address
%MW4003
%MW5643
%MW5643
%MW9878
%MW9879
%MW13002
View 9 Replies
View Related
Sep 27, 2012
I have a list of numbers from cells A1 to A150 (they are five digits long), I need to join them together preferably with a the following format '12345', I have tried concatenate but it would take too long to type it all out.
View 2 Replies
View Related
Jul 3, 2013
I have same tables(same name of columns in all tables) with different data in 30 different workbooks...can I somehow merge data from all tables in one table?
View 2 Replies
View Related
Feb 19, 2014
Below is the data layout. I want to join values in value column if Condition is true. SO, for below situation answer should come ACE.
TRUE
A
FALSE
B
TRUE
C
FALSE
D
True
E
View 2 Replies
View Related
Jul 28, 2006
I have to cell values that are strings and I want to add the two string values together to form a sentance, when I do this using a + sign or a & sign there is no space between the 2 strings, how do I get a space?
View 3 Replies
View Related
Feb 10, 2014
I am prepare budget salary base on actual joining date and budgeted joining date. I can only manage to get the formula by joining month not by joining date
View 10 Replies
View Related
Jan 28, 2013
i have two entries in my excel sheet which i want to get noted in the other cell as follow
A B
1 ORDER NO. 480
2 GOODS 5
3 P.M 480X5
as my table have data in B1 AND B2 so i want B3 automatically becomes 480X5 so how can i do it
View 2 Replies
View Related
Jun 6, 2009
I have the following three codes repeated in five different User Forms,
Is there a way to put them all in one independent module?
View 14 Replies
View Related
Dec 16, 2008
I feel like I should be be able to do something like Join(Range(XX)," ") to create a space-separated string of values...
Have I missed an easy one-liner, versus one by one concatenating the value from each cell?
In this case, I am doing exactly that - taking 4 columns of more or less unimportant data and cramming them into a single column just in case they are needed someday.
Sub Test()
Dim strTemp As String
strTemp = _
Range("C2").Value & " " & _
Range("D2").Value & " " & _
Range("E2").Value & " " & _
Range("F2").Value
'//Result: strTemp = "a b c d"
'//This fails - is it possible to do something like this
strTemp = Join(Range("C2:F2"), " ")
End Sub
View 9 Replies
View Related
Feb 27, 2007
I read several forum questions for data join and merge but not found a solution for the following scenario. Is possible do it ALL in one macro? I have two different xls files.
file1: sheet has the following structure
refcode price count
XXBK443 200.0 3
KKKN339 333.0 2
etc..
file2:sheet1 has the structure
refcode prod_name color height
XXBK443 prodname1 green 10
ZZZZ000 prodname2 yellow 22
KKKN339 prodname3 white 15
AAAA111 prodname4 white 30
etc..................................
View 3 Replies
View Related
Jun 30, 2009
Can someone pls. assist me with obtaining an Excel or VBA solution for joining data from across a range of cells/columns into one cell? The single cell containing the intended output has to include the name of the source(s) that are noted on the header column and the price corresponding to each source but would exclude the sources which did not have pricing data. Example of logic is noted below:
Cells B1 - D1 contains names of pricing sources.
Cells B2 - D2 contain prices from these pricing sources.
Intended output: Cell E2 would have the names of all the pricing sources that had prices as well as their corresponding prices; but would exclude those that didn't.
Lastly, pls. see attached Excel file for format of data and intended output in Column E.
View 8 Replies
View Related
Apr 10, 2012
Here is my data:
Column A: Entries
Column B: New Entry
Column C: Total New Entries
Version:1.0 StartHTML:0000000105 EndHTML:0000004087
StartFragment:0000001523 EndFragment:0000004041
****** http-equiv="Content-Type" content="text/html; charset=utf-8">
****** name="ProgId" content="Excel.Sheet"> ******
[Code] .......
Formula in B2: B17
=IF(RIGHT(A2,10)="_New Entry",1,"")
Formula in C1
=SUM(B2:B17)
I would like to remove Column B, and add the formula in C1 itself. Column B is not of any use, it is just showing which is a new entry and C1 is totaling all the New entries, which is in this case is 4.
I need a formula something like this:
=SUMIF(B2:B17,IF(RIGHT(B2:B17,10)="_New Entry",1,"")))
View 3 Replies
View Related
Apr 9, 2014
I have a spreadsheet that lists users plus 4 columns of data horizontally and other data vertically. See image forum_sheet.png
My problem is the sheet is getting wider and wider as users are added. What I would like to be able to do is have a dropdown or something that allows me to select a users name which would then display their data set [ four columns ] on its own. I have tried validating a dropdown list but this only works on a single column.
See image forum_sheet_2.png
View 1 Replies
View Related
Aug 3, 2014
What's the best way to look at two sets of data in excel and make comparisons between them. For instance how many matches (and what are the matches). Workbook attached as an example.
matches between data.xlsx
View 8 Replies
View Related
Jul 24, 2014
I have several data sets taken from an instrument recording the same sample. The data are noisy so I would like to average them. Annoyingly, the operating software for the instrument allows you to specify start and end values, but not the amount of points in between (unbelievable, I know). I therefore have data which looks like:
25, 1
25.1, 5
25.6, 7
25.8, 10
25.9, 12
and
25.1, 1
25.4, 4
25.7, 6
25.9, 14
So each replicate has a different sampling rate (the data set is much larger than the example above though). Is there any built-in Excel function to standardize these data to a fixed amount of x values, and perhaps averaging both the X and Y values of all points within the bin?
View 4 Replies
View Related
Dec 10, 2013
I have a large set of data in an array of many cells. I need to subtract a fixed amount from each of these cells without changing the location of the cells as there are many different references too them Is there a way to do this?
View 3 Replies
View Related
Mar 1, 2013
I own a custom print shop and I am trying to generate skus based on variables..Column A will only have one item (the product code), column B will have the sizes, Column C may contain more or less colors depending on what is offered for the shirt style, Column D hopefully can contain all the combinations. All this data will be in contained within one worksheet..
Column A
Column B
Column C
Column D
G200
S
Red
[Code] .......
View 3 Replies
View Related
Aug 7, 2013
I'm trying to work out a way to use a MAX function and IF Function to determine how i can find the highest number since a trade began. For example, i have a countif function that is identifying each trade (Column B) so what i want to do is to find the highest number for each trade (Column A) which is represented by dummy variable 1,2,3,4 etc. Please see example below: what i want to do is write code which runs for 3500 lines and finds the highest price since trade began and trade's are represented by 1,2,3,4,5,6,7 etc.
Close
Number
TRADE PRICE
HIGH PRICE
0.6347
1
$0.63
0.6565
0.6373
1
$0.63
[Code] ........
View 7 Replies
View Related
May 30, 2014
If I have ten numbers which I would like to split into 5 buckets (1,2,3,4,5) how can I best achieve this?
A trivial example:-
The series 12, 12, 18, 18, 25, 25, 34, 34, 40, 40 would neatly spilt into 1, 1, 2, 2, 3, 3, 4, 4, 5, 5.
Similarly
The series 12, 13, 18, 19, 25, 27, 33, 34, 40, 41 would neatly spilt into 1, 1, 2, 2, 3, 3, 4, 4, 5, 5.
A non-trivial example
The series 12, 13, 40, 41, 42, 50, 70, 71, 89, 90, 91 I would like to be split into 1, 1, 2, 2, 2, 3, 4, 4, 5, 5, 5.
So groupings are based on how close consecutive numbers are to each other and there must be at least one value in each bucket (1,2,3,4,5). The number of data items can vary form 5 to, say 20 or so.
View 7 Replies
View Related
Jun 23, 2014
I have 2 datasets. 1 of them is 5103 lines and other one is 5121. They contain the samde data but as you can see one of the dataset have 18 more lines than the other. Because of this I can not copy a columns from one dataset to other because the values will not match with the correct ones because of the line differences. How can i compare for different rows or how can i copy at least the 5103 line correctly and than fill other 18 by hand ?
View 1 Replies
View Related
Jul 10, 2014
All of the strings are in one column and are in General format. They contain a few different types of strings: some only numbers, some numbers separated by commas (which makes them NOT numbers according to ISNUMBER), some text only, some text and numbers (separated by comma), some are 3 numbers, each separated by comma, etc.
ldJBlt9.jpg
What I'm looking to do:I want each of these distinct types filtered out someway. I've already done ISNUMBER to filter out the values which are numbers only, no commas. Perfect.
For the next step, I'd like to filter out cells which have only numbers and commas. The comma itself makes them considered not numbers, so how do I add the condition that I'm looking for cells with digits and a comma? A wildcard?
Edit: I've found the following formula which can check if it contains a comma, but doesn't specify between digits or text. Just commas. =IF(ISNUMBER(FIND(",",A1)),"TRUE","FALSE")
View 1 Replies
View Related
Aug 8, 2013
I am collecting data the temperature of an animal, i am also collecting ambient temperature at the same time when i plot the two data sets there is an 89% Correlation so i know the animal temperature is affected by the ambient temperature. i want to be able to take this influence of ambient temperature out of the recorded temperature. I dont think its a linear relationship
View 5 Replies
View Related
Nov 2, 2013
indexing complete data sets for each entered value. see example to better understand what I am trying to do. I have been trying for weeks.
Steve
INDEX.xlsx
View 14 Replies
View Related
Mar 12, 2012
I have a list of people whose direct reports have either completed or not completed a task at work, and there are four tasks. The records look like this (I've removed the direct report's name, which is to the left):
Manager NameTask 1Task 2Task 3Task 4Mickey SmithCompleteCompleteCompleteCompleteDanny Ledbetter
IncompleteIncompleteCompleteCompleteDanny LedbetterCompleteCompleteCompleteIncompleteMickey SmithCompleteCompleteCompleteIncompleteMickey SmithCompleteCompleteCompleteIncompleteMickey SmithIncompleteCompleteCompleteIncompleteDanny LedbetterCompleteCompleteCompleteComplete
I want to pivot the data so that for each manager I can see the % who completed Task 1, the % who completed Task 2, etc. preferrably in a horizontal format.
So, I can get this easy enough for the first task:
Count of Task 1Column LabelsRow LabelsCompleteIncompleteGroup 1Danny Ledbetter67%33%Mickey Smith75%25%
However to the right of this I want the results for Task 2, 3, and 4. The best I can do is the following:
Column LabelsCompleteIncompleteRow LabelsCount of Task 1Count of Task 2Count of Task 1Count of Task 2Danny Ledbetter67%67%33%33%Mickey Smith75%75%25%25%Grand Total71%71%29%29%
The results for Task 2 are incorrect. I've tried % of Row, % of Parent Row, and all the other calculations, and can't seem to get it. I've also tried putting the fields in the Column Labels box, the Values Box, etc.
I can even get this if I put the SumValues field in the Row Labels, which yields a vertical result, but still, the values are incorrect (Mickey has 100% completion under Task 2):
Column LabelsRow LabelsCompleteIncompleteDanny LedbetterCount of Task 167%33%Count of Task 267%33%Mickey SmithCount of Task 175%25%Count of Task 275%25%Total Count of Task 171%29%Total Count of Task 271%29%
View 2 Replies
View Related
Mar 9, 2013
I have a large collection of datasets, sorted/grouped by rows. I need to perform some calculations against these SETS (Ave, Low, Median, etc.).
The number of member in each SET is variable (1 to NN), the number of SET Members is included in the data. Example:
Code:
3 Data Sets:
Row Set Members Price Ave
1 A 4 $1.00
2 A 4 $1.25
3 A 4 $1.50
4 A 4 $1.75
5 B 1 $4.00
6 C 3 $10.45
7 C 3 $14.50
8 C 3 $17.75
how to compute the AVE value for each SET above?
I am thinking if I can determine the FIRST Row number for each set, add the MemberQty as an ~offset to determine the LAST Row, then use an Indirect reference to compute the ave, something like:
=AVERAGE(INDIRECT("D"&A1&":D"&A1+C1)) The SET's Ave value should be added to EACH row in each SET.
I am struggling trying to point a formula like this to the First Row of the NEXT set.
View 3 Replies
View Related
Feb 28, 2014
My problem is that whilst dealing with large datasets, i'd like to be able to create a macro which will give me a pop up box to input different types of keys words to search within a dataset. Once these keys words have been found, i would like excel to highlight the entire line so it can be extracted into a new worksheet.
View 3 Replies
View Related
Feb 19, 2007
i have list of users with name, company, division, subdivision, date ...
the list can contain more than 10000 users and i want to be able to switch 2 users using a listbox/filter/ validation list.
there can be multiple users with the same name even company so a simple validation list which is limited to 1 column will not suffice. the interface for the switch should be fool proof so anyone can switch 2 users.
View 6 Replies
View Related