Link to home
Start Free TrialLog in
Avatar of rtod2
rtod2Flag for United States of America

asked on

Date not showing correct year

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
Avatar of Makrini
Makrini
Flag of Australia image

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?
Avatar of rtod2

ASKER

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.
This might resolve that

 TradeHist-2.3e.xlsm
Avatar of rtod2

ASKER

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.
ASKER CERTIFIED SOLUTION
Avatar of Makrini
Makrini
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rtod2

ASKER

Amazing!!

New question on the way...
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
Avatar of rtod2

ASKER

Yes!  That would be fantastic!    Here is the new question >> https://www.experts-exchange.com/questions/26884029/Add-position-numbers.html