G Guest Jul 27, 2005 #1 I need to calculate the first day of the month for the current month. ie. 12/06/04 = 12/01/04 or 5/05/05 = 5/01/05
I need to calculate the first day of the month for the current month. ie. 12/06/04 = 12/01/04 or 5/05/05 = 5/01/05
G Govind Jul 27, 2005 #2 Hi, Use =TEXT(DATE(YEAR(A1),MONTH(A1),1),"mm/dd/yy") Change cell A1 accordingly. Govind.
D Dave Peterson Jul 27, 2005 #3 I think I'd drop the =Text() portion: =date(year(a1),month(a1),1) And format the way I want. Then it's still a date.
I think I'd drop the =Text() portion: =date(year(a1),month(a1),1) And format the way I want. Then it's still a date.
G Govind Jul 27, 2005 #4 Ya. thats fine. I just added the Text portion so that the result comes in the format desired by April. Govind.
Ya. thats fine. I just added the Text portion so that the result comes in the format desired by April. Govind.
G Guest Jul 27, 2005 #5 Thanks! both Govind and Dave. It works perfect. Govind said: Ya. thats fine. I just added the Text portion so that the result comes in the format desired by April. Govind. Click to expand...
Thanks! both Govind and Dave. It works perfect. Govind said: Ya. thats fine. I just added the Text portion so that the result comes in the format desired by April. Govind. Click to expand...
S Sandy Mann Jul 27, 2005 #6 Late but an alternative: =A1-DAY(A1)+1 -- HTH Sandy (e-mail address removed) Replace@mailinator with @tiscali.co.uk
Late but an alternative: =A1-DAY(A1)+1 -- HTH Sandy (e-mail address removed) Replace@mailinator with @tiscali.co.uk