Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default working with dates in excel

I previously posted a question.

I have column A with dates, column B with different dates...
My formula in column C:
=IF(B1<=TODAY(),"YEAR(B1)+1,MONTH(A1),DAY(A1)","YE AR(B1),MONTH(A1),DAY(A1)")

The problem is that the result in C is showing:
YEAR(B1)+1,MONTH(A1),DAY(A1), or the other if the date is after today.
instead of the actual date, which is what I need. mm/dd/yyyy

Is there something I'm leaving out?

This is driving me nuts!
Please, Please, Please, Please, Thank you, Thank you, Thank you, Thank you
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default working with dates in excel

Is there something I'm leaving out?
On the face of it, believe it's the DATE function ..

Try it as:
=IF(B1<=TODAY(),DATE(YEAR(B1)+1,MONTH(A1),DAY(A1)) ,
DATE(YEAR(B1),MONTH(A1),DAY(A1)))
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"boschuster50" wrote:
I previously posted a question.

I have column A with dates, column B with different dates...
My formula in column C:
=IF(B1<=TODAY(),"YEAR(B1)+1,MONTH(A1),DAY(A1)","YE AR(B1),MONTH(A1),DAY(A1)")

The problem is that the result in C is showing:
YEAR(B1)+1,MONTH(A1),DAY(A1), or the other if the date is after today.
instead of the actual date, which is what I need. mm/dd/yyyy

Is there something I'm leaving out?

This is driving me nuts!
Please, Please, Please, Please, Thank you, Thank you, Thank you, Thank you

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default working with dates in excel

Thank you so much! That did it. You are a genius!
This has been driving me nuts for a couple of days now.
Thank you again.

"Max" wrote:

Is there something I'm leaving out?

On the face of it, believe it's the DATE function ..

Try it as:
=IF(B1<=TODAY(),DATE(YEAR(B1)+1,MONTH(A1),DAY(A1)) ,
DATE(YEAR(B1),MONTH(A1),DAY(A1)))
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"boschuster50" wrote:
I previously posted a question.

I have column A with dates, column B with different dates...
My formula in column C:
=IF(B1<=TODAY(),"YEAR(B1)+1,MONTH(A1),DAY(A1)","YE AR(B1),MONTH(A1),DAY(A1)")

The problem is that the result in C is showing:
YEAR(B1)+1,MONTH(A1),DAY(A1), or the other if the date is after today.
instead of the actual date, which is what I need. mm/dd/yyyy

Is there something I'm leaving out?

This is driving me nuts!
Please, Please, Please, Please, Thank you, Thank you, Thank you, Thank you

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default working with dates in excel

Welcome. Do click the "Yes" button below, won't you? Greatly enhances thread
longevity.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"boschuster50" wrote:
Thank you so much! That did it. You are a genius!
This has been driving me nuts for a couple of days now.
Thank you again.


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Working with dates in excel boschuster50 Excel Worksheet Functions 4 June 20th 08 05:34 PM
working with dates Jordan Excel Worksheet Functions 2 December 3rd 07 07:43 PM
Working with Dates [email protected] Excel Discussion (Misc queries) 2 July 5th 07 11:41 PM
Text to Columns not working correctly with dates in Excel 2007 AL123 Excel Discussion (Misc queries) 5 February 26th 07 11:44 PM
Working with dates Svetlana Excel Discussion (Misc queries) 2 June 16th 06 04:30 PM


All times are GMT +1. The time now is 11:31 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"