Removing 28/01/1900 from empty cells

kralin

New Member
Joined
Dec 8, 2023
Messages
8
Office Version
  1. 2019
Platform
  1. Windows
Hello

In column A I input a date

In column B there is a text column where users select from a dropdown either 'Priority' or 'Normal'

In column C there is a formula: =IF(B2 = "Priority", A2 + 5, A2 +28)

Column C is formatted as a date.

I have copied the formula input in column C down the column. This has led to the date 28/01/1900 appearing where Column A and column B have no values input.

Please can you let me know if I can tweak the formula above so instead of displaying '28/01/1900' when nothing has been input into corresponding A and B cells it displays " - " instead? I suspect a nested IF statement may do this but have been trying and failing to work it out.

I am using Professional 2019.


With many thanks
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
try:
Excel Formula:
=if(or(B2="",A2=""),"-",IF(B2 = "Priority", A2 + 5, A2 +28))
 
Upvote 0
Solution
worked a treat. many thanks for taking the time to get back to me.

The marked solution has been changed accordingly. In your future questions, please mark the post as the solution that actually answered your question, instead of your feedback message as it will help future readers. No further action is required for this thread.
 
Upvote 0

Forum statistics

Threads
1,223,778
Messages
6,174,482
Members
452,566
Latest member
Bonnie_bb

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