Excel VBA Course
Excel VBA Course - From Beginner to Expert

200+ Video Lessons
50+ Hours of Video
200+ Excel Guides

Become a master of VBA and Macros in Excel and learn how to automate all of your tasks in Excel with this online course. (No VBA experience required.)

View Course

Blank Cell Query

0

I have attached an excel in which I find difficulty in keeping the Status output blank if there is no data needed or if the loop cell is blank.

Need your support in this regard. Thank you....

Appreciated

Answer
Discuss

Answers

0
Selected Answer

You could just nest another IF statement in your formula to check that column O doesn't contain a blank. E.g. for cell P10 make it read (changes in bold below):

=IF(AND(O10>0,O10<=30),$J$3,IF(O10<=0,$E$3,IF(O10<>"",$N$3,"")))

Then copy to other cell in that column.

Hope this helps. 

Discuss

Discussion

Thank you John_Ru 
Appreciated and I got the solution for my query.
It worked. Thank you so much....
ajazuddin (rep: 4) Dec 15, '22 at 5:40 pm
Glad that worked for you and thanks for selecting my answer 
John_Ru (rep: 6152) Dec 15, '22 at 6:43 pm
Add to Discussion


Answer the Question

You must create an account to use the forum. Create an Account or Login