Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 63
Default If statement returns zeros

I'm using the IF formula(?) to copy material from another sheet if a
condition is true. When the info I bring in has blank rows, it puts a 0 in
the row. How can I make it return blanks if the row is blank?
--
Rich D
Armstrong Custom Homes
Redmond
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default If statement returns zeros

You should have posted the formula you're using...

As a general template:

=IF(your_formula="","",your_formula)

--
Biff
Microsoft Excel MVP


"Rich D" wrote in message
...
I'm using the IF formula(?) to copy material from another sheet if a
condition is true. When the info I bring in has blank rows, it puts a 0
in
the row. How can I make it return blanks if the row is blank?
--
Rich D
Armstrong Custom Homes
Redmond



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default If statement returns zeros

IF(A1="","",your formula)


Gord Dibben MS Excel MVP

On Sat, 15 Dec 2007 10:16:00 -0800, Rich D
wrote:

I'm using the IF formula(?) to copy material from another sheet if a
condition is true. When the info I bring in has blank rows, it puts a 0 in
the row. How can I make it return blanks if the row is blank?


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 63
Default If statement returns zeros

Here is the formula I'm using: =IF($I$2="NO",Clauses!$B5,Clauses!B17)
I am then copying this down the rows where I want the info to go.

This is what it returns when it encounters a blank row: Note the zeros on
the left.

Thanks for your help.

1. $________________(20%) of contract price down
(including sales tax), prior to start of construction.
This amount will include deposits paid previously.
0
2. $________________ (20%) at completion of
______________.
0
3. $________________ (20%) at completion of
______________.
0
4. $________________ (20%) at completion of
______________.

--
Rich D
Armstrong Custom Homes
Redmond


"T. Valko" wrote:

You should have posted the formula you're using...

As a general template:

=IF(your_formula="","",your_formula)

--
Biff
Microsoft Excel MVP


"Rich D" wrote in message
...
I'm using the IF formula(?) to copy material from another sheet if a
condition is true. When the info I bring in has blank rows, it puts a 0
in
the row. How can I make it return blanks if the row is blank?
--
Rich D
Armstrong Custom Homes
Redmond




  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default If statement returns zeros

Try this:

=IF($I$2="NO",IF(Clauses!$B5="","",Clauses!$B5),Cl auses!B17)

--
Biff
Microsoft Excel MVP


"Rich D" wrote in message
...
Here is the formula I'm using: =IF($I$2="NO",Clauses!$B5,Clauses!B17)
I am then copying this down the rows where I want the info to go.

This is what it returns when it encounters a blank row: Note the zeros on
the left.

Thanks for your help.

1. $________________(20%) of contract price down
(including sales tax), prior to start of construction.
This amount will include deposits paid previously.
0
2. $________________ (20%) at completion of
______________.
0
3. $________________ (20%) at completion of
______________.
0
4. $________________ (20%) at completion of
______________.

--
Rich D
Armstrong Custom Homes
Redmond


"T. Valko" wrote:

You should have posted the formula you're using...

As a general template:

=IF(your_formula="","",your_formula)

--
Biff
Microsoft Excel MVP


"Rich D" wrote in message
...
I'm using the IF formula(?) to copy material from another sheet if a
condition is true. When the info I bring in has blank rows, it puts a
0
in
the row. How can I make it return blanks if the row is blank?
--
Rich D
Armstrong Custom Homes
Redmond








  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default If statement returns zeros

=IF($I$2="NO",IF(Clauses!$B5="","",Clauses!$B5),IF (Clauses!B17="","",Clauses!B17))--David Biddulph"Rich D" wrote in ... Here is the formula I'm using: =IF($I$2="NO",Clauses!$B5,Clauses!B17) I am then copying this down the rows where I want the info to go. This is what it returns when it encounters a blank row: Note the zeros on the left. Thanks for your help. 1. $________________(20%) of contract price down (including sales tax), prior to start of construction. This amount will include deposits paid previously. 0 2. $________________ (20%) at completion of ______________. 0 3. $________________ (20%) at completion of ______________. 0 4. $________________ (20%) at completion of ______________. -- Rich D Armstrong Custom Homes Redmond "T. Valko" wrote: You should have posted the formula you're using... As a general template: =IF(your_formula="","",your_formula) -- Biff Microsoft Excel MVP "Rich D" wrote in message ... I'm using the IF formula(?) to copy material from another sheet if a condition is true. When the info I bring in has blank rows, it puts a0 in the row. How can I make it return blanks if the row is blank? -- Rich D Armstrong Custom Homes Redmond

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
Create If statement that returns a tick when true [email protected] Excel Discussion (Misc queries) 3 November 7th 07 04:41 PM
sum of blank cells returns zeros Mar_W Excel Worksheet Functions 7 November 28th 06 05:53 PM
If Statement returns true when false? Eric Excel Discussion (Misc queries) 3 September 11th 06 01:58 PM
nested if statement returns #value error [email protected] Excel Discussion (Misc queries) 3 August 10th 06 04:27 PM
Lookup returns #NA when search value (text) has leading zeros. M-Dickey Excel Worksheet Functions 1 May 10th 05 10:26 PM


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