Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Ignore blank cells when calculating date for If, Then function

I have a training spreadsheet that uses the date function "Today" along with
the date training was completed to calculate when training is overdue. Is
there a way to have Excel ignore blank cells. Right now it is counting a
blank cell as "Overdue".

My formula is =IF(($C$3-J8)1095, "OVERDUE", " "), where C3 = TODAY(); J8 is
the date of the last training class and 1095 is the amount of days it would
be considered "overdue".

Thanks,
Andrea
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Ignore blank cells when calculating date for If, Then function

Try

=IF(AND(ISNUMBER(J8),C3-J81095),"Overdue","")

Mike

"AndreaS13" wrote:

I have a training spreadsheet that uses the date function "Today" along with
the date training was completed to calculate when training is overdue. Is
there a way to have Excel ignore blank cells. Right now it is counting a
blank cell as "Overdue".

My formula is =IF(($C$3-J8)1095, "OVERDUE", " "), where C3 = TODAY(); J8 is
the date of the last training class and 1095 is the amount of days it would
be considered "overdue".

Thanks,
Andrea

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Ignore blank cells when calculating date for If, Then function

That worked perfectly--thank you so much!

Andrea

"Mike H" wrote:

Try

=IF(AND(ISNUMBER(J8),C3-J81095),"Overdue","")

Mike

"AndreaS13" wrote:

I have a training spreadsheet that uses the date function "Today" along with
the date training was completed to calculate when training is overdue. Is
there a way to have Excel ignore blank cells. Right now it is counting a
blank cell as "Overdue".

My formula is =IF(($C$3-J8)1095, "OVERDUE", " "), where C3 = TODAY(); J8 is
the date of the last training class and 1095 is the amount of days it would
be considered "overdue".

Thanks,
Andrea

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 964
Default Ignore blank cells when calculating date for If, Then function

First of all change the space " " to a blank ""


=IF(OR(J8="",$C$3-J8<=1095),"","OVERDUE")


or better


=IF(OR(J8="",TODAY()-J8<=1095),"","OVERDUE")

that way you don't need an extra cell

--


Regards,


Peo Sjoblom

"AndreaS13" wrote in message
...
I have a training spreadsheet that uses the date function "Today" along
with
the date training was completed to calculate when training is overdue. Is
there a way to have Excel ignore blank cells. Right now it is counting a
blank cell as "Overdue".

My formula is =IF(($C$3-J8)1095, "OVERDUE", " "), where C3 = TODAY(); J8
is
the date of the last training class and 1095 is the amount of days it
would
be considered "overdue".

Thanks,
Andrea



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ignore blank cells Angyl Excel Discussion (Misc queries) 4 October 30th 07 09:42 PM
calculating date/time with blank cells ferde Excel Discussion (Misc queries) 2 August 23rd 07 11:26 PM
can you tell excel to ignore #### cells when calculating Mark Excel Worksheet Functions 5 June 23rd 07 12:37 AM
ignore blank cells in function Neil Excel Discussion (Misc queries) 1 October 21st 06 02:22 AM
How do I ignore cells with errors when calculating an average? M Enfroy Excel Worksheet Functions 6 November 1st 05 03:26 PM


All times are GMT +1. The time now is 02:08 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"