ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   blank cells showing up as a month 1 (https://www.excelbanter.com/excel-worksheet-functions/18871-blank-cells-showing-up-month-1-a.html)

Carl

blank cells showing up as a month 1
 
Hi,
Trying to use the Month function to reference a leaving date column (for use
with a pivot chart). However if this leaving date is blank the Month field
still returns a 1 - anyway to stop this?

(dates refererred to are dd/mm/yyyy format or blank).


Bob Phillips

Test for blank as well, because it is been treated as zero, 1/1/1900, which
is month 1.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Carl" wrote in message
...
Hi,
Trying to use the Month function to reference a leaving date column (for

use
with a pivot chart). However if this leaving date is blank the Month field
still returns a 1 - anyway to stop this?

(dates refererred to are dd/mm/yyyy format or blank).





All times are GMT +1. The time now is 10:23 AM.

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