Import Single Numbers With Ms Query
May 19, 2009
I'm Importing Columns from one sheet to another in the same workbook. imports good But:
1- Some columns with first records/rows blank do not import at all.
2- I have a column with some letter/numbers combinations and single numbers at times. Those single numbers are not imported. And half my data in that column are single numbers.
View 9 Replies
ADVERTISEMENT
Nov 15, 2006
I have the following code for importing a query from Access to Excel.
Sub LoadAdditionalData()
Application.Run Range("AUTOSAVE.XLA!mcs02 .OnTime")
With ActiveSheet.QueryTables.Add(Connection:= Array(Array( _
"ODBC;DBQ=S:NBHD_RENEWALDatabaseNR DB_current.mdb;DefaultDir=S:NBHD_RENEWALDatabase;Driver={Driver do Microsoft Access (*.mdb)};" _
), Array( _
"DriverId=25;FIL=MS Access;MaxBufferSize=2048;MaxScanRows=8;PageTimeout=5;SafeTransactions=0;Threads=3;UserCommitSync=Yes;" _ ...............
I currently have filters set to 990 (finance code) and 3 (quarter) but I would like to be able to enter these parameters myself everytime the macro is run.
View 4 Replies
View Related
Aug 17, 2013
I have a website (National Lacrosse League - 2013 Regular Season - Standings), that I want to pull information off and automatically into Excel.
I have been using web queries on other websites, and they have worked beautifully, however the tables that I want aren't recognised by the web query wizard (no yellow/black arrows). I can import the whole page through a query, however that's not really practical.
Is there a way I can import just specific tables on this site?? I'd like both the 'east' and 'west' tables.
View 8 Replies
View Related
Aug 29, 2006
I am wanting to use Excel to perform a web query into an online database our company uses. One of the columns I am wanting to import contains numbers that are 20 digits long & they begin with 4 zero's. The problem is that when Excel imports the query, if I fprmat the cells & preserve the formatting, it cuts off the first 4 zero's & replaces the last number with a zero. Basically, it looks as if it is only importing 15 numbers. Is there a way around this ; is there a way to force Excel to import all 20 numbers? If I don't format the cells, it imports in the following format - 4.20017E+15
View 4 Replies
View Related
Apr 6, 2008
I have been using the attached to pull multiple csv files into seperate sheets. This takes all files from a user specified directory and dumps them into a workbook. I only need three specific files. How do I request specific files instead of a wild card.
View 3 Replies
View Related
May 9, 2009
I am auto-importing statistics from the web via web query. This information imported has a number in the form of a decimal stated as either x.1, or x.2. x.1 represents x-1/3 (one-third) and x.2 represents x-2/3 (two-thirds). I need to use these numbers in a calculation after importing them, but using x.1 or x.2 obviously does not give me accurate results as the numbers should actually be x.3333333 and x.6666666 respectively. What is the easiest way to convert the imported numbers to their actual decimals?...
View 2 Replies
View Related
May 26, 2009
Our company's accounting system is physically split into 2 company databases, CompanyA and CompanyB. I'm trying to write a query which will pull the customer number and the accounts receivable balances from both companies into a single Excel table, for any customer with a total balance 0.
I have created the following query, which doesn't generate any errors, but is only successfully importing the data from the first company.
The CompanyA DSN is specified in the query ...
View 9 Replies
View Related
Dec 30, 2008
I tried to import web data from a textarea (look at example2.jpg) into excel and it always end up squeezing all the information into one single cell(spreadsheet.jpg).
I am trying to find a way to edit the imported data which is similiar to paste special or extract the information from the cell into a table, but I seem to waste a lot of time on this and going no where.
View 4 Replies
View Related
Jul 19, 2014
I have a text file with rows and columns of numbers ranging from 1-4 digits that I'd like to import/copy into Excel with each number being in its own cell. But whenever I copy/try to import, Excel splits all of the 3-4 digit numbers up into single digit numbers. The text file has 10,000+ columns (each number occupies two columns so I have half of that amount in numbers) and 300+ lines.
Is the file simply too large for Excel to handle or is there a way I can do this?
View 14 Replies
View Related
Jun 7, 2013
Need a quick macro for the following in sheet 1
Convert data to proper for columns- E, Z and ADConvert data to upper for columns- A, I, X and ACHighlight Special characters with cell colour as Red for (!@#$%^&*:”<>+_’;\/?`~-)Find & replace % in the current sheet with blank.ran.
View 9 Replies
View Related
Jul 19, 2013
We have a list of around 800 clients containing client id, name and e-mail and i need to add contract number. I can only get the contract number by accessing the admin (password-protected) using a URL that looks like this admin/index.php?client=id.
Problems:
1. if i use the From Web option in excel's data tab, i get the entire table not just the needed cell
2. if i get the data using the above mentioned option, i can only do it from one client at a time
View 5 Replies
View Related
Jul 30, 2009
I've got a single folder for the year 2009 that contains multiple files, identical in nature but updated for each business-day. In other words, the same report is generated daily with updated info. The naming convention is the same for every file (i.e. Daily Net Debt Report 02.2.2009.xls)
My ultimate goal is to have a macro that is dynamic enough that if its run on any given day of the year, it pulls the data (specifically from the worksheet "Detailed Cash" cells C1:E26) from every file included in the folder and places it in a single worksheet in the master file. So, for example, data from 1/2/09 would go into cells A1:C26, data from 1/3/09 would go into cells D1:F26, etc...
View 7 Replies
View Related
Apr 20, 2008
I am trying to get a VBA code to import multiple text files into an excel worksheet. The text files contain about 5,000 words each listed in a single column. I found this thread Import Multiple Text Files and the code listed there:
Sub test()
Dim myDir As String, fn As String, ff As Integer, txt As String
Dim delim As String, n As Long, b(), flg As Boolean, x, t As Integer
myDir = "c: est" '<- change to actual folder path
delim = vbTab '<- delimiter (assuming Tab delimited)
fn = Dir(myDir & "*.txt")
Do While fn <> ""
Redim b(1 To Rows.Count, 1 To 1)
ff = FreeFile
Open myDir & "" & fn For Input As #ff
Do While Not EOF(ff)..........................
View 8 Replies
View Related
Feb 2, 2010
Hi everyone,
I've got several Excel files that need to be edited separately.
Once they have been edited, I need to paste the content of each file in a single separate Excel file.
Is there a way to retrieve the content from all the files in a folder, and merge it in a single file?
For example:
3 separate files > File1, File2, File3
Merged file, sheet1
File1
File2
File3
View 14 Replies
View Related
Nov 28, 2012
i'd like to be able to import a list of file names from a folder. sounds fairly straight forward to me, but example:
folder a has 10 files in it (let's say PDFs - numbered 1 through 10). I'd like to be able to open the spread sheet, and see the file names in column b. ideally, i'd also like subfolders to be listed, in the next column. but, let's start with just this.
View 2 Replies
View Related
Apr 16, 2012
How to write a code to import all tables from a single word document into a single excel sheet? (we don't know exactly how many tables there will be,or how many rows in a table there will be , but the columns are certain, which is 9, from A to I.
View 4 Replies
View Related
Oct 3, 2012
I want to run a macro to Import Entire Text File in Single Cell
I have some Text Files in a Directory
Code:
Eg: C:Records
Each Sub Folder will have 1 Text File
Code:
Eg: C:RecordsFolder1Text File1.txt
C:RecordsFolder2Text File2.txt
C:RecordsFolder3Text File3.txt
I want to import Each Text File into One Single Cell Like
Code:
Row Column A Column B
1 Text File1 Text File1 Content
2 Text File2 Text File2 Content
3 Text File3 Text File3 Content
4
5
Is it possible to this through VBA.
View 4 Replies
View Related
Jul 18, 2014
I am looking for some VB to import multiple csv files, stored in a single directory, into a single excel worksheet. However I am looking to also include all or part of the filename, so to differentiate each file.
I've attached an example spreadsheet, inc the below code, of what I am trying to achieve.
Current code is (this parsers all .csv files in the specified folder into a single worksheet):
[Code] ......
Attached File : csv_loader.xlsm
View 6 Replies
View Related
Aug 3, 2009
I need to import the data from a specific sheet (same named sheet on all closed workbooks) to a sheet in an open workbook. All the columns are identical in every workbook but the number of rows is variable, so the data from each subsequent workbook must be appended to the end of the current data.
Whenever a button is pressed, this macro will clear the sheet, then import the data starting in A3. The workbooks are in different folders but they all have the same name, so some sort of explorer window will probably be needed to actually select each file.
View 3 Replies
View Related
Jun 30, 2014
I have a simple macro which extracts EUR rates from a website but the number format as appears in Excel is a disaster.
I am attaching the file : Querry EUR Rates.xlsm
How to format the rates accordingly.
Also posted here: [URL] .....
View 1 Replies
View Related
Oct 3, 2009
I have this web query to retrieve Stock Market data for individual scrips which used to work fine till 2 weeks ago:
[url]
Since then all it returns is the text in the tables. Numbers eg dates and stock prices come as blanks.
These show up alright in the browser (Mozilla as well IE).
Some other tables at this site plugged into query return complete data. eg [url]
I tried many different scrips with same results.
Since it was working fine till 2 weeks ago AND other tables at this site are working fine, I suppose the site changed something.
View 10 Replies
View Related
Aug 28, 2009
I use web queries to download stock options from MSN Money.
If I manually refresh the queries (right click -refresh) the downloaded
prices are in number format.
If I use:
View 3 Replies
View Related
May 2, 2007
I have 2 columns of data, one the description, the other the number, both positive & negative numbers, (the columns are also not next to each other). I need to average only the negative numbers according to the description.
I can sum only the negative numbers if I separate out the different descriptions, but cannot average the figure:
=SUMIF(E2:E300,"
View 9 Replies
View Related
Dec 16, 2008
I have some short code that imports data and account numbers that is "|" delimited. The problem I am having is that during the import, excel converts some of the account numbers to exponential numbers.
e.g. it converts 542690E24 to 5.4269E+29.
Is there a way to avoid this from occuring during the import? I tried to format the destination cells as '000000000' (all accounts are 9 digits) but it didn't work.
View 6 Replies
View Related
Aug 4, 2012
I've been programming my VBA script to import data from an XML file which looks like this:
HTML Code:
<response responseStatus="success"> <result xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:type="apiPagination"> <currentPage>1</currentPage> <list xsi:type="apiReport"> <Variable1>Name1</Variable1> <Variable2>41</Variable2> </list> <list xsi:type="apiReport"> <Variable1>Name2</Variable1> <Variable2>20</Variable2> </list>
So far everything works great and it imports everything correctly to Excel 2010. This is the code I'm using:
Code:
Sub test()
Dim WS As Worksheet: Set WS = ActiveSheet
Dim req As New XMLHTTP
Dim Link As String
Dim PageNumber As Integer
Dim Url As String
PageNumber = 1
[code].....
The problem is that I only import page1 (only link [URL])
How do I get all URLs so that it also imports the data located on other pagenumbers? For example [URL]
View 1 Replies
View Related
Apr 9, 2013
Some of my numbers turn into dates when I try to import them. Is there anyway around this problem?
I have 500k+ rows with data, so looking through each and every cell is not an option.
View 2 Replies
View Related
Oct 10, 2006
I am setting up a spreadsheet with two columns. The first column will contain a persons name the second column will contain four numbers.
Name Numbers
Joe 1,3,12,24
John 4,12,23,24
Jill 6,14,19,26
I need to be able to search to find the following: the correct sequence of numbers e.g. if 1,3,12,24 were pulled out then that search is easy. If I was looking for someone who had the numbers 1,12,24 then I have a problem. I was thinking about putting the four numbers in to four separate columns but my Excel knowledge is poor.
View 4 Replies
View Related
Mar 3, 2012
With exception to Duplicate numbers on a single row, or column. I am hoping I can check an entire row against other rows, to see idf the same number are repeated.
Unlike the Lotto, this is about Safety boxes, where I have sequential numbering such as the following:
Row2:5,11,15,16,19,35
Row16: 2,8,12,17,18,33,
Row102: 2,6,8,14,22,44
Row645: 2,6,8,14,22,44
Notice rows 102 and 645
I can't believe all of our staff missed the duplicate lines 102 and 645 of duplicate Although these row numbers were rows 2, 16, 102, & 245
View 1 Replies
View Related
Jan 5, 2008
im using a formula to count how many time a customer has payed their bill using COUNTIF.
along with that i would like to use some kind of reference or a secont formula like
=COUNTIF(range1:range2,"Jean K") + another formula, so it will only calculate the amount Jean K has paid, and won;t count everyones elses paymets. i just need a little help to make this happen.
and also included a sample of my sheet in a ScreenShot.
View 3 Replies
View Related
Mar 31, 2009
What is the function to add numbers in a single cell to show only a single number. I know it can be done but do not know the quick function to do it.
View 10 Replies
View Related