Logic test - can i add date for a true result?

melmason

New Member
Joined
Oct 13, 2017
Messages
4
Working on a table where i have a cell that eventually will have "yes" entered in it. once Yes has been entered a date is then entered. Can i use a logic test where when "yes" is true it inserts the date?

this is what i have now ...

=IF(V17="yes","d/mm/yyyy","")


but d/mm/yyyy is what comes out not the actual date?
Can this be done or am i dreaming?
 

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.
Working on a table where i have a cell that eventually will have "yes" entered in it. once Yes has been entered a date is then entered. Can i use a logic test where when "yes" is true it inserts the date?

this is what i have now ...

=IF(V17="yes","d/mm/yyyy","")

but d/mm/yyyy is what comes out not the actual date?
Can this be done or am i dreaming?
It depends on what date you mean. If the date is typed manually into a cell, then yes, you could do this (assuming the date was typed into cell X1)...

=IF(V17="yes",TEXT(X1,"d/mm/yyyy","")

However, if the date comes from one of the DATE functions, you can still do the above, for example...

=IF(V17="yes",TEXT(NOW(),"d/mm/yyyy","")

but the date will change every day when the sheet is recalculated.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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