Solved

Date not showing correct year

Posted on 2011-03-13
8
273 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
Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

 

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
After seeing numerous questions for Dynamic Data Validation I notice that most have used Visual Basic to solve the problem. This suggestion is purely formula based and can be used in multiple rows.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

623 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