Solved

Date not showing correct year

Posted on 2011-03-13
8
272 Views
Last Modified: 2012-06-27
Correct macro to show the correct date in Instrument column.  Also the contents of the Spread# column, Qty column, and soon to be Pos# column should be centered horizontally.
TradeHist-2.3e.xlsm
0
Comment
Question by:rtod2
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
8 Comments
 
LVL 10

Expert Comment

by:Makrini
ID: 35124540
Your dates in the raw data show 2011 (in column G of pm).  May be to do with your csv import as CSV dates and Excel are not kind to one another.

We could however strip the month and year from your "Exec Time" = may be more what you are looking for?
0
 

Author Comment

by:rtod2
ID: 35124567
I'm starting to see this a little clearer.  Notice the Exp dates in this screenshot >> http://screencast.com/t/PmAkoey5u .  In particular notice the top IOC item.  11-Jan means that it expires Jan 2011.
0
 
LVL 10

Expert Comment

by:Makrini
ID: 35124611
This might resolve that

 TradeHist-2.3e.xlsm
0
SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

 

Author Comment

by:rtod2
ID: 35124626
Almost!  Instrument column appears to be correct now, but the contents of the Qty column should be centered horizontally.  The contents of the Spread# column are centered correctly, but the contents of the Spread column should be left justified.
0
 
LVL 10

Accepted Solution

by:
Makrini earned 500 total points
ID: 35124675
0
 

Author Closing Comment

by:rtod2
ID: 35124684
Amazing!!

New question on the way...
0
 
LVL 10

Expert Comment

by:Makrini
ID: 35124690
That was a goodie - I had never thought of stripping datevalues from datevalues before but it just popped to front of mind this time.

  By the way, eventually I will clean the code up a bit as its organically grown from something I didn't initially write.  Needs a bit of a cleanup to be readable by other coders
0
 

Author Comment

by:rtod2
ID: 35124691
0

Featured Post

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
With User Account Control (UAC) enabled in Windows 7, one needs to open an elevated Command Prompt in order to run scripts under administrative privileges. Although the elevated Command Prompt accomplishes the task, the question How to run as script…
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question