IF function in Excel refrencing data from another cell

Closed
carldavies75 Posts 1 Registration date Saturday November 24, 2018 Status Member Last seen November 24, 2018 - Updated on Nov 25, 2018 at 01:14 PM
TrowaD Posts 2921 Registration date Sunday September 12, 2010 Status Moderator Last seen December 27, 2022 - Dec 4, 2018 at 11:17 AM
I have a column which has names (these change on a daily basis). I have dates in another cell and I want a formula that says a3="IF the date in cell A2 is TODAY, return the text from A1". Does anyone know if this possible please?

1 response

TrowaD Posts 2921 Registration date Sunday September 12, 2010 Status Moderator Last seen December 27, 2022 552
Dec 4, 2018 at 11:17 AM
Hi Carl,

Since today's date keeps changing, using the TODAY() function won't work. So I have provided you with a macro code:
Sub RunMe()
If Range("A2").Value = Date Then Range("A3").Value = Range("A1").Value
End Sub


I'm sure this won't solve your query, so let us now how we can further assist you.

Best regards,
Trowa

0