IF Then TODAY's Date DD/MM/YYYY

shawnnewsome

New Member
Joined
Oct 5, 2022
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi there,
I'm wanting a formula where IF A1=Text, then return todays date but in a format as DD/MM/YYYY, IF A1 is blank, then return blank. Is this even possible? I'm trying to not have to format the column.
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Hi & welcome to MrExcel.
If you want the cell as a real date then you will need to format the cell.
 
Upvote 0
Which will not return today's date, just a text value.
 
Upvote 0
@shawnnewsome Do you mean if A1 is specifically text rather than a number or do you mean if A1 isn't blank? you have asked for both or do you actually mean you want both conditions?

As Fluff has stated the result will be text not a real date.
 
Last edited:
Upvote 0
we can use the formula =IF(A1="Text",TODAY(),IF(A1="","","Invalid")). This formula checks if the value in cell A1 is equal to "Text". If it is, the formula returns today's date using the TODAY function. If A1 is blank, the formula returns an empty string. If A1 contains a value other than "Text" or blank, the formula returns "Invalid".
 
Upvote 0
10-4. Thanks for the responses! I was hoping there was a way to adjust without formatting.. Back to the drawing board
 
Upvote 0
Glad we could help & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,215,824
Messages
6,127,077
Members
449,358
Latest member
Snowinx

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