Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Date not showing correct year

Posted on 2011-03-13
8
Medium Priority
?
275 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

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 2000 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.

660 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