ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Date merge (https://www.excelbanter.com/excel-discussion-misc-queries/117244-date-merge.html)

Mary C

Date merge
 
I have the year (2006) in cell A1 and the month (7) in cell B1 of a pivot
table. When extracting them from the pivot table is it possible to combine
them into one cell as a date? When I enter A1+B1 it returns 20067 instead of
the date. Thanks.
--
Mary C

JLatham

Date merge
 
Try this formula:
=DATE(A1,B1,1)
The ,1) just says 1st day of the month. You can format the cell that
formula is in to get the date to be displayed the way you want it to be.

"Mary C" wrote:

I have the year (2006) in cell A1 and the month (7) in cell B1 of a pivot
table. When extracting them from the pivot table is it possible to combine
them into one cell as a date? When I enter A1+B1 it returns 20067 instead of
the date. Thanks.
--
Mary C


Dave Peterson

Date merge
 
=date(a1,b1,1)
will give the 1st day of that month.



Mary C wrote:

I have the year (2006) in cell A1 and the month (7) in cell B1 of a pivot
table. When extracting them from the pivot table is it possible to combine
them into one cell as a date? When I enter A1+B1 it returns 20067 instead of
the date. Thanks.
--
Mary C


--

Dave Peterson

Mary C

Date merge
 
Perfect - Thanks to both of you
--
Mary C


"Dave Peterson" wrote:

=date(a1,b1,1)
will give the 1st day of that month.



Mary C wrote:

I have the year (2006) in cell A1 and the month (7) in cell B1 of a pivot
table. When extracting them from the pivot table is it possible to combine
them into one cell as a date? When I enter A1+B1 it returns 20067 instead of
the date. Thanks.
--
Mary C


--

Dave Peterson



All times are GMT +1. The time now is 01:34 AM.

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