Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default how to add date and time to a single cell in MS Excel 2007

Hi,

Iam trying to add date column ( 01.03.2009) and time column (23:30:00) to a
single cell to get the result as 2/28/2009 23:30 using the formula :

=IF(A1<"",A1+B1,""), But its throwing an exception of #VALUE!

Please help in this regard.

Thanks,
Anil


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default how to add date and time to a single cell in MS Excel 2007

If you are getting a #VALUE! error, it's because at least one of your
arguments is text, not a number. I guess that your 01.03.2009 is text, so
you need to convert it into an Excel date.
--
David Biddulph

"Anil123" wrote in message
...
Hi,

Iam trying to add date column ( 01.03.2009) and time column (23:30:00) to
a
single cell to get the result as 2/28/2009 23:30 using the formula :

=IF(A1<"",A1+B1,""), But its throwing an exception of #VALUE!

Please help in this regard.

Thanks,
Anil




  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default how to add date and time to a single cell in MS Excel 2007

The below will display in text format
A1 = date
B1 = Time
=TEXT(A1,"mm/dd/yyyy") & " " & TEXT(B1,"hh:mm")

If this post helps click Yes
---------------
Jacob Skaria


"Anil123" wrote:

Hi,

Iam trying to add date column ( 01.03.2009) and time column (23:30:00) to a
single cell to get the result as 2/28/2009 23:30 using the formula :

=IF(A1<"",A1+B1,""), But its throwing an exception of #VALUE!

Please help in this regard.

Thanks,
Anil


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default how to add date and time to a single cell in MS Excel 2007

=TEXT(SUBSTITUTE(A1,".",""),"00-00-0000")+B1


"Anil123" wrote:

Hi,

Iam trying to add date column ( 01.03.2009) and time column (23:30:00) to a
single cell to get the result as 2/28/2009 23:30 using the formula :

=IF(A1<"",A1+B1,""), But its throwing an exception of #VALUE!

Please help in this regard.

Thanks,
Anil


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,934
Default how to add date and time to a single cell in MS Excel 2007

You don't really need the TEXT function call; this seems to work as well...

=SUBSTITUTE(A1,".","-")+B1

--
Rick (MVP - Excel)


"Teethless mama" wrote in message
...
=TEXT(SUBSTITUTE(A1,".",""),"00-00-0000")+B1


"Anil123" wrote:

Hi,

Iam trying to add date column ( 01.03.2009) and time column (23:30:00) to
a
single cell to get the result as 2/28/2009 23:30 using the formula :

=IF(A1<"",A1+B1,""), But its throwing an exception of #VALUE!

Please help in this regard.

Thanks,
Anil





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default how to add date and time to a single cell in MS Excel 2007

Hello All,

Thank you for your solutions, but unfortunately neither of the solutions
worked. the error iam getting is mainly because of the regional and langauge
settings, 01.03.2009 is the date format of switzerland and my PC is with US
settings, so I changed the regional settings and the formula worked out well.

Thanks again for ur quick response.

Anil

"Anil123" wrote:

Hi,

Iam trying to add date column ( 01.03.2009) and time column (23:30:00) to a
single cell to get the result as 2/28/2009 23:30 using the formula :

=IF(A1<"",A1+B1,""), But its throwing an exception of #VALUE!

Please help in this regard.

Thanks,
Anil


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
Excel 2003 file/properties to view created date/time how in 2007? Bald Eagle Boy Excel Discussion (Misc queries) 2 June 27th 12 09:11 PM
Excel 2007 single cell selecting muliple cell Submit2s Excel Worksheet Functions 1 February 12th 09 04:52 PM
Static Date & Time in Footer - Excel 2007 Maria Maz Excel Discussion (Misc queries) 1 January 26th 09 05:35 PM
Static Date & Time in Footer - Excel 2007 Maria Maz Excel Discussion (Misc queries) 0 January 26th 09 03:17 PM
MS Excel 2007 highlights multiple cells when selecting single cell biz_kid1 Excel Discussion (Misc queries) 5 September 14th 08 06:42 PM


All times are GMT +1. The time now is 09:41 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"