The way I understand what you are trying to do:
If:
Column "A" cell A1 is formatted CYYMMDD and contains a valid date
Column "B" cell B1 is formatted number (or general) and contains a number
Column "C" cell C1 is formatted CYYMMDD and contains formula =SUM(A1+B1)
Should produce CYYMMDD date contained in cell A1 incremented by the number
of days in cell B1
Which version of excel are you using?
Is the Date Format CYYMMDD a valid format in your version of excel?
What result have managed to get, if any?
I have Excel 2000 and in customising the field to CYYMMDD my date 14/12/2008
appears as c081214 but does increment correctly to c081221
Norm Dennis
-----Original Message-----
From: pctech-bounces@xxxxxxxxxxxx [mailto:pctech-bounces@xxxxxxxxxxxx]On
Behalf Of Peter_Vidal@xxxxxxxx
Sent: Thursday, 18 December 2008 10:44 PM
To: pctech@xxxxxxxxxxxx
Subject: [PCTECH] MS Excel - Adding (n,nnn) days to a CYYMMDD date
GM all:
I have a date value in CYYMMDD format in column "A" and I also have number
of days in column "B". I just want to have a new date calculated based on
these 2 factors and I also wanted in the CYYMMDD format.
How I do it?
TIA,
PETER VIDAL
MAPICS IT TECHNICAL SUPPORT TEAM / SR SYSTEM ANALYST
10540 Ridge Rd., Suite 203, New Port Richey, FL 34654-5111
Tel:727-849-9999, x2414 Fax:727-815-3120
WWW.PALL.COM
"The reason most people never reach their goals is that they don't define
them, or ever seriously consider them as believable or achievable. Winners
can tell you where they are going, what they plan to do along the way, and
who will be sharing the adventure with them."
Denis Watley
----------------------------------------------------------------------------
----
Attention:
This communication may contain information that is confidential,
privileged and/or exempt from disclosure under applicable law.
If you are not the intended recipient, please notify the sender
immediately and delete the original, all attachments, and all
copies of this communication.
----------------------------------------------------------------------------
----
--
This is the PC Technical Discussion for iSeries Users (PcTech) mailing list
To post a message email: PcTech@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/pctech
or email: PcTech-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at
http://archive.midrange.com/pctech.
No virus found in this incoming message.
Checked by AVG -
http://www.avg.com
Version: 8.0.176 / Virus Database: 270.9.19/1855 - Release Date: 12/18/2008
10:16 AM
As an Amazon Associate we earn from qualifying purchases.