Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default returning blank cell when conditions not met


Entered into G7 the following
=IF(F7<3,3-F7,0)

F7 is the SUM of C7,D7,E7

If there are no entries in C7,D7 and E7 I want G7 to be blank.
meaning until there are numbers entered I don't want to see 0 in G7
Any ideas. Since i can't seem to find a way to put in an else statement with
excel 2003
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,069
Default returning blank cell when conditions not met

Try

=IF(AND(LEN(C7)0,LEN(D7)0,LEN(E7)0),IF(F7<3,3-F7,0),"")

Hope this helps,

Hutch

"kfarley" wrote:


Entered into G7 the following
=IF(F7<3,3-F7,0)

F7 is the SUM of C7,D7,E7

If there are no entries in C7,D7 and E7 I want G7 to be blank.
meaning until there are numbers entered I don't want to see 0 in G7
Any ideas. Since i can't seem to find a way to put in an else statement with
excel 2003

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default returning blank cell when conditions not met

=if(count(c7,d7,e7)<3,"",if(f7<3,3-f7,0))
or
=if(count(c7,d7,e7)<3,"",max(3-f7,0))



kfarley wrote:

Entered into G7 the following
=IF(F7<3,3-F7,0)

F7 is the SUM of C7,D7,E7

If there are no entries in C7,D7 and E7 I want G7 to be blank.
meaning until there are numbers entered I don't want to see 0 in G7
Any ideas. Since i can't seem to find a way to put in an else statement with
excel 2003


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 353
Default returning blank cell when conditions not met

With this entered in cell G7

=IF(AND(C7="",D7="",E7=""),"",IF(F7<3,3-F7,0))

if C7:E7 are blank, G7 should be blank as well....
but with your formula, you should have seen 3 in the cells with no entries
in C7:E7.
if you want F7 to be blank instead of displaying a zero, in cell F7 enter
the following formula:

=IF(AND(C7="",D7="",E7=""),"",SUM(C7:E7))

"kfarley" wrote:


Entered into G7 the following
=IF(F7<3,3-F7,0)

F7 is the SUM of C7,D7,E7

If there are no entries in C7,D7 and E7 I want G7 to be blank.
meaning until there are numbers entered I don't want to see 0 in G7
Any ideas. Since i can't seem to find a way to put in an else statement with
excel 2003

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default returning blank cell when conditions not met

Thanks guys I'll give it a try.

"kfarley" wrote:


Entered into G7 the following
=IF(F7<3,3-F7,0)

F7 is the SUM of C7,D7,E7

If there are no entries in C7,D7 and E7 I want G7 to be blank.
meaning until there are numbers entered I don't want to see 0 in G7
Any ideas. Since i can't seem to find a way to put in an else statement with
excel 2003

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
Returning a Value if 3 Conditions are True brownie224 Excel Worksheet Functions 5 May 11th 06 11:54 PM
Returning a blank cell rather then #N/A (Lookup) Monk Excel Discussion (Misc queries) 2 January 24th 06 03:16 PM
returning blank cell sbigelow Excel Worksheet Functions 2 October 9th 05 03:53 PM
returning blank cell in criteria o Joop Excel Discussion (Misc queries) 3 June 3rd 05 02:11 PM
Formulas returning a blank if no data entered in one cell Mifty Jackson New Users to Excel 3 March 31st 05 04:37 PM


All times are GMT +1. The time now is 06:50 PM.

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"