Experts Required..

VBABEGINER

Well-known Member
Joined
Jun 15, 2011
Messages
1,284
Office Version
  1. 365
Platform
  1. Windows
Hi,

Another query on the same topic.

yesterday, Villy gives me an excellent solution, following -
If Range("A10").Value <> "" Then
Range("B13").Select
ActiveCell.FormulaR1C1 = "=RIGHT(R[-3]C[-1],11)"
End If
For i = 13 To Range("A" & Rows.Count).End(xlUp).Row
If Range("B13") <> Empty Then
Range("B" & i).Value = Range("B13")
End If
Next

This is for counting the total no. in Col A and by reading this no. count and data paste in col B.

The Problem is - let me example u, oderwis u will not get this -

A B
123 123
879 123
417 123 This is one data.

Stop here.......now the below data read "521" this value to their respective rows. Above is "123".

521 521
897 897
321 321 and this is another data.

Hereabove code read all content of Col A. Wht i require, if any space, stop the reading below data and paste only that much data to col b 14, 15,16... from cell b13.


Is this possible Experts?
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"

Forum statistics

Threads
1,224,518
Messages
6,179,256
Members
452,901
Latest member
LisaGo

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