Combining data from 3 separate Spreadsheets in Excel - excel

I'm trying to combine data from 3 separate spreadsheets:
-All three sheets have a common column called "Tag" which has ID numbers
-Sheet 1 contains the most info and will be used as the sheet where everything will be merged into.
-Sheet 2 has certain dates which i would like to move to sheet 1 but i want the info matched up with the correct ID numbers and hence end up in the same row in sheet 1 as the data in sheet 1 with the same ID number
-Sheet 3 also has certain info i would like to move to sheet 1 and i also want the info presented the same way as the info from sheet 2.
How should I go about doing this? I'm not as good with vlookup and pivot tables and im unsure what can help me best and how to do it.
thanks in advance for your help.

Here is an example of Vlookup:
You can simply use this formula to populate all the other data for each tag on your master worksheet.
Autofill is a way of populating formulas and values into other cells - by dragging your initial formula into those other cells. You should read about it as it is an essential part of nearly any use of excel.
http://www.homeandlearn.co.uk/excel2007/excel2007s2p2.html

Related

Make rows sort together in excel without having value

I have an excel workbook with 2 sheets.
Column A of Sheet 1 and 2 are the exact same data. When I sort the first sheets data, Sheet 2 Column A is automatically sorted because it is referenced. (='Sheet1'!$A$2:$A$100).
But when I sort the above, Column B's cells in Sheet 2 don't follow the row of data. Now the data gets messed up because B2 in Sheet 2 did not move with the original A2 data that is referencing the first sheet.
Is there a way to keep the data together?
Below are images of sample data:
Sheet 1
Sheet 2
Now when I sort sheet 1 from Z-A:
Sheet 1 Sorted:
Sheet 2's sorted data (Not matching)
I want the phone number and contact name in sheet 2 to follow Alafia Village. Is there a way to make that happen?
For what it's worth, I don't agree that this is fundamentally bad design. If your two sheets were two tables in a database and you wanted to join them on 'something' so that the name was taken from the first table and the other details from the second table, that would be fine - much better than duplicating the names in the second table, which would be bad design. The only is issue is that the 'something' here is the row number and as soon as the order in sheet 1 changes, the row number doesn't work any more.
The answer would be to have a key in sheet 1 and look up the key in sheet 2. If this key were in column C (say) in both sheets, you would have an index/match in column A of sheet 2 like this:
=INDEX(Sheet1!A:A,MATCH(C2,Sheet1!C:C,0))
In practice, you might also want to look at Power Query.

To lookup multiple conditions in different sheet and show all result in column by column- possible to do it with excel formula or vba is required?

need some help on my excel production report.
I want to Lookup for the daily unique ID, gram and pieces from Sheet 1 into Sheet 2.
The daily unique ID consists of up to 5 categories.
Each day, there could be up to a maximum of 3 unique ID produced with each one having different categories (some have 2 same categories with different grams and pieces. It need to be shown in a separate column in Sheet 2), grams and pieces.
I came out with an excel formula but it only works IF there is only one daily unique ID per day. If there is more than one unique ID, this formula fails as it only captures the first one.
Please see my formula below
I2:I100 is the gram in Sheet 1
E2:E100 is the "unique code-category" in Sheet 1
D11 is the unique code in Sheet 2
P11 is the type of categories
{=IFERROR(INDEX('A'!$I$2:$I$100,SMALL(IF(($D$11&"-"&$P$11)='A'!$E$2:$E$100,MATCH(ROW('A'!$E$2:$E$100),ROW('A'!$E$2:$E$100)),""),ROWS($A$1:$A1))),"")}
Is there a way I could capture everything?
Can I do it with excel formula or a VBA is required?
I have tried many different formulas but nothing came out right, please help :(
Please let me know if my explanation isn't clear. Thanks.
Sheet 1
Sheet 2 (Final Report)

Comparing two different Excel sheets in same workbook

I have two excel sheets. Sheet 1 has roughly 2400 rows (and will continue to grow) and sheet 2 has roughly 4400 rows (and will also continue to grow. Sheet 1 has one column and sheet 2 has 2 columns (but I only care about the first column). I need to compare sheet 1 and sheet 2 and be able to see what sheet 1 values are NOT in sheet 2. Ideally, this data would then populate a new sheet 3.
I have searched through many sites and many pages here with stackflow, but because I am so new at this, I'm not sure if I have come across what I need or not. Everything I have tried is not working.
Any help would be greatly appreciated!!
Additionally to the already mentioned vlookup or match alternatives you may copy the values from Sheet1 to a new worksheet and add a column "source" where you enter "Sheet1". The same you do with the values from sheet 2. And then you create a pivot table to see immediately which values are on which sheet:

Excel Spreadsheets and Vlookups

I have spent about 2 days now trying to copy and paste row by row...
I have about 69 out of 600.
My problem is this: I have 2 Spreadsheets. Spreadsheet 1 has the name of procedures 1-602. In Spreadsheet 2 I have the same procedures followed by their corresponding duration times, and specialties. Spreadsheet 2 however, is a master file so it has about 10,000 procedures. I have to literally Ctrl Find the procedures from spreadsheet 1, then copy and paste the information following the name in A2:A6 or B2:B6. I have tried IFError and Vlook up but it says that I am missing parts to my formula. Is what I am trying to do possible? What I want it to do is to look at the procedure name from Spreadsheet 1, find it in spreadsheet 2 and bring back that information on the rows behind it ei. A2:A6.
Try the following, update the +0 to +1, +2, etc. to retrieve additional rows.
=offset(sheet2!$A$1,match(Sheet1!A1,Sheet2!$a:$a,0)+0,0,1,1)

Excel VLookup based on two variables across 3 sheets

I am trying to sum the totals of data stored in 3 sheets based on 2 variables into a summary sheet (ie. a forth sheet).
I want to match both the place name and the week number for each place on the summary sheet.
On the Summary table we have at the top the week number we want to use. A list of places in column A and the number of visits in column B.
THis formula worked.
=SUMIFS(ND!$V$3:$V$4000,ND!$F$3:$F$4000,TEST!$A$1,ND!$B$3:$B$4000,TEST!A3)
In column B of the summary sheet for each row. However it only looks up data from one sheet not all 3. I tried this but it causes an error:
=SUMIFS(AND(ND!$V$3:$V$4000,GK!$V$3:$V$4000,TW!$W$3:$W$4000),AND(ND!$F$3:$F$4000,GK!$F$3:$F$4000,TW!$F$3:$F$4000),TEST!$A$1,AND(ND!$B$3:$B$4000,GK!$B$3:$B$4000,TW!$B$3:$B$4000),TEST!A3)
How do we get it to work.
Could you just use the formula
=SUMIFS(ND!$V$3:$V$4000,ND!$F$3:$F$4000,TEST!$A$1,ND!$B$3:$B$4000,TEST!A3)
3 times like
=SUMIFS(ND!$V$3:$V$4000,ND!$F$3:$F$4000,TEST!$A$1,ND!$B$3:$B$4000,TEST!A3)+SUMIFS(GK!$V$3:$V$4000,GK!$F$3:$F$4000,TEST!$A$1,GK!$B$3:$B$4000,TEST!A3)+SUMIFS(GW!$V$3:$V$4000,GW!$F$3:$F$4000,TEST!$A$1,GW!$B$3:$B$4000,TEST!A3)

Resources