#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 354
Default date in excel ?

hi

when my B3 cell with date 4/05/2007, I don't know why the A3 cell display
serial number

My A3 cell with formula ="<="&B3

Can you explain this?

Thanks
Daniel
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,440
Default date in excel ?

Hi Daniel,

Use

="<="&TEXT(B3,"mm/dd/yyyy")

--
Kind regards,

Niek Otten
Microsoft MVP - Excel


"Daniel" wrote in message ...
| hi
|
| when my B3 cell with date 4/05/2007, I don't know why the A3 cell display
| serial number
|
| My A3 cell with formula ="<="&B3
|
| Can you explain this?
|
| Thanks
| Daniel


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default date in excel ?

You can use a workaround

="<="&TEXT(B3,"mm/dd/yy")


change the "mm/dd/yy" to whatever date format you are using, I used US date
format in my example

I guess it is because these D and advanced filter functions don't pick up
that B3 is a date so they display the true value of the cell


--


Regards,


Peo Sjoblom




"Daniel" wrote in message
...
hi

when my B3 cell with date 4/05/2007, I don't know why the A3 cell display
serial number

My A3 cell with formula ="<="&B3

Can you explain this?

Thanks
Daniel



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 964
Default date in excel ?

Excel stores dates as serial numbers. So, your data in cell B3 is actually
39177. It is the Cell Formatting that has been applied to cell B3 that
causes it to display as 4/05/2007.

If cell B3 is referenced from another cell (like A3), it is the 39177 that
is carried over. Normally, the same Cell Formatting could be applied to cell
A3 as well, giving the same display results. But, since you've added the
text string "<=", a date format can no longer be applied to this cell.

Try this in cell A3:

="<="&TEXT(B3,"m/dd/yyyy")

HTH,
Elkar

"Daniel" wrote:

hi

when my B3 cell with date 4/05/2007, I don't know why the A3 cell display
serial number

My A3 cell with formula ="<="&B3

Can you explain this?

Thanks
Daniel

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default date in excel ?

Dates in Excel are stored as a number, & merely formatted to display as a
date.

Try ="<="&TEXT(B3,"d/mm/yyyy") or ="<="&TEXT(B3,"m/dd/yyyy") or whatever
your format in B3 may be.
--
David Biddulph

"Daniel" wrote in message
...
hi

when my B3 cell with date 4/05/2007, I don't know why the A3 cell display
serial number

My A3 cell with formula ="<="&B3

Can you explain this?

Thanks
Daniel





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,388
Default date in excel ?

You are concatenating the date in B3 with "<=", so excel takes the date
serial number in B3 for 4/05/2007 which is 39177, and converts it to text and
concatenates it with "<=" to produce "<=39177". Dates are maintained as
numbers. You only see 4/05/2007 in B3 because B3 is formatted as a date. If
you want "<= 4/05/2007" in A3, try in A3: ="<= "&TEXT(B3,"mm/dd/yyyy").

Dave


"Daniel" wrote:

hi

when my B3 cell with date 4/05/2007, I don't know why the A3 cell display
serial number

My A3 cell with formula ="<="&B3

Can you explain this?

Thanks
Daniel

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 354
Default date in excel ?

Thanks all
but why using the & as in ="<="&B3

Daniel

"Peo Sjoblom" wrote:

You can use a workaround

="<="&TEXT(B3,"mm/dd/yy")


change the "mm/dd/yy" to whatever date format you are using, I used US date
format in my example

I guess it is because these D and advanced filter functions don't pick up
that B3 is a date so they display the true value of the cell


--


Regards,


Peo Sjoblom




"Daniel" wrote in message
...
hi

when my B3 cell with date 4/05/2007, I don't know why the A3 cell display
serial number

My A3 cell with formula ="<="&B3

Can you explain this?

Thanks
Daniel




  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default date in excel ?

Otherwise it will look for the string B3 and not the contents

="<=B3"


--


Regards,


Peo Sjoblom



"Daniel" wrote in message
...
Thanks all
but why using the & as in ="<="&B3

Daniel

"Peo Sjoblom" wrote:

You can use a workaround

="<="&TEXT(B3,"mm/dd/yy")


change the "mm/dd/yy" to whatever date format you are using, I used US
date
format in my example

I guess it is because these D and advanced filter functions don't pick up
that B3 is a date so they display the true value of the cell


--


Regards,


Peo Sjoblom




"Daniel" wrote in message
...
hi

when my B3 cell with date 4/05/2007, I don't know why the A3 cell
display
serial number

My A3 cell with formula ="<="&B3

Can you explain this?

Thanks
Daniel






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
How to link an Excel file due date to Outlook calendar date? anok New Users to Excel 0 May 9th 07 09:31 PM
Excel Formula to calulate number of days passed from date to date K. Mack Excel Discussion (Misc queries) 8 January 4th 07 11:27 PM
Excel: I enter date and format for date, but shows as number spohar Excel Discussion (Misc queries) 2 March 10th 06 08:40 PM
Make date change in excel to current date when opening daily? jamie Excel Discussion (Misc queries) 3 March 1st 06 03:37 PM
Date stamp spreadsheet in excel to remind me of completion date Big fella Excel Worksheet Functions 1 October 18th 05 04:10 PM


All times are GMT +1. The time now is 05:06 PM.

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"