Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 12
Question Nested if statements creating a blank cell

I have a Cell H130 which I want to say "Pass" if the value in H129 is <= 5.07 and "Fail" it is over that. I have managed to do that quite easily using
=IF(H129<=5.07,"Pass","Fail")

The issue is that I need cell H130 to be blank if cell H129 is blank.

Cell H129 is itself a formula =H128

I have tried =IF(H128<=5.07,"Pass",IF(H1285.07,"Fail","")) but if H129 is blank it still puts Pass into the cell.

Hsve tried other combinations including =If(H129=” “,” “,if(H129<=5.07,”Pass”,”Fail”)) but I cannot get it to work. Any suggestions please
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,045
Default Nested if statements creating a blank cell

On Sun, 9 Feb 2014 22:11:54 +0000, ruthhicks999 wrote:


I have a Cell H130 which I want to say "Pass" if the value in H129 is <=
5.07 and "Fail" it is over that. I have managed to do that quite easily
using
=IF(H129<=5.07,"Pass","Fail")

The issue is that I need cell H130 to be blank if cell H129 is blank.

Cell H129 is itself a formula =H128

I have tried =IF(H128<=5.07,"Pass",IF(H1285.07,"Fail","")) but if H129
is blank it still puts Pass into the cell.

Hsve tried other combinations including =If(H129=” “,”
“,if(H129<=5.07,”Pass”,”Fail”)) but I cannot get it to work. Any
suggestions please



=If(H129=” “,”“,if(H129<=5.07,”Pass”,”Fail”))

” “ is a space surrounded by right and left double quotation marks.
That is not the same as a blank, which can be expressed as a null string or two "regular" quotation marks together.

Seems very close

If you want to test if H129 is blank, H129=“ ” is not the same as being blank. There are three characters the <left double quote <space <right double quote

If you want to test if a H129 is blank, then use either a null string: "" (two "normal" quote marks with NO space); or use the ISBLANK function.

But H129 will not be BLANK if it contains the formula =H128. So the first question is what is in H128? If H128 is blank, and H129 contains =H128; then H129 will evaluate to 0 which. But if you are seeing nothing in H129, there must be something in H128; test for that and you will have a working formula.

For example:

=if(h128="","",if(h128<=5.07,"Pass","Fail"))

might work, depending on what is really in H128



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
NESTED IF STATEMENTS [email protected] New Users to Excel 6 July 20th 08 01:07 PM
Help with nested if/or statements Nick Excel Discussion (Misc queries) 8 September 14th 07 03:46 PM
Nested IF statements TwoDot Excel Worksheet Functions 4 February 8th 07 12:17 AM
14 Nested IF statements creating different validation lists Jive Bunny Excel Worksheet Functions 6 July 2nd 06 10:15 PM
multilple nested if statements in one cell Rick Excel Programming 2 January 2nd 06 07:21 AM


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