Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
using =month(c2) if c2 is blank returns a 1, which messes up data
|
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
using =month(c2) if c2 is blank returns a 1, which messes updata
Hi
A blank cell will be treated as 01/01/1900 if blank and trying to do date calculations, hence it returns month 1. You will need to do a check If Isnumber() before carrying out the Month() function. Regards Roger Govier MHY wrote: |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
using =month(c2) if c2 is blank returns a 1, which messes up data
A blank cell will be treated as 01/01/1900
Actually, it is treated as 1/0/1900. -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "Roger Govier" wrote in message ... Hi A blank cell will be treated as 01/01/1900 if blank and trying to do date calculations, hence it returns month 1. You will need to do a check If Isnumber() before carrying out the Month() function. Regards Roger Govier MHY wrote: |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
sumif returns blank if all cells blank | Excel Worksheet Functions | |||
Query returns blank cells where there should be data | Excel Discussion (Misc queries) | |||
Function that returns the month name | Excel Worksheet Functions | |||
Formula that returns Col A data in Col B, but omitting blank cells | Excel Worksheet Functions | |||
When using MONTH function on Blank Cell!! Returns Month=Jan! | Excel Discussion (Misc queries) |