Forum

Replace blank into ...
 
Notifications
Clear all

Replace blank into date Today

3 Posts
2 Users
0 Reactions
993 Views
(@34to35)
Posts: 7
Active Member
Topic starter
 

Hi, All

 

I would like to seek help on how can I manage this scenario. In the attached file, I have column A "Date Creation". Some of those rows do not have any dates. For those without dates, the return would be the date today *excel function TODAY()*.

Not really sure if this is doable in power query.

I hope that someone can help me out on this.

 

Thank you!

 
Posted : 31/05/2021 6:18 am
(@mynda)
Posts: 4761
Member Admin
 

Hi Gli,

No file attached. You need to click the 'start upload' button after selecting your file.

Anyhow, you can use the following formula to insert the current date into the query:

=Date.From(DateTime.LocalNow()) 

 

If you want to only populate this in cells that don't have a date you could use something like this via Add Custom Column:

= if [Date Creation] = null then Date.From(DateTime.LocalNow()) else [Date Creation]

 

Mynda

 
Posted : 31/05/2021 7:05 pm
(@34to35)
Posts: 7
Active Member
Topic starter
 

Hi Mynda,

 

I'm sorry I was not able to attached the file. But thank you so much! It did work. 🙂

 
Posted : 04/06/2021 2:44 am
Share: