Formula to copy data from above row to only one cell below

RAJESH1960

Banned for repeated rules violations
Joined
Mar 26, 2020
Messages
2,313
Office Version
  1. 2019
Platform
  1. Windows
Hello experts
I am trying to copy the number and date of a particular row where there is data and paste it below that row. If i use control D all the empty rows are filled which I don't want. I want in only one row below the row where there is data. I could use control D and copy the above data but as the data is very huge a formula would be easier.

Book1
DEF
1LineNumberDate
2141910-10-2020
32
43
54
65
76
87
98
109
11100228/20-2126-08-2020
1211
1312KR-POS-230229-10-2020
1413
1514
1615
1716KR-POS-171819-09-2020
1817
1918
20191031/20-2109-11-2020
2120
2221
2322
2423
2524
2625
2726
2827
2928
3029
3130
3231HS/20-21/81718-03-2021
3332
3433
3534
3635
3736
3837
3938
403950906-11-2020
4140
4241
4342
4443KR-POS-171919-09-2020
4544
4645
4746
4847
4948KA-2499-20-2125-09-2020
5049
5150
5251224311-12-2020
5352
5453
5554
56550830/20-2128-10-2020
5756
5857
5958
6059270105-01-2021
6160
6261
6362
6463HS/20-21/36914-10-2020
6564
6665
6766
6867
6968
7069KA-6295-20-2102-01-2021
7170
7271221409-12-2020
7372
7473
7574
7675
7776298922-01-2021
7877
7978KR-POS-356416-01-2021
8079
81802560/20-2113-03-2021
8281
8382HS/20-21/66920-01-2021
8483
8584
8685
8786
8887
8988
90890641/20-2113-10-2020
9190
9291
9392
9493
9594
9695
9796
9897
9998
10099
101100
1021011477/20-2121-12-2020
103102
1041030227/20-2125-08-2020
105104
106105KR-POS-450816-03-2021
107106
108107HS/20-21/19518-08-2020
109108
110109
111110
112111
113112
114113KR-POS-121013-08-2020
115114
116115
117116
118117672625-12-2020
119118
120119KR-POS-146302-09-2020
121120
122121
123122219808-12-2020
124123
125124
126125KA-5451-20-2114-12-2020
127126
128127KR-POS-133024-08-2020
129128
130129
131130
1321311178/20-2124-11-2020
133132
134133KA-8889-20-2127-02-2021
135134
136135
13713628222-08-2020
138137
13913800072425-09-2020
140139
141140
142141
143142KA-7408-20-2126-01-2021
144143
145144
146145
147146
148147351222-02-2021
149148
150149KR-POS-256717-11-2020
151150
152151
15315254727-10-2020
154153
155154310129-01-2021
156155
157156KR-POS-131421-08-2020
158157
15915826118-08-2020
160159
161160
162161
163162
164163
165164
166165
167166
168167
169168
1701690997/20-2106-11-2020
171170
172171
173172
174173289116-01-2021
175174
176175210901-12-2020
177176
Sheet1
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Are you looking for a macro, or a way to insert a formula into all the blank cells?
 
Upvote 0
Are you looking for a macro, or a way to insert a formula into all the blank cells?
A formula would be preferable. If not code will be the last option if there is no other alternative. I tried using control G but it fills all the empty cells with the above value
 
Upvote 0
In that case select E:F F5, special, blanks, with all blank cells selected type =IF( up arrow once = up arrow twice "", up arrow once ) then ctrl enter
If done correctly with the data you posted you should get a formula like
Excel Formula:
=IF(E2=E1,"",E2)
in E3
 
Upvote 0
Solution
A formula would be preferable. If not code will be the last option if there is no other alternative.

In that case select E:F F5, special, blanks, with all blank cells selected type =IF( up arrow once = up arrow twice "", up arrow once ) then ctrl enter
If done correctly with the data you posted you should get a formula like
Excel Formula:
=IF(E2=E1,"",E2)
in E3
Phew!! Finally got it right. Thanks once again Fluff.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,641
Messages
6,125,983
Members
449,276
Latest member
surendra75

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