Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default Leaving a cell blank when there is an error message - HELP

I am keeping count of the difference in days from when we receive something
to when we quote it using the formula: =IF(J2-I2<0,"",J2-I2) since I cannot
have negative numbers running. But on some fields there is no end date so i
have to enter a text in that field (instead of a date) so in my formula
column I get an error message. I need to change the forlua to where it still
counts the way it does right now, but when there is an error I get a blank
cell instead. Please help!!
Thanks!!!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 184
Default Leaving a cell blank when there is an error message - HELP

=if(iserror(IF(J2-I2<0,"",J2-I2)),"", J2-I2)

"mercedes" wrote:

I am keeping count of the difference in days from when we receive something
to when we quote it using the formula: =IF(J2-I2<0,"",J2-I2) since I cannot
have negative numbers running. But on some fields there is no end date so i
have to enter a text in that field (instead of a date) so in my formula
column I get an error message. I need to change the forlua to where it still
counts the way it does right now, but when there is an error I get a blank
cell instead. Please help!!
Thanks!!!

  #3   Report Post  
Posted to microsoft.public.excel.misc
bj bj is offline
external usenet poster
 
Posts: 1,397
Default Leaving a cell blank when there is an error message - HELP

try
=if(or(iserror(j2-i2),j2-I2<0),"",J2-I2)

"mercedes" wrote:

I am keeping count of the difference in days from when we receive something
to when we quote it using the formula: =IF(J2-I2<0,"",J2-I2) since I cannot
have negative numbers running. But on some fields there is no end date so i
have to enter a text in that field (instead of a date) so in my formula
column I get an error message. I need to change the forlua to where it still
counts the way it does right now, but when there is an error I get a blank
cell instead. Please help!!
Thanks!!!

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default Leaving a cell blank when there is an error message - HELP

=IF(ISTEXT(J2),"",IF(J2-I2<0,"",J2-I2))

"mercedes" wrote:

I am keeping count of the difference in days from when we receive something
to when we quote it using the formula: =IF(J2-I2<0,"",J2-I2) since I cannot
have negative numbers running. But on some fields there is no end date so i
have to enter a text in that field (instead of a date) so in my formula
column I get an error message. I need to change the forlua to where it still
counts the way it does right now, but when there is an error I get a blank
cell instead. Please help!!
Thanks!!!

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 281
Default Leaving a cell blank when there is an error message - HELP

Hi,

Why you have to enter a text instead of date? if you can leave it blank you
have to use this formula: =if(isblank(I2),"",IF(J2-I2<0,"",J2-I2)) but if you
can not leave the cell blank and should to enter a text in it then you have
to use this formula: =if(iserror(J2-I2),"",IF(J2-I2<0,"",J2-I2)).

ps: in the first formula i assumed that the cell I2 is the end date

Thanks,
--
Farhad Hodjat


"mercedes" wrote:

I am keeping count of the difference in days from when we receive something
to when we quote it using the formula: =IF(J2-I2<0,"",J2-I2) since I cannot
have negative numbers running. But on some fields there is no end date so i
have to enter a text in that field (instead of a date) so in my formula
column I get an error message. I need to change the forlua to where it still
counts the way it does right now, but when there is an error I get a blank
cell instead. Please help!!
Thanks!!!



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
combine speadsheets leaving no blank rows on master page Combining spreadsheets in Excel Excel Discussion (Misc queries) 3 October 24th 05 05:20 PM
showing unlimited demand for a product other than leaving it blank johnnie Excel Discussion (Misc queries) 1 October 18th 05 05:23 AM
Leaving a cell blank. Not NA(), not "". Incoherent Excel Worksheet Functions 4 September 30th 05 05:36 PM
prevent a user leaving a blank cell in excel2003 Ian Varty Excel Discussion (Misc queries) 1 April 15th 05 01:41 PM
How to display a blank cell with no error message Juco Excel Worksheet Functions 11 January 31st 05 08:24 AM


All times are GMT +1. The time now is 09:50 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"