Ignore blank cells

soul1974

New Member
Joined
Feb 18, 2022
Messages
9
Office Version
  1. 365
Platform
  1. Windows
Morning,
I keep getting recess front in my blank celss . How do i get the formula to ignore blank cells?
=IF($E2>$F2;$L2-$G2+5;IF($E2<F2;"Recess Front";"Correct"))
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Morning,
I keep getting recess front in my blank celss . How do i get the formula to ignore blank cells?
=IF($E2>$F2;$L2-$G2+5;IF($E2<F2;"Recess Front";"Correct"))
you could either qrap the code around another IF statement saying if cell <> "" or include an and statement in your above code. You dont say where the "blank cells" are so little difficult to be more specific.
 
Upvote 0
you could either qrap the code around another IF statement saying if cell <> "" or include an and statement in your above code. You dont say where the "blank cells" are so little difficult to be more specific.
HI
Please see image, I don't want to display information in the empty cell
1645264170165.png
 
Upvote 0
you could either qrap the code around another IF statement saying if cell <> "" or include an and statement in your above code. You dont say where the "blank cells" are so little difficult to be more specific.
HI
Please see img, I don't want to display information in the empty cell
View attachment 58232
1645264392907.png
 

Attachments

  • 1645264358805.png
    1645264358805.png
    86.6 KB · Views: 20
Upvote 0
wrap your code inside another if statement

Excel Formula:
If(e2="","",addyourcodehere)
 
Upvote 0
The code works. I take it the yellow column is column "F"?
I not in your code you have " ; " (semicolon) where i would normally have " , " (comma) so if thats because of regional programming change the comma in my code to a semicolon

if youre still having issues attach a sample worksheet not an image
 
Upvote 0
The code works. I take it the yellow column is column "F"?
I not in your code you have " ; " (semicolon) where i would normally have " , " (comma) so if thats because of regional programming change the comma in my code to a semicolon
The code works. I take it the yellow column is column "F"?
I not in your code you have " ; " (semicolon) where i would normally have " , " (comma) so if thats because of regional programming change the comma in my code to a semicolon

if youre still having issues attach a sample worksheet not an image
level 9 measurement (18-02-22).xlsx
BCDEFGHIJKLMNOPQRSTU
1Room No#Unit TypeGlass SideAct Trap From Front Centre WallMin Req Trap From Front Centre WallADJUSTMENTTrap Centre From WallACT widthADJ WIDTH LESS 10mmACT lengthADJ LENGTH LESS 10mm Rear AdjustmentGlass Cut out sizeInternal SlabNotesArchitect SizeWidthW DifferenceLengthL Differnce
2940LE2.1right100125-2536091090016701660Recess Front9551400260mm cutout on back right900x1715900101715-45
3940RE2.1left13012554059008901550154015408351280920x1610920-201610-60
4125Recess Front
5125Recess Front
6125Recess Front
Sheet6
Cell Formulas
RangeFormula
N2:N3N2=IF(K2<>"",K2-715,"")
O2:O3O2=IF(Table25[@[ACT length]]<>"",Table25[@[ACT length]]-(190+40+40),"")
G2:G3G2=IF(Table25[@[Act Trap From Front Centre Wall]]<>"",Table25[@[Act Trap From Front Centre Wall]]-Table25[@[Min Req Trap From Front Centre Wall]],"")
J2:J3J2=IF(Table25[@[ACT width]]<>"",Table25[@[ACT width]]-10,"")
L2:L3L2=IF(Table25[@[ACT length]]<>"",Table25[@[ACT length]]-10,"")
S2:S3S2=IF(Table25[@[ACT width]]<>"",Table25[@[ACT width]]-Table36[@Width],"")
U2:U3U2=IF(Table25[@[ACT length]]<>"",Table25[@[ACT length]]-Table36[@Length],"")
M2:M6M2=IF($E2>$F2,$L2-$G2+5,IF($E2<F2,"Recess Front","Correct"))
Cells with Conditional Formatting
CellConditionCell FormatStop If True
U2:U6,S2:S6Cell Value>0textNO
G2:G6Cell Value>1textNO
G2:G6Cell Value<0textNO
R2:U6Cell Value<0textNO
 
Upvote 0
I have tested the code I gave you with the sample worksheet you posted and it works fine. I note in the sample workbook you dont have my code in column M (which is the cell you said you wanted blank if blank.) Did you substitute the "addyourcodehere" in my code with your own code??

the code I supplied was
Excel Formula:
If(e2="","",addyourcodehere)

with your formula in it
Excel Formula:
=IF(E2="","",IF($F2>$G2,$M2-$H2+5,IF($F2<G2,"Recess Front","Correct")))
 
Upvote 0
Solution

Forum statistics

Threads
1,224,946
Messages
6,181,945
Members
453,074
Latest member
JefersonKollet

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