Using if and ifblank

Willway22

New Member
Joined
Jun 29, 2022
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi Everyone,

I've been trying a number of different combinations but nothing is working so far. I am trying to do a formula that if a cell is blank then to do a sum. The "sum" part works fine:

=IF(G3>3,"yes","no")

but what I can't do if for it to only perform the sum where the cell is blank (so to not perform the formula if there is a number already in the cell). This is what I have:

=IF(ISBLANK(I11),(I3>3,"yes","no"))

I've looked at a lot of formulas online, but I can't quite make it work. Is anyone able to help?

Thank you so much.
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Welcome to the MrExcel board!

You also need to allow for if I11 is not blank

Excel Formula:
=IF(ISBLANK(I11),IF(I3>3,"Yes","No"),"")

.. though I would usually go for the shorter
Excel Formula:
=IF(I11="",IF(I3>3,"Yes","No"),"")
 
Upvote 0
Thank you so much for your reply. When I do this it returns the result '0'- rather than yes or no.
And if I drag the formula over cells that have data already in, it also changes that to '0'. Is there a way around this?
 
Upvote 0
I'm not sure if I understand your problem properly but I always find ISBLANK annoying, because even if the cell is blank but has a formula such as ="", then it says the cell is NOT blank. I.e. it actually has a value in it.

I tend to use the IF statement <>"" being, if the cell is not equal to anything (blank), then... "yes" and if it is equal to anything (>0), then "no"

=IF(E5<>"","yes","no")

so for you

=IF(I11<>"",IF(I3>3,"yes","no"),"")
 
Upvote 0
Thank you so much for your reply. When I do this it returns the result '0'- rather than yes or no.
Two people have responded with three formula suggestions so who and which formula are you referring to?
There is nothing in any formula suggested prior to your post that would return a 0.
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,239
Members
452,621
Latest member
Laura_PinksBTHFT

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