This is very similar to this question, except all my work in only in WORD.
Split Excel table to tables based on Column value and copy them to MS Word
I want to split a word table similarly and paste 3 tables in the same document.
Related
I'm trying to work a excel table than contains more than 300000 records, I need to apply a filter based on #N/A criteria on one column and then get those records (only the data of two columns) and used to create a vlook up to extract some information on another table. Filter result is no more than 5 records
I am writing a macro for automating some task where i need to pick column names from an excel sheet , use that columns in select statement in sql and then fetch the values for those columns from database table. is there any way through which i can acheive this.
e.g.
in my DB there is a table employee having column names as - empname,empadd,empcontact ,empsal,dep,branch,location and 50 more columns.
my excel sheet is having 3 column names empname,empadd,laction.
now i want my code to pick only those 3 columns which are in excel and fetch the values from employee database.
i.e. select empname,empadd, location from employee;
i tried multiple things but no luck.
it would be great if anyone can suggest some way. thanks
I am trying to replicate a VLOOKUP I have done in Excel in SSMS. I have two tables - table 1 is an application master listing, table 2 is an application listing. I want to simply verify that every column in table 1 has an identical match in table two. I also want to have my results populate with an inserted column, column B with the results.
I have already done a very straight forward VLOOKUP in Excel with a 1:1 match. I now have Col A with the application master listing names, and then the new lookup column B with the 1:1 match.
Does anyone know how to go about this in SQL?
So I have eight Excel sheets, all with two columns a 13000 rows each. I want to create a table in my database with all this data. Also, I want the rows in the different sheets to match each other, meaning that row 1 in each of the columns in all the sheets, should form one row in the database. Is there any convenient way of doing so?
I have an excel sheet a large number of columns (~500) and a DB table with similar number of columns. I can run SQL queries on the database. What I want to achieve is to find the columns that are in my DB table but not in the spreadsheet. Checking it manually seems really inefficient.
Have you thought of using ODBC functionality within excel? You should be able to open up the table in excel then use count formulas to ensure that the numbers match.
You may try next semi-manual approach:
select top 1 * from [your table]
In SSMS right click to query results and select "Copy with headers"
Paste special->Transpose into Excel (pivot rows to columns)
Select headers in the existing excel, copy them, paste special-> transpose beside previous
Sort and compare columns