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

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
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,224,823
Messages
6,181,175
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