Solved

Date not showing correct year

Posted on 2011-03-13
8
264 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
  • 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
 

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
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Approximate matching with VLOOKUP and MATCH seems to me to be a greatly under-used technique, and one which is vital for getting good performance out of large lookups. Until recently I would always have advised using an exact match for simplicity an…
This article is the result of a quest to better understand Task Scheduler 2.0 and all the newer objects available in vbscript in this version over  the limited options we had scripting in Task Scheduler 1.0.  As I started my journey of knowledge I f…
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 the scrolling table in Microsoft Excel using the INDEX function.

706 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now