Advertisement

05.14.2008 at 07:48AM PDT, ID: 23401630
[x]
Attachment Details

excel substring

Asked by dchau12 in Spreadsheet Software, Microsoft Excel Spreadsheet Software

cell a1 = 1206.  This is really 12/1/06 in a date format, and this is the string I need to derive from this representation.
cell a2 = 107.  This is really 1/1/07 in a date format, and this is the string I need to derive from this cell.

I need to write something like this:  =if(len(a1) = 4, sustring(a1, 1, 2) & "/1/" & substring(a1, 3, 2), "do something else.")

How do I translate the substrings that I want into excel?Start Free Trial
[+][-]05.14.2008 at 07:59AM PDT, ID: 21564935

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Spreadsheet Software, Microsoft Excel Spreadsheet Software
Sign Up Now!
Solution Provided By: rorya
Participating Experts: 2
Solution Grade: A
 
 
[+][-]05.14.2008 at 08:02AM PDT, ID: 21564965

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628