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

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
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,224,800
Messages
6,181,046
Members
453,014
Latest member
Chris258

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