I pull a report every month which has the same name - at the beginning - (i.e. Monthly File Report_06012014.xls but the date is different every month; where we keep a copy of them every month.
So I need a vba to pull the data from that specific file - since I'll have more files open, but wouldn't keep the date since it will be different every month - is there an & that goes at the end or somehting: Monthly File Report &....xlsm?!
I am trying to make Excel pull data out of a closed file based on a date range. The closed file is a log where people input data and enter the day they are doing it. I need to pull this data in my file and make it print into my worksheets so I can pass a report on to others with only the data they request from the log.
The range would be for 7 days and would have to be able to choose a few columns off this report.
I'm trying to find a way to import data from an external excel file that the end-user will ultimately end up choosing using the application. getopenfilename dialogue. I'm able to sucessfully open the file, but what I'm really trying to do is import data from one specific column within the file, preferably without the source spreadsheet popping up.
So, is this possible to do with VBA? Also, will I run into any issues if I try to import from an Excel 2.1 file to an Excel 2003 file using VBA? Finally, I need to be able to import one file, and then be able to add to that an import from another file. I'm thinking that this could be accomplished using a variant variable, but is there already a function within Excel so that I won't have to create my own add-to function.
I have some code that loops through a bunch of text files, finding any that contain an href, and printing that entire line (if found) into excel. These text files are source code for a website. What I need to do, is within this line being pasted, is grab only a few things from within some tags such as the info between <title>This is the title</title> the tags and print it into a colum, I do not want the entire line, just certain things that are in the line. I have supplied the code that I currently have. I have it so that 'WholeLine' contains the entire line. Can I manipulate that with something like Cells (myR, 3).Value = WholeFile(?).
Sub CheckTextFilesForHREFs() MsgBox "Press OK to begin report" Dim WholeLine As String Dim myPath As String Dim workfile As String Dim myR As Long
I have six files that are formatted the same(fld1-1.xlsx, fld1-2.xlsx...). Each file contains an I.D. number (random 25 digit number) in column A and a note (1-9) in column B. The only thing that changes between files is the note column. I want to pull from these six files into a master file. When all six files are combined the note column in the master file is complete, there are no duplicates. Because a blank vlookup returns a zero, could I use an IF formula. Something like IF VLOOKUP FROM data01(ISNUMBER(0), then vlookup in file data02. IF VLOOKUP FROM data02(ISNUMBER(0), then vlookup in file data03.
I need building a formula to pull information from a database file. The purpose is to try to interpret the data so that I can analyze a time period along with it's content. I don't know how best to explain it. Basically I have a table and I want it to pull information based on 3 criteria: time, type, and total. I would like for the formula to identify a time frame, then identify a type, and then take the totals and add them together.
Time / Type / Total 11:31 /1 / 4 11:43 / 1 / 6 12:04 / 2 / 1 12:31 / 1 / 3
Time / Type / Total 11:30 - 12:00 / 1 / 10 12:00 - 12:30 / 1 / 3
The top is the database and the bottom is basically what I want to happen on the other table. Pretend the / and dividers for each column.
What I am looking to do is create a Dos.bat file to be run in the middle of the night that opens Excel. From there I will need Excel to open a .txt file from a specific folder, format the file, then re-save as an .xls file.
Each of the .txt files in the specific folder is named like the following: BCKLOG_062807 BCKLOG_062707
and a new file is being generated to the folder each night (with the new date in the filename).
Is there a way I can use the macro to loop through only the new files being placed in the folder, since the old files will already have their .xls counterpart saved ???
If this is not a clear enough description, please let me know and I will attempt to explain better.
I have a column of numbers each have a 0. infront of them (example 0.2346 0.5698). I want to pull the number from the right until it hits the decimal sign. So for the two above the result would be 2346 and 5698
I have a spreadsheet that is updated weekly -- but every week new info is added that needs a user to input corresponding info. I use a vlookup function to link to another spreadsheet that populates the info from previous weeks and the info that is missing shows up as #N/A...
First I was using a msgbox function to get the info:
For Each b In myrange If Application.IsNA(b.Value) Then Employee = b.Offset(0, -2).Value SSID = InputBox("Please enter ID# for " & Employee & " :", "New Employee Found") b.Value = SSID End If Next b
But it can be up to 30 different new employees... and that is time consuming.
I would like to make it more user friendly by creating ONE userform that displays all of the employees as labels -- has a text box in which to put the ID # -- and then has a drop down box to choose the type of employee (2 options). I want all of that info to go back to the reference spreadsheet so it will be saved for following weeks, and then redo the vlookup to get the info into the new weekly spreadsheet (I can do that part)....
Private Sub CloseButton_Click() Unload UserForm1 End Sub
Looking for a formula to accomplish the following:
I'm trying to populate cell A31 on a worksheet titled "VolumeTotals" with the data in Cell E23 from a worksheet titled "CurrentCustomers" if the merged cells F3-F22 on worksheet "CurrentCustomers" are equal to the word "Contract".
I have an excel workbook with 2 worksheets. One worksheet shows the MASTER LIST of COMPLETE Customer Names (e.g. ABB Supplies Incorporated). The other worksheet has information on customers but the customer names typed in are incomplete (e.g. ABC Supplies). I need a macro that would look do a comparison of the customer names in the 2nd worksheet to the Master List worksheet and pull the data (complete name, address, etc.) for those that would match (partial match since company name is 2nd worksheet is usually incomplete).
I have one excel 2010 workbook with 5 work sheets, each work sheet contains a list with first/last name(one column) and the company name, some have a 3rd column with their email address in each sheet represents each year starting at 2008 thru to 2013 i have to find out if the people that attended an event in 2008 also attended it in 2009/10/11/12/13 and if they didnt, put their name and company name onto a blank worksheet within the same workbook without using a macro, how can i do this?
I want to pull data from another sheet, however there are multiple listings of each and I want to pull the data to another sheet for each line. I maybe easier if I try and show below:
Col. ACol. BCol. C Smith101 Jones512 Green65 Black1214 Smith 3612 Jones1512 Dual25 Green1225
I want to pull this data for each name in Col. A in to another sheet. I've tried "IF", "Vlookup" and a couple of others, it just seems to be hitting the first option and pulling the data but not the ones below.
So if I selected Green on the second tab it brings through the "6" and "5", but not informtion from the listing from Green below. So I wiould like to list all the Green's, and the applicable data.
I have a Pivot Table, with lots of data in, what I want to be able to do is on a separate sheet pull out the data from the first column(A), and then average out the figures from Columns(B-E).
When this has been done on the sheet (with the average data) in the next column, I then want to use Column(F) (from Pivot Table), and do a simple sum to work out 5% of the difference if it is greater than ZERO between Average Column and Column(F) (from pivot Table) Column(F) must be higher than the average in order to work out the 5%.
I've been playing around with VLOOPUP, MATCH, SUMPRODUCT... But I can't seem to get this one right..
See the attached Excel file..
I think it should be fairly explanatory.. I want to use the dates in SUMMARY sheet, to pull out the data in the DATA TABLE sheet. The numbers in Column A on the DATA TABLE sheet, is first date in each month, and the numbers represent the day of the month.. .
I don't know if this will require a macro or maybe a function of excel, but I have a large listing about 1000 row in spreadsheet. Each row correspond to a unique customer. But I will have to extract only the customer that I am looking for, which is about 30 of the 1000. The cell A1 is the customer # which will be use as reference, so I have about 30 customer # to pull out from that listing. Which will be the greatest method to do so?
Example: A1 44334 ERIK JOHNSON 60$ A2 34555 KARIM EDWARD 50$ A3 32555 EDWARD CHRIS 65$ A4 55666 STEPH LAWRAW 45$ ... I want to pull 44334 and 55666 the whole row.
I am trying to get the starting point for this new sheet going but I am not able to formulate the required code. I will explain what I want to do
In the attached sheet, I have three tabs
Over 20K Under 20K PartNumList
This is what I want to do...In PartNumList tab if Annual Rev (Col O) is less than 20K then value in Col (A) i.e Part Number should be copied and pasted in Under20K tab... it has to pasted in either B18, B24,B30,B36, if B18 is populated then B24 if that too is populated then B36 and so on..
I want to do that same for Over 20K but if I have a starting point for Under 20K I can work on it offline too..
I need to pull some data from one sheet into another. Here is an example of what I am trying to do if anybody know hows to do this? I need a formula that will look in sheet 1 look at the idnumber, match it with the idnumber in sheet 2 ande fill in the serial.
sheet1 idnumber serial number 12345 66181 12346 66182 12347 66183
sheet2 idnumber serial number 12345 insert serial number here 12346 12347
I want to create a macro that will automatically pull data from the web by simply pressing a macro button. I assume that this would be an easy task if the data is from a website with a specific URL such as [URL]
However, there are times when someone must enter data into the web to pull a specific report that does not have a unique URL. Is there anyway to create data fields in excel that would allow an individual to type in specific information (name, report period, etc.), and then press a macro button that would go out to the web, enter the information automatically, and export it as an excel file. I realize that this is probably substatially more difficult than my first question.
How to pull data from one sheet to another. I have 2 sheets Sheet 1 and Sheet 2. I have data in cell A1 in sheet 1 and i need that same information onto sheet 2 in cell C10. I know on sheet 2 cell C10 i can type in this formula ='Sheet1 '!A1 and it works great.
The problem i'm having is if i clear sheet 1 data it is also clearing out the data in sheet 2, the formula remains but the data is gone. I need that data to remain on sheet 2. Is their a way to do this?
I am trying to get a excel to list all the file names in a drive along with date last modified, author and file size. I have got the following bit of code to pull back the file names, but i am struggling to find anything that will pull back the other data, I think its something to do with the DIR function, but im not sure........
Range("B1").Select D = ActiveCell Cells(2, 1) = "Filenames" r = 3 f = Dir(D, 7) Do While f "" Cells(r, 1) = f r = r + 1 f = Dir Loop End Sub
I have a workbook I created that is full of macros, graphs, and formulas. Five of the tabs in the workbook are where I will be putting my data. This workbook will also be used by others that don't even know what a macro is or does so I need to make this as simple as possible. How I get my data:
I have a website on my intranet where I have to login and then I have five templates that I run. I can have the results given to me either in HTML or in an excel spreadsheet. The excel results are very basic. Heading for each column and the data below. I have the report generated with blank columns since my page the data will go on has formulas. Thus far I have been copying all rows starting with row2 and doing a paste special (values, skip blanks). I had a macro in my personal.xls file to do this for me but most users will not know how to import it so I need a resolution that will be saved in the WB I send out.