ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   how do I write the date in an if statement (https://www.excelbanter.com/excel-worksheet-functions/41928-how-do-i-write-date-if-statement.html)

Susan Hayes

how do I write the date in an if statement
 
Hello I'm trying to write the date (eg., 21-Mar-05, or any other variation), using contatination within an if statement

Here is a sample

=IF(A1="scenario1","(2) enter the correct post dated process date in the ""PROC"" field"&" "&"c2","")

where "c2" would contain the date,

would appear as shown below:

(2) enter the correct post dated process date in the "PROC" field 21-Mar-05

Is this possible?

Thank you

Susan

Biff

Hi!

Try this:

=IF(A1="scenario1","(2) enter the correct post dated process date in the
""PROC"" field "&TEXT(C2,"dd-mm-yy"),"")

Biff

"Susan Hayes" wrote in message
...
Hello I'm trying to write the date (eg., 21-Mar-05, or any other
variation), using contatination within an if statement

Here is a sample

=IF(A1="scenario1","(2) enter the correct post dated process date in the
""PROC"" field"&" "&"c2","")

where "c2" would contain the date,

would appear as shown below:

(2) enter the correct post dated process date in the "PROC" field
21-Mar-05

Is this possible?

Thank you

Susan





All times are GMT +1. The time now is 04:59 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com