VBA check multiple cells if empty put text in cell B

cizzett

Board Regular
Joined
Jan 10, 2019
Messages
121
What I want to do is try to figure out a macro or code that can check if there is data in column D but column Q, R, and T are empty then I want to place the word "New" into column B.

Any Idea's?

Thanks as always
 
That sounds like, either col D is empty, or columns Q,R & T have something in them.
In an unused cell put
=ISBLANK(Q4)
where Q4 is an "empty" cell, what does the formula return?
Also try it with empty cells in R & T
 
Upvote 0

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
If you are referring to the "Today" sheet then Col T will never be empty, because your formula is adding a space if there is an error.
 
Upvote 0
Right but those formulas are removed by a macro prior to running the macro to add the new so the formula would be gone and should not be an issue should it?
 
Upvote 0
Fluff, I just realized you were 100% correct because my macro removed the formulas but left the values so it was in fact reading as a space. ? your the bomb my friend, I appreciate your help with this one
 
Upvote 0
I have been working on this so much I realized my macro for removing the formulas wasnt on the call list for the import button on the one I sent yall. But either way, removing the space has fixed the issue, I really appreciate you and @mumps both, this works perfect now.

Now I just have to streamline my macro for the initial import data task and hopefully find a way to make the file locations changeable in a cell.

Again I appreciate the help.
 
Upvote 0

Forum statistics

Threads
1,223,246
Messages
6,170,988
Members
452,373
Latest member
TimReeks

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