To get to a intermittent last cell of a column

tvsramesha

New Member
Joined
Aug 12, 2016
Messages
13
HI Everybody -

Pl guide me to find intermittent last empty cell of a column, in column B need to find last intermittent cells ex:B234, B445,B561 ......

Below is the example of data.

Thanks in advance,

Best,

Ramesha

Sensor-óSensor-3249.81
Sensor-2950.05
Sensor-19Sensor-2050.28
Sensor-26Sensor-2950.54
Sensor-24Sensor-2950.78
Sensor-26Sensor-3251.01
Sensor-29Sensor-2951.27
Sensor-20Sensor-2651.53
Sensor-20Sensor-2351.53
Sensor-24Sensor-2951.53
Sensor-32Sensor-2951.53
Sensor-26Sensor-2651.53
Sensor-26Sensor-1851.53
Sensor-17Sensor-2351.53
Sensor-26Sensor-1851.53
NEW-ROLLNEW-ROLL

<colgroup><col><col></colgroup><tbody>
</tbody>


<colgroup><col><col></colgroup><tbody>
</tbody>
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Try this:
Code:
Sub My_First_Empty_Cell()
'Modified  8/12/2018  12:56:00 AM  EDT
Dim FirstEmptycell As Long
FirstEmptycell = Worksheets("Sheet1").Range("B1").End(xlDown).Row + 1
MsgBox FirstEmptycell
End Sub
 
Upvote 0
Thanks, it helped in beginning, now if I, need to continue looking for intermittent last cell further down from first empty cell from your code, how I, extend the loop?
 
Upvote 0
So where do you want the results entered.
And how many times do we keep doing this the column has 1.5 million rows

What are you trying to do as a end result?
 
Upvote 0
So where do you want the results entered.
And how many times do we keep doing this the column has 1.5 million rows

What are you trying to do as a end result?

_ Basically I'm logging data from sensors, in column B whenever one set of data ends, then again fresh set of data is logged onto the same column after few cells in that column and this repeats for about 200 sets in a day, I, need to bring the last cell value of each set of data, in the following example 51.33 is the last cell where the data is logged and next a new roll starts - new set of data

Sensor-25Sensor-2948.48
Sensor-30Sensor-2548.72
Sensor-17Sensor-0748.98
Sensor-32Sensor-1249.24
Sensor-06Sensor-0650.07
Sensor-óSensor-3249.81
Sensor-2950.05
Sensor-19Sensor-2050.28
Sensor-26Sensor-2950.54
Sensor-24Sensor-2950.78
Sensor-26Sensor-3251.01
Sensor-29Sensor-2951.27
Sensor-20Sensor-2651.53
Sensor-20Sensor-2351.53
Sensor-24Sensor-2951.53
Sensor-32Sensor-2951.53
Sensor-26Sensor-2651.53
Sensor-26Sensor-18
51.53

<tbody>
</tbody>
Sensor-17Sensor-2351.53
Sensor-26Sensor-1851.53
clip_image002.png
NEW-ROLLNEW-ROLL
SHADE-PASSSensor-17

<colgroup><col><col><col></colgroup><tbody>
</tbody>
 
Upvote 0
Typically when people log data into a worksheet they do not skip rows.

So from what I understand you will be entering data into columns A and B

So why are some rows in column B empty

So from what I understand first time you log in data you may skip over a cell B14 and B 28
But next time you enter data you want to fill in those empty cells with data.


Normally people would input data into cells B1 to B40
And next time enter data into cells B41 to B87

You asked for first empty cell in column B as most times people want to know what is the last row with data in column B

Show me the script you are now using to enter the data.

Or help me understand better.
Sorry if I'm a little slow at understanding.
 
Upvote 0
that's very educative suggestion from you, we are getting data from microcontroller to excel, appreciate your idea of moving fresh data into a new column, rather than continuing in the same column, that works for me, wondering how I, do that!
 
Upvote 0
that's very educative suggestion from you, we are getting data from microcontroller to excel, appreciate your idea of moving fresh data into a new column, rather than continuing in the same column, that works for me, wondering how I, do that!

This is beyond my knowledgebase.
I will continue to monitor this thread to see what I can learn.
 
Upvote 0

Forum statistics

Threads
1,214,919
Messages
6,122,260
Members
449,075
Latest member
staticfluids

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