Automatically add text to cell if blank

SaraWitch

Active Member
Joined
Sep 29, 2015
Messages
378
Office Version
  1. 365
Platform
  1. Windows
Hello peeps,

I would like to automatically add the text "Target met" to a cell if it is blank (C1) and if a previous cell contains data (A1).

I have tried several ways, but nothing is working (I am usually ending up with a circular reference, even with a helper column because C1 is not technically blank as it contains the formula to return the text!).

Latest I've tried:

In the helper column (D):
Excel Formula:
=IF(AND(A1<>"", C1=""), "Target met", C1)

In the column I want the autotext if blank (C):
Excel Formula:
=IF(D1="Target met", "Target met", "")

Any suggestions? :)
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Is C1 the cell you're trying to return the text?
 
Upvote 0
Is there a reason why you want to check if C1 is blank? More context and example(s) would be helpful.
 
Upvote 0
No blank columns are allowed, so this column needs to have text. Users will update the cell with a reason if the target date is not met, but they are not completing it if the target is met. Just wanted to make it easy to automatically show 'Target met' if users don't update that cell.

Just trying to be fancy really, and will need to get my stick out to make people adhere to best practice if not! ;)
 
Upvote 0
Ah, just thought of a way!! I've done a formula that if the number of days is below the target days, then return "Target met" !! Been a long day and I was overthinking it! 🤦‍♀️

Thank you anyway! 😊
 
Upvote 0
It sounds like you're trying to have the cells in C as both user input and formula. You cannot have both.
 
Upvote 0
Yeah, that's why I've come at it from a different approach (I'm not protecting the cell, so the user can overwrite it with a non-met reason if needed) - like I say, long day and not enough simple thinking!!

Thank you anyway, @Cubist... 😊
 
Upvote 0
Ah, just thought of a way!! I've done a formula that if the number of days is below the target days, then return "Target met" !! Been a long day and I was overthinking it! 🤦‍♀️
Good to hear you got the solution.
If you would like to post the solution formula you mentioned then it is perfectly fine to mark your post as the solution to help future readers. Otherwise, please do not mark a post that doesn't contain a solution.
 
Upvote 0
Oops! Sorry, @smozgur.

Number of days in which the work was finished are in column B and the target is 25 days, so in cell C1, I used:
Excel Formula:
=IF(A1<>"",IF(B1<=25,"Target met",""))

I didn't protect this cell, so it could be overwritten with a reason if the days are over 25.
 
Upvote 0

Forum statistics

Threads
1,224,804
Messages
6,181,057
Members
453,015
Latest member
ZochSteveo

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