![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Apr 2002
Location: A Mile High!!
Posts: 230
|
How do I get the beginning of the month with a date somewhere in the middle. I know it is a simple subtraction and plus function but I cant remember what it is.
Thanks |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
|
Use =DATE(YEAR(A1),MONTH(A1),1) where A1 contains your "middle of the month" date.
|
|
|
|
|
|
#3 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Denver, CO
Posts: 1,744
|
with a date in A1, you could use
=+A1-DAY(A1)+1 |
|
|
|
|
|
#4 |
|
Board Regular
Join Date: Apr 2002
Location: A Mile High!!
Posts: 230
|
Thanks. That was easier than the formula!!
|
|
|
|
|
|
#5 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
|
Quote:
=TEXT(A1,"m/yyyy")+0 [ This Message was edited by: Mark W. on 2002-04-23 12:06 ] |
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|