Leave a CELL blank

AXILLIAN

New Member
Joined
Oct 5, 2022
Messages
4
Office Version
  1. 365
Hi all.
OK, so I will try and explain this:

I have a spread sheet for auto working out, Percentage, Then PASS & FAIL. I would like the PASS and FAIL cell to stay blank if nothing is put into the SCORE cell. (Score cell is a drop-down option)

So, when from the SCORE drop down is entered, It auto fills the percentage cell, which then auto enters the PASS or FAIL cell.

This is what I have been advised to use: =IF([@SCORE]>25,"PASS",IF([@SCORE]<25,"FAIL",IFBLANK([@SCORE],””)))

But this does not leave the Pass or Fail cell empty if nothing has been selected in the Score cell!!!

Does this make sense to anyone?

Any help would be greatly apricated. :)
 

Attachments

  • Screenshot 2022-10-05 131823.png
    Screenshot 2022-10-05 131823.png
    44.2 KB · Views: 14

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Hi all.
OK, so I will try and explain this:

I have a spread sheet for auto working out, Percentage, Then PASS & FAIL. I would like the PASS and FAIL cell to stay blank if nothing is put into the SCORE cell. (Score cell is a drop-down option)

So, when from the SCORE drop down is entered, It auto fills the percentage cell, which then auto enters the PASS or FAIL cell.

This is what I have been advised to use: =IF([@SCORE]>25,"PASS",IF([@SCORE]<25,"FAIL",IFBLANK([@SCORE],””)))

But this does not leave the Pass or Fail cell empty if nothing has been selected in the Score cell!!!

Does this make sense to anyone?

Any help would be greatly apricated. :)

Hi and Welcome to the Forum 😊

Try below:

Excel Formula:
=IF(ISBLANK([@SCORE]),"",IF([@SCORE]>25,"PASS","FAIL"))

Explanation:
First do the test if it's blank, then test if its above 25.
I removed the test below 25, it doesn't make sense to have both I guess.

/Skovgaard
 
Last edited by a moderator:
Upvote 0
Solution
Hi & welcome to MrExcel.
How about
Excel Formula:
=IF([@SCORE]="","",if([@SCORE]>25,"PASS","FAIL"))
 
Upvote 0
Thank you all for getting back to me. :)
So I finally got something to work.

=IF([@SCORE]="", "",IF([@SCORE]>25,"PASS",IF([@SCORE]<25,"FAIL",)))

This worked perfect. :)

Again, thank you.
 
Upvote 0
What should happen if the score is 25?
 
Upvote 0
But what if the score IS 25?
 
Upvote 0
You are saying it's Pass for OVER 25 & Fail for UNDER 25, what should the cell say if it EQUALS 25?
 
Upvote 0
Sorry, at a loss at what your getting at?
I will try clarifying a different way

A. Here are some scores that are over 25 (>25).
44
25.1
According to your original formula, these are PASS scores

B.
Here are some scores that are under 25 (<25).
24.9
18
According to your original formula, these are FAIL scores

C.
Here is a score that does not fit in into either A. or B. above.
25

Fluff is trying to determine whether a score like in C. should get a PASS or a FAIL (or something else).
The reason for seeking the clarification is that the formula in post #4, which you currently have marked as the solution, returns zero for this score - see below. I doubt that is the result that you actually want?

AXILLIAN.xlsm
FH
1ScorePASS/FAIL
228PASS
355PASS
4250
5 
614FAIL
Sheet1
Cell Formulas
RangeFormula
H2:H6H2=IF([@Score]="", "",IF([@Score]>25,"PASS",IF([@Score]<25,"FAIL",)))
 
Upvote 0

Forum statistics

Threads
1,224,814
Messages
6,181,130
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top