A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

how to add date and time to a single cell in MS Excel 2007



 
 
Thread Tools Display Modes
  #1  
Old April 20th, 2009, 12:33 PM posted to microsoft.public.excel.worksheet.functions
Anil123
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  
Old April 20th, 2009, 01:07 PM posted to microsoft.public.excel.worksheet.functions
David Biddulph
external usenet poster
 
Posts: 8,714
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  
Old April 20th, 2009, 01:24 PM posted to microsoft.public.excel.worksheet.functions
Jacob Skaria
external usenet poster
 
Posts: 5,952
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  
Old April 20th, 2009, 02:30 PM posted to microsoft.public.excel.worksheet.functions
Teethless mama
external usenet poster
 
Posts: 3,722
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  
Old April 20th, 2009, 06:23 PM posted to microsoft.public.excel.worksheet.functions
Rick Rothstein[_2_]
external usenet poster
 
Posts: 2,013
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
news
=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  
Old April 21st, 2009, 07:24 AM posted to microsoft.public.excel.worksheet.functions
Anil123
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


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 03:31 PM.


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