Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
KK KK is offline
external usenet poster
 
Posts: 61
Default I want to create an IF statement that leaves a cell blank if....

I want to create an IF statement that leaves a cell blank if the value in
another cell is blank or zero. How would I craft this formula please?


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,646
Default I want to create an IF statement that leaves a cell blank if....

=IF(ISBLANK(A2),"","A2 is non_blank")

Regards,
Stefi

€žKK€ ezt Ã*rta:

I want to create an IF statement that leaves a cell blank if the value in
another cell is blank or zero. How would I craft this formula please?


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default I want to create an IF statement that leaves a cell blank if....

=IF(A1+0=0,"",A1)
OR
=IF(A1+0=0,"","do whatever")

If this post helps click Yes
---------------
Jacob Skaria


"KK" wrote:

I want to create an IF statement that leaves a cell blank if the value in
another cell is blank or zero. How would I craft this formula please?


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default I want to create an IF statement that leaves a cell blank if....

If you mean, looking "blank", then the usual way would be something like this
in say, B2: =IF(A2="","",yourformula)

B2 will appear "blank" (it'll contain a zero length null string: "")
if A2 is either blank or if A2 contains a zero length null string: ""

There's no formula which will return a real blank
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:27,000 Files:200 Subscribers:70
xdemechanik
---
"KK" wrote:
I want to create an IF statement that leaves a cell blank if the value in
another cell is blank or zero. How would I craft this formula please?


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default I want to create an IF statement that leaves a cell blank if..

Sorry, missed the "or zero" bit
It should read: =IF(A2={0,""},"",yourformula)
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:27,000 Files:200 Subscribers:70
xdemechanik
---



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default I want to create an IF statement that leaves a cell blank if..

Errata to earlier, it should be: =IF(OR(A2={0,""}),"",C2)
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:27,000 Files:200 Subscribers:70
xdemechanik
---

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default I want to create an IF statement that leaves a cell blank if....

=IF(A1,A1,"")


"KK" wrote:

I want to create an IF statement that leaves a cell blank if the value in
another cell is blank or zero. How would I craft this formula please?


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
Error Message if user leaves a field blank GillianX Excel Worksheet Functions 1 October 14th 08 05:40 PM
Hiding Rows Leaves Labels Blank Laura Excel Discussion (Misc queries) 3 March 24th 06 01:10 PM
Text File Import leaves a blank row after each line R Kapoor Setting up and Configuration of Excel 0 January 8th 06 02:07 PM
Need IF statement that leaves value unchanged milt Excel Worksheet Functions 0 November 11th 04 09:29 PM
Need IF statement that leaves value unchanged milt Excel Worksheet Functions 1 November 11th 04 09:17 PM


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