Find Jobs
Hire Freelancers

Create an excel function that downloads one historical data point from Google Finance

$10-30 USD

Completed
Posted about 9 years ago

$10-30 USD

Paid on delivery
The below code needs to be adjusted into a VBA function - that has three arguments: Ticker, Date, Type, where Type can be: Open, High, Low, Close or Volume. When used in excel in a cell it should return the corresponding value as per Google Finance website (this will be a number or if not available "N/A"). At the moment the code below is used for downloading the full data (type + date range), however the function should be referring to just one value. ***** Option Explicit Sub GetData() Dim DataSheet As Worksheet Dim EndDate As Date Dim StartDate As Date Dim Symbol As String Dim qurl As String Dim nQuery As Name Dim LastRow As Integer [login to view URL] = False [login to view URL] = False [login to view URL] = xlCalculationManual Sheets("Data").[login to view URL] Set DataSheet = ActiveSheet StartDate = [login to view URL]("startDate").Value EndDate = [login to view URL]("endDate").Value Symbol = [login to view URL]("ticker").Value Sheets("Data").Range("a1").[login to view URL] qurl = "[login to view URL]" & Symbol qurl = qurl & "&startdate=" & MonthName(Month(StartDate), True) & _ "+" & Day(StartDate) & "+" & Year(StartDate) & _ "&enddate=" & MonthName(Month(EndDate), True) & _ "+" & Day(EndDate) & "+" & Year(EndDate) & "&output=csv" QueryQuote: With Sheets("Data").[login to view URL](Connection:="URL;" & qurl, Destination:=Sheets("Data").Range("a1")) .BackgroundQuery = True .TablesOnlyFromHTML = False .Refresh BackgroundQuery:=False .SaveData = True End With Sheets("Data").Range("a1").[login to view URL] Destination:=Sheets("Data").Range("a1"), DataType:=xlDelimited, _ TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=True, _ Semicolon:=False, Comma:=True, Space:=False, other:=False Sheets("Data").Columns("A:G").ColumnWidth = 12 End Sub
Project ID: 7431834

About the project

11 proposals
Remote project
Active 9 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
I have an Excel function ready for this. I created a demo and you can see it at [login to view URL]
$25 USD in 1 day
4.8 (23 reviews)
4.6
4.6
11 freelancers are bidding on average $45 USD for this job
User Avatar
Please send me the actual file so I can see the given parameters on the Data sheet. ............................................................................
$140 USD in 1 day
4.9 (250 reviews)
7.6
7.6
User Avatar
Hi Sir/Madam. Ready to start. Thanks ..............................................................................................
$30 USD in 1 day
5.0 (30 reviews)
6.4
6.4
User Avatar
Hey There, Thanks for posting the project. Its looks feasible and am Interested to do it. Next steps: Lets discuss/validate the complete requirement and I can start to get this done with required quality output. I am an excel/access VBA automation professional having 7+ years of experience and can do it with the required quality. We can discuss the budget post discussing the complete requirements. Lets discuss more online on chat. Thanks, Abhinav
$55 USD in 0 day
4.9 (138 reviews)
6.3
6.3
User Avatar
Hi there, I have a vast experience in Excel and VBA and would be happy to help you on the project. Best regards, Eugene
$15 USD in 0 day
5.0 (233 reviews)
6.3
6.3
User Avatar
Hi, I have more than 14 years of Excel/VBA exp and I am expert in this kind of work. I have completed more than 225 projects. Please look at the feedback left by my employers to know more about my work. Waiting for your positive response. Thanks.
$30 USD in 2 days
4.9 (121 reviews)
6.3
6.3
User Avatar
I am an expert in delivering customized scripts and like to discuss further about the project requirements
$84 USD in 3 days
5.0 (18 reviews)
5.3
5.3
User Avatar
Hello. It was interesting for me to make something similar (I'm just learning web-parsing). So, the function is almost complete, I just need a nice sample: correct link :-) for testing I didn't used Queries, but used Microsoft VBScript Regular Expressions in VBA-Tools-References. And what did you mean Ticker? Contact me to discuss details. Have a nice day :-)
$10 USD in 0 day
5.0 (18 reviews)
4.4
4.4
User Avatar
Dear Sir, I am very much interested in this project. With 8 year of corporate experience as Business Analyst and Reporting Specialist I am an expert in excel. I am new to freelancing, I need to establish a reputation first. That's why I offer you such a great price. Best regard, Andrei
$40 USD in 3 days
5.0 (8 reviews)
3.7
3.7
User Avatar
I am an expert in Microsoft Excel and had recently done a very similar task. creating query connection adjusting the VBA code and data manipulation to suit your format required.
$30 USD in 1 day
5.0 (12 reviews)
2.8
2.8
User Avatar
Hello how are you may i help you ? can you send me more details about the requirements so i can send you the cost estimations? Let my profile approve the quality of work ------------------------------------------------------------ please check my profile , i completed many many tasks and i have about more than 138 reviews within 1-2 years with rating about 96% and CERT level 5 ranking too and approximately 122 Projects completed and about 112 Buyers worked with RESPONSE TIME: within few hours so i would like if i helped you in your business and make future work too if there is any note about the price just send me a note please I want to gather new clients Thanks, Muhammad
$35 USD in 3 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of NETHERLANDS
Den Haag, Netherlands
5.0
5
Payment method verified
Member since Dec 25, 2012

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.