Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 21
Default If cell contains -0 then return blank cell

Hi everyone,

I have written the following formula

=IF(K11<=0,"Passed Live Date",IF(AND(K11<=7,K11=1),"Within One
Week",IF(AND(K11<=14,K11=8),"Within Two Weeks",IF(K11=15,"Over Two
Weeks"))))

I currently have 'if K11 is less than 0 return "Passed Live Date"

What I do require is

if K11 is 0 to -30(minus 30) return "Passed Live Date"
and
if K11 is -31 to -999 return " "

I have tried to write the above but I can't get it to work, I guess
this is something to do with the number being minus

Hope I have provided enough info

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default If cell contains -0 then return blank cell

=IF(K11<-30,"",IF(K11<0,"Passed Live Date",IF(AND(K11<=7,K11=1),"Within One
Week",
IF(AND(K11<=14,K11=8),"Within Two Weeks",IF(K11=15,"Over Two
Weeks","")))))


--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Angela1979" wrote in message
ps.com...
Hi everyone,

I have written the following formula

=IF(K11<=0,"Passed Live Date",IF(AND(K11<=7,K11=1),"Within One
Week",IF(AND(K11<=14,K11=8),"Within Two Weeks",IF(K11=15,"Over Two
Weeks"))))

I currently have 'if K11 is less than 0 return "Passed Live Date"

What I do require is

if K11 is 0 to -30(minus 30) return "Passed Live Date"
and
if K11 is -31 to -999 return " "

I have tried to write the above but I can't get it to work, I guess
this is something to do with the number being minus

Hope I have provided enough info



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 21
Default If cell contains -0 then return blank cell

On Feb 28, 11:47 am, "Bob Phillips" wrote:
=IF(K11<-30,"",IF(K11<0,"Passed Live Date",IF(AND(K11<=7,K11=1),"Within One
Week",
IF(AND(K11<=14,K11=8),"Within Two Weeks",IF(K11=15,"Over Two
Weeks","")))))

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Angela1979" wrote in message

ps.com...



Hi everyone,


I have written the following formula


=IF(K11<=0,"Passed Live Date",IF(AND(K11<=7,K11=1),"Within One
Week",IF(AND(K11<=14,K11=8),"Within Two Weeks",IF(K11=15,"Over Two
Weeks"))))


I currently have 'if K11 is less than 0 return "Passed Live Date"


What I do require is


if K11 is 0 to -30(minus 30) return "Passed Live Date"
and
if K11 is -31 to -999 return " "


I have tried to write the above but I can't get it to work, I guess
this is something to do with the number being minus


Hope I have provided enough info- Hide quoted text -


- Show quoted text -








Thanks very much Bob
Works just as I need it to.
:-)

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 21
Default If cell contains -0 then return blank cell

On Feb 28, 11:36 am, "Angela1979" wrote:
Hi everyone,

I have written the following formula

=IF(K11<=0,"Passed Live Date",IF(AND(K11<=7,K11=1),"Within One
Week",IF(AND(K11<=14,K11=8),"Within Two Weeks",IF(K11=15,"Over Two
Weeks"))))

I currently have 'if K11 is less than 0 return "Passed Live Date"

What I do require is

if K11 is 0 to -30(minus 30) return "Passed Live Date"
and
if K11 is -31 to -999 return " "

I have tried to write the above but I can't get it to work, I guess
this is something to do with the number being minus

Hope I have provided enough info


////////////////////////////////////////////////////////////////


Hi Bob,

Sorry one more thing, I am now getting "Value" if the cell (cell that
contains the number) is blank.
I need =if(k11="","")

Many Thanks

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default If cell contains -0 then return blank cell

Angela,

You shouldn't, I don't. I put a catchall at the end that will return "" for
any condition other than those specifically tested for.

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Angela1979" wrote in message
oups.com...
On Feb 28, 11:36 am, "Angela1979" wrote:
Hi everyone,

I have written the following formula

=IF(K11<=0,"Passed Live Date",IF(AND(K11<=7,K11=1),"Within One
Week",IF(AND(K11<=14,K11=8),"Within Two Weeks",IF(K11=15,"Over Two
Weeks"))))

I currently have 'if K11 is less than 0 return "Passed Live Date"

What I do require is

if K11 is 0 to -30(minus 30) return "Passed Live Date"
and
if K11 is -31 to -999 return " "

I have tried to write the above but I can't get it to work, I guess
this is something to do with the number being minus

Hope I have provided enough info


////////////////////////////////////////////////////////////////


Hi Bob,

Sorry one more thing, I am now getting "Value" if the cell (cell that
contains the number) is blank.
I need =if(k11="","")

Many Thanks





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,081
Default If cell contains -0 then return blank cell

=IF(or(K11<-30,k11=""),"",IF(K11<0,"Passed Live
Date",IF(AND(K11<=7,K11=1),"Within One Week",
IF(AND(K11<=14,K11=8),"Within Two Weeks",IF(K11=15,"Over Two
Weeks","")))))

Hi Bob,

Sorry one more thing, I am now getting "Value" if the cell (cell that
contains the number) is blank.
I need =if(k11="","")

Many 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
Return a value to a cell that is blank hilltop55 Excel Discussion (Misc queries) 2 February 1st 07 08:58 PM
Return cell adress for next non-blank cell in a range toreadore Excel Worksheet Functions 1 June 28th 06 12:37 PM
return a blank cell jpotts8117 Excel Worksheet Functions 5 September 23rd 05 08:33 PM
use IF to return a truly blank cell cwinters Excel Discussion (Misc queries) 5 August 6th 05 12:09 AM
return zero from a blank cell Eric Excel Worksheet Functions 5 July 15th 05 11:23 PM


All times are GMT +1. The time now is 03:05 PM.

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

About Us

"It's about Microsoft Excel"