Formula Drag until next Date.

garypea123

Board Regular
Joined
Mar 16, 2020
Messages
221
Office Version
  1. 365
Platform
  1. Windows
Good Afternoon,

I am looking for a formula in B3 which will look at C3 and if its a date will put this date in Column B3. The formula will then copy this data until the next date in Column C and repeat the same logic.

I do not have XLSBB.

I have manually simulated in Column A how it should look.

TEST.PNG


Manual InputFormula
27/11/2022​
27/11/2022​
27/11/2022​
27/11/2022​
TEST1
27/11/2022​
TEST2
27/11/2022​
TEST3
27/11/2022​
TEST4
27/11/2022​
4555555​
27/11/2022​
555555​
27/11/2022​
28/11/2022​
28/11/2022​
28/11/2022​
28/11/2022​
TEST1
28/11/2022​
TEST2
28/11/2022​
TEST3
28/11/2022​
TEST4
28/11/2022​
4555555​
28/11/2022​
555555​
28/11/2022​
29/11/2022​
29/11/2022​
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
I don't love using the "CELL" function. But this works. Dates are just numbers to excel.

MrExcelPlayground14.xlsx
BC
211/27/202211/27/2022
311/27/2022
411/27/2022Test1
511/27/2022Test2
611/27/2022Test3
711/27/2022Test4
811/27/20224555555
911/27/2022555555
1011/27/2022
1111/28/202211/28/2022
1211/28/2022
1311/28/2022Test1
1411/28/2022Test2
1511/28/2022Test3
1611/28/2022Test4
1711/28/20224555555
1811/28/2022555555
1911/28/2022
2011/29/202211/29/2022
Sheet21
Cell Formulas
RangeFormula
B2:B20B2=IF(LEFT(CELL("format",C2),1)="D",C2,B1)
 
Upvote 0
Solution
Thats great - Works a dream!! - Thank you very much for you help...
 
Upvote 0

Forum statistics

Threads
1,215,327
Messages
6,124,289
Members
449,149
Latest member
mwdbActuary

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