Excel: Linking the data of one Table's column to Table in another Workbook - excel

Thank you for reading my question.
I am looking to replicate certain columns (e.g columns A,D,F) from a table (e.g TableX) DYNAMICALLY to a set of columns (e.g columns H, J, K) in a second table (Table Y) in a second workbook (Workbook 2).
I want to make sure the link is live between the two, and that if I delete or add rows to Table 1, Table 2 automatically expands/retracts to represent the same number of entries.
I have tried linking the tables, but I end up with !REF errors. I have tried Linking Named Ranges, but I seem to lose expansibility. I have tried linking Table 1 to an Access database, then Linking that Access database with Table 2, but have not been able to get it to work.
Any thoughts?
Cheers for any help.
R

If the Row Number of Table 1 in Excel Workbook 1 and Table 2 in the Excel Workbook 2 are the same, (Example, both tables begin at row number 5), then use the following formula
=IFERROR(IF(ISBLANK('Excel Workbook 1.xlsx'!Table1[[#This Row],[Col_A]]),"",'Excel Workbook 1.xlsx'!Table1[[#This Row],[Col_A]]),"")
If the row numbers of Table 1 and Table 2 are different, (Example Table 1 begin at row 8 and Table 2 begins at Row 25) then use the below formula.
=IF(ISBLANK(OFFSET('Excel Workbook 1.xlsx'!Table1[#Data],ROW()-ROW(D$4)-1,0,1,1)),"",OFFSET('Excel Workbook 1.xlsx'!Table1[#Data],ROW()-ROW(D$4)-1,0,1,1))
In the 2nd formula, the D4 is the location of the title of the column of Table 2.
In the 2nd Formula, I am assuming that there is no data below Table 1. All rows below the title of Table 1 should only contain data which is a part of Table 1.
Change the Cell References, Workbook Names, Sheet Names and Table Names as required.
I hope this solves your problem.
Regards,
Vijaykumar Shetye,
Spreadsheet Excellence,
Panaji, Goa, India

Related

need to copy data from one sheet to another depending on a value of the first sheet

i have never used excel except for in college and well that was a while ago, what i have is 3 sheets sheet 1 contains all user information sheet 2 is company information and sheet 3 is company member information,
now what i need to do is this,
i need to loop through sheet 1 column K and search for what is not "Individual" then i need the value of sheet 1 column A and put that in sheet 3 column C
i also need the index of the same row that does not equal "Individual" and use that to grab the value of sheet 2 column A and put that in sheet 3 column B
hopefully that makes sense and is actually possible and any ideas would be greatly appreciated!

Condense many tables with overlapping information into one table

I have an excel workbook with 15 worksheets. Each worksheet contains one table with a list of species. There is quite a bit of overlap of species among the worksheets. So I'm trying to reduce that overlap by merging everything into a table.
I need to condense all 15 worksheets into one table that lists all of the species one time, and then shows if each species was present in worksheet X. So basically the first column would be all of the species, the column names would be each worksheet, and the body of the table would be check marks indicating if the species appeared in worksheet X. Here is an example:
Worksheet 1 Worksheet 2
Species Species Code Species Species Code
Casurina equisitifolia caeq Odocoilius virginianus odvi
Columbrina asiatica coas Gavia immer gaim
Gavia immer gaim
The table I want to create
Species Worksheet 1 Worksheet 2
Casurina equisitifolia Y N
Columbrina asiatica Y N
Gavia immer Y Y
Odocoilius virginianus N Y``
There are different ways to achieve this. Below is one approach:
First create a new worksheet (referenced as Sheet1 for this example) in your workbook. Add the names in column "A". Now add your sheet name as a header in respective columns. Then add the below formula in cell "B2":
=IF(ISERROR(MATCH(Sheet1!A2,Sheet2!$A:$A,0)),"N","Y")
Where Sheet1!A2 holds the name you are looking for. Sheet2!$A:$A is your first sheet that holds the names (in column "A" of Sheet2 for this example). This will give you "Y" if the name exist or "N" if it doesn't exist. Now drag the formula cell down the length of names and it will give you what you need for sheet 2. Repeat this process for each of the sheets you have and you should have what you need. Hope this helps

Excel: Find unique values in a column with criteria between sheets

I've read many answers to similar questions but none I've seen satisfy my task, or I'm implementing it incorrectly.
I have two worksheets.
Worksheet 1:
Column A - a list of URLs
Column B - a list of anchor texts
Worksheet 2:
Column A - a list of URLs
In Worksheet 2, column B: I want to count the # of times there is a unique value in Worksheet 1, column B that corresponds to the URL in Worksheet 2, column A.
Is this possible?
Many thanks in advance.
I think you can achieve this by using a pivot table where first you select rows = urls and then rows = text_excerpts. After that, in values you should use 'count values of text'.
Then you'll have a pivot table that looks like this one:
Note that the url3, that contains 2 times the text1 and 1 time text3. In other hand, the url7 contains 1x text1 and 2x text5.

Excel VBA Lookup Methods

I have an issue that I've been scratching my head at; I've looked into the Index:Match lookup method, and V/HLookup, but I'm not sure these will help just yet. Here's what's happening:
I have two worksheets in excel-2007. One has a Customer ID column (which does and will have duplicate ID's in the instance that the customer did "x activity" more than one time in a month) and then the date that this happened in another column. The second sheet is for giving an overview of a specific day, IE what happened on 7-1-13.
The issue is that my raw data sheet is sorted via the first of the month descending, so 7-1,7-2,etc, and when I run the Vlookup, if a Customer ID has a record on 7-2 and on 7-15, the VLookup will pull data only from the 7-2 (first) row. Has anyone experienced this and found a workaround?
My current workaround would be to make either a new table for each day's data, or instead of using my VLookup of =Vlookup(A2, 'Data Sheet' A:D, 4, 0) to give the columns row numbers, like =Vlookup(A2, 'Data Sheet' A$1:D$30, 4, 0). This is a daily report, and that would be intense. Please help if you can!
(Another side note, I have one main sheet for the view, one data sheet where it's all collected, and then 30 sheets, one for each day of the month, this case being July). For each sheet, I've named them the day of the month, so I'm reflecting the data as such:
Sheets("7-1-13") has data from the 1st on it. The Data Sheet in it's entireity has data from 7-1-13 to 7-31-13. I need to reference ID's on the 1st to the data for the 1st and the 1st only.
I want to use something like this, but I'm having a hard time with it
=Vlookup(A2, 'Data Sheet', A:D (ONLY IF THE CREATE DATE OF THIS ITEM IS 7-1), 4,0)`
but of course it's not that easy :p
This may not give you your results in a format you like and still requires a bit of manual work, but without going the route of macros, I think this will get you one step closer. I thought of using an array formula to get all the IDs by a specific date.
Example:
A B
ID Date
1 5 7/1/2013
2 2 7/2/2013
3 5 7/3/2013
In this situation, I assume you want 5 from the first row to appear on your 7/1 sheet, 2 to appear on your 7/2 sheet, and 5 from the third row to appear on your 7/3 sheet
on your 7/1 sheet. you'll need to select the number of blank rows that matches your raw data (using the example above, you would be selecting A1:A3 on your 7/1 sheet). Once you have your cells selected, then enter the following formula in the formula bar and press Ctrl+Shift+Enter. This is what makes the formula an array formula.
=((Raw_DataSheet!B1:B3=DATE(2013,7,1))*1)*Raw_DataSheet!A1:A3
What this formula does is looks at all the dates in B1:B3 and finds the ones that equal 7/1/2013. Since you're using an array formula, this gives you the array {TRUE,FALSE,FALSE}. Multiply this by 1, and you get the array {1,0,0}. You now have an array that has a 1 for each row of B1:B3 that was equal to 7/1/2013. This array {1,0,0} is then multiplied by your Customer IDs {5,2,5}
5 * 1 = 5
2 * 0 = 0
5 * 0 = 0
So now your entire formula is equal to the array {5,0,0}. Since you selected A1:A3 on your 7/1 sheet, the values that should appear should be
A
ID
1 5
2 0
3 0
From here, you can always filter out the 0's and you'd just have a list of all the IDs that had the date of 7/1 from your Raw Data Sheet. You would also then replicate this for each of your sheets and just change the date in the formula...Yes, I know, way more complicated than you probably wanted but it's what I came up with!

MS Excel 2010 - Auto populate Based on information on another sheet

The goal is to create a formatted balance Sheet based on information (data dump) off of the database.
Download Excel File
There are 2 worsheets
Work Sheet 1: Raw Data Sheet
Column A Column B
Grp 1 Name 1
Grp 1 Name 2
Grp 2 Name 45
I need to populate Work Sheet 2 as
Column A Column B
Grp 1
Name 1
Name 2
Total Grp 1:
Grp 2
Name 45
Total Grp 2
This needs to be automated such that if a new Row is added to the Raw Data Sheet (e.g Grp 1, Name 76) it should be reflected on the other worksheet.
I'm not an Excel Pro (macros, vba etc...) - any help will be appreciated!
Thanks
Have you thought about just making a Pivot Table?
Create a pivot table with Row Labels Column A and Column B, and Values with whatever fields you want to aggregate. It won't update automatically but you just have to hit the "Refresh" button in the PivotTable Options ribbon to update the data.

Resources