ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Force date cell to show [blank] if end of month (https://www.excelbanter.com/excel-discussion-misc-queries/124993-force-date-cell-show-%5Bblank%5D-if-end-month.html)

lisa110rry

Force date cell to show [blank] if end of month
 
Hello,

My monthly employee timesheet spreadsheet is quite simple - a field where
the employee enters the first date in the month, eg 01/02/07 and a column
which automatically enters DDD/DD/MMM in a column on the left. All fine
there. However, I don't know how to stop the calculation (cellref above)+1
where the month is shorter than 31 days. Can anyone help with this? Is
there no alternative to linking a calendar table, as I would do if making an
Access object? This spreadsheet is used by all the company employees in
various stand-alone locations, who have various levels of Excel ability and I
must make this as simple as possible.

Many thanks

Ron de Bruin

Force date cell to show [blank] if end of month
 
Try this in A2 with the first date in A1 and copy down
=IF(A1<"",IF(MONTH($A$1)=MONTH(A1+1),A1+1,""),"")

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"lisa110rry" wrote in message ...
Hello,

My monthly employee timesheet spreadsheet is quite simple - a field where
the employee enters the first date in the month, eg 01/02/07 and a column
which automatically enters DDD/DD/MMM in a column on the left. All fine
there. However, I don't know how to stop the calculation (cellref above)+1
where the month is shorter than 31 days. Can anyone help with this? Is
there no alternative to linking a calendar table, as I would do if making an
Access object? This spreadsheet is used by all the company employees in
various stand-alone locations, who have various levels of Excel ability and I
must make this as simple as possible.

Many thanks


daddylonglegs

Force date cell to show [blank] if end of month
 
You could try this formula

=IF(A1="","",IF(DAY(A1+1)=1,"",A1+1))

"lisa110rry" wrote:

Hello,

My monthly employee timesheet spreadsheet is quite simple - a field where
the employee enters the first date in the month, eg 01/02/07 and a column
which automatically enters DDD/DD/MMM in a column on the left. All fine
there. However, I don't know how to stop the calculation (cellref above)+1
where the month is shorter than 31 days. Can anyone help with this? Is
there no alternative to linking a calendar table, as I would do if making an
Access object? This spreadsheet is used by all the company employees in
various stand-alone locations, who have various levels of Excel ability and I
must make this as simple as possible.

Many thanks



All times are GMT +1. The time now is 03:59 AM.

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