• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • SALE 20% Off All Courses
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
    • Logout
    • Password Reset
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

Saving daily stock-quotes in column based on date|VBA & Macros|Excel Forum|My Online Training Hub

You are here: Home / Saving daily stock-quotes in column based on date|VBA & Macros|Excel Forum|My Online Training Hub

sale now on

Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumVBA & MacrosSaving daily stock-quotes in column…
sp_PrintTopic sp_TopicIcon
Saving daily stock-quotes in column based on date
Avatar
Jbrande2@uncc.edu

Active Member
Members
Level 0
Forum Posts: 3
Member Since:
August 26, 2017
sp_UserOfflineSmall Offline
1
August 26, 2017 - 5:19 am
sp_Permalink sp_Print

Hey Ya'll from North Carolina,

Two questions:

Q#1 - My scenario: I have a stock daily price look-up macro that populates Col C with the daily price and Col D with the "Today's Date" on rows 4-21 (each row a different Stock Symbol).  Row 3 has the "date of record" at the top of my "storage columns" H, I, J, ... Z.  

I need a formula in the cells (H4:Z21) along this line: "=If(J3 [today's date] =D4,C4, [what can I put in the 'else' / 'false' argument so that the formula won't erase the current value in the cell with the formula that was entered on the previous day when D4 equalled I3=yesterday?])

Q#2 - Do you know of a trusted downloadable macro that will do this?

Please see attached workbook.

Thanks for your help,  Jim

Avatar
Anders Sehlstedt
Eskilstuna, Sweden

VIP
Members


Trusted Members
Level 3
Forum Posts: 858
Member Since:
December 7, 2016
sp_UserOfflineSmall Offline
2
August 29, 2017 - 7:12 am
sp_Permalink sp_Print

Hi Jim,

I don't really have a solution to offer for you, as I am not to much of a big fan of using VBA, even though it is handy from time to time. But in my view you would need VBA to achieve what you want. On the other hand, I would use a database to store all my data and then use Excel to work with the data.

I hope you find a solution.

Br,
Anders

Avatar
Jbrande2@uncc.edu

Active Member
Members
Level 0
Forum Posts: 3
Member Since:
August 26, 2017
sp_UserOfflineSmall Offline
3
September 1, 2017 - 1:07 am
sp_Permalink sp_Print

Anders,  I like the idea of a database.  In my continued digging, I discovered that I'm trying to use a 3rd party Excel Add-in and not a function or a sub.  Now, I'm looking for the way to link the add-in to my macro.  Have a great day,  Jim

Avatar
thomas miller

New Member
Members
Level 0
Forum Posts: 2
Member Since:
October 27, 2017
sp_UserOfflineSmall Offline
4
October 27, 2017 - 3:26 am
sp_Permalink sp_Print

Were you able to figure this out?

Avatar
Jbrande2@uncc.edu

Active Member
Members
Level 0
Forum Posts: 3
Member Since:
August 26, 2017
sp_UserOfflineSmall Offline
5
November 10, 2017 - 11:48 pm
sp_Permalink sp_Print

Thomas, No I haven't figured it out.  Do you have any suggestions?  Thanks, Jim

Avatar
SunnyKow
Puchong, Malaysia

VIP
Members


Trusted Members
Level 8
Forum Posts: 1432
Member Since:
June 25, 2016
sp_UserOfflineSmall Offline
6
November 13, 2017 - 1:57 pm
sp_Permalink sp_Print

Hi Jim

See if this helps.

The problem is the Date in column D is text while the date in columns H and after are true dates.

Not too sure if it is caused by my date format dd/mm/yyyy and yours in mm/dd/yyyy.

Sunny

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 170
Currently Online: Alan Sidman, Velouria
Guest(s) 94
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 858
Velouria: 580
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 214
A.Maurizio: 202
Aye Mu: 201
Jessica Stewart: 189
Newest Members:
Vincent Starcevich
Patrick Lawrence
Louise Bell
GIJO GEORGE
Kumud Patel
Atos Franzon
Andrew MacDonald
Artie Ball
Jenn Cain
Peter Vandeweg
Forum Stats:
Groups: 3
Forums: 24
Topics: 6079
Posts: 26684

 

Member Stats:
Guest Posters: 49
Members: 31570
Moderators: 2
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
trustpilot excellent rating
 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved

Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.