Excel insert data from another excel file - excel

My problem is that there are 2 excel files. One file contains bank transfers with colums: name , amount and account number. The other file contains: names and account numbers belonging to the names. I dont want to always copy and paste account numbers from the second file to the first. Is there any solution to: in the first excel file if the name columns value equals the second Excel files name columns value then auto paste the account numbers value from the second file to the first excel file account number column.

Related

I would like to design a function using VBA for Excel

I have say 100 output Excel files with column A full of variable names and column B with values. I have put them into separated sheets of one file. and I would like to get an overview sheet.
The thing is that the same variable is not in the same place (same column but different rows). I need to first identify the correct row number and then get the value.
My question is with the name of the variable and the sheet name available, how can I build a code to get the value?

Excel formula/VBA that shows only a part of a column of another sheet

What I am trying to do is to show only a part of a column into another sheet through a formula.
Basically I have an Excel file in which I type in work shifts, as you can see on the example. The top of this table contains the date. The first column contains the name of the employee.
If possible I'd like to have the column of a specified date on another sheet (maintaining formatting), so that I can “sort” employees in their exact place without the need of swapping between Sheets.
The “blacked out” part is the one with employees names, the red-highlighted part is the one that should “appear” on the other sheet.

How to count the number of matches between two excel files

Say I have a data set in a worksheet. I want to compare the contents of column A with the contents of column B in another file and put the result in column C. To do this, I could use the formula
=IFNA(MATCH($A1,'location/[filename.xlsx]worksheet'!$B:$B,0),FALSE)
If I then wanted to count how many matches there were, I need only to count how many entries in column C that contain a numeric value using
=COUNT($C:$C)
But, what if I wanted to count the number of matches between columns A and B, and each of those columns existed in separate Excel files?
I need cell C1 to calculate the number of matches between entries in column A of file 1 and column B of file 2. Is this possible without editing files 1 or 2? Manually copying the data is one way, but every day has different data, and C2 will need to do the same thing for tomorrow, and C3 for the next day, etc. Manually copying the data would make the workbook size balloon quickly.
Create pivot tables in File 3 of the data from File 1 and File 2. The pivot table for File 2 would have a occurrence count for every entry in the sheet. The pivot table from File 1 would only have row labels, giving you the unique entries that you are going to be searching for.
beside each pivot label for File 1, enter a formula similar to the following:
=+GETPIVOTDATA("Item",PivotTableFile1!$H$7,"Item",A4)
Should also do some error checking, which makes the formula:
=IFERROR(GETPIVOTDATA("Item",PivotTableFile1!$H$7,"Item",A4),0)

Move data from ColB and ColC beneath data in ColA

I tried looking up what I need to do, but I'm not very good with Excel, so I'm not sure how to search for what I'm attempting to do.... here it goes...
I have a file that a customer sent me that I need to export as a .csv for direct mailing. What she sent has all 1463 customer names down column A, their address in ColB, and the second address line in ColC. The program that I need to import the .csv file into needs all of the information in one column so that it reads as you might read an address on an envelope, with the entire name and address in one cell (one cell per entry). So I need to take the data in column C and move it underneath the data in column B, then take that data and move it underneath the name data in column A.
Side note: The third address lines did have a comma between the city and state, but I have already gone through and removed them, since I know that the file will not export correctly with a comma in the data in a .csv file.
Using Excel 2010 on Windows 7.
Assign the formula into cell C1, you can use =CONCATENATE(A1,CHAR(10),B1) or =A1&CHAR(10)&B1
Copy cell C1 and paste it for all required rows in C column
Right click on C column header and choose Wrap Text
Adjust the size of C column so that all lines shown in full
If you save in CSV, you will be asked to confirm features not compatible. If you agree, you need to repeat step 3 two times (Unwrap then Wrap it again) and step 4 if you open this file again. The formula will be gone. I suggest to save in either xls or xlsx format.

Converting Excel Data into Text File with fixed column position

I have an excel file with having a table (Customer Detail) with three columns.
First Column: Name Of the Customer
Second Column : Attention Line of the Customer
Third Column : City, State , Zip of the Customer
The table contains about 100 rows.
I want to export that table values in a text file. But my problem is that when I copy/paste in the text file or save as a .txt format the column values don't remain in fixed positions. I want the text file with each column values left aligned and first letter or number for each column should remain in fixed position.
Thanks in Advance!
NOTE: I am using Microsoft Excel 2010
Try Save As - Formatted Text (Space Delimited) (*.prn). It should detect the width and insert spaces for you

Resources