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

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.
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

Forum statistics

Threads
1,223,670
Messages
6,173,724
Members
452,529
Latest member
jpaxonreyes

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