Find and replace the null

Michnia25

New Member
Joined
May 31, 2015
Messages
38
Hi, I need help with my data and I will be appreciated for some support.
I imported data from CSV file and I faced the issue with the core date due to transformation.
On the core file data provide the product and the summary of the components used to produce the product. On the bottom of the summary data provided the date and time when the product was produced.
After importing the data to power query date and time are stored on the separate column as per picture below. My problem is that I need to populate that date and time on the every each record, basically replace the null with the nearest date or time from the below. Is there any way to achieve that?
PQ.PNG
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
In your sample data there is only one data value. So the first 2 nulls should be 21/03/2022 but IF the date on line 11 was 21/04/2022 then the nulls from lines 4 through 10 should be 21/04/2022, not 21/03/2020? I can only foresee a vba code solution, regardless (or maybe a range formula and I know very little about those).

Is it most likely that when there is a date, it will be the same date anywhere in that column? That would simplify the solution.
 
Upvote 0
In power query use the Fill Up functionality. Highlight the column, right click-->Fill-->Up.

 
Upvote 0
Solution

Forum statistics

Threads
1,225,465
Messages
6,185,141
Members
453,279
Latest member
MelissaOsborne

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