Empty Data Issue

ajc5382

New Member
Joined
Jun 25, 2012
Messages
41
I have a program written that pulls prices for the value of contracts Jan-Dec, each day of the year. ( Meaning theres a price today for contracts in jan, feb, mar....etc). My problem is how to bypass empty data, for say, christmas which will yield a row of 12 0's (ex. 1/25/2012 will have a 0 for jan, feb, mar.......bc the market is closed.)

What I need is a way to bypass this issue in doing my calculations. Will a do while loop using the "isempty" function work??
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Hello, maybe so:
Code:
Sub test()
    Dim i&
    For i = 1 To 10
        If Cells(i, 1).Value = 0 Then GoTo NxtI
        ' your code here
NxtI:
    Next i
End Sub
 
Upvote 0

Forum statistics

Threads
1,214,585
Messages
6,120,397
Members
448,957
Latest member
Hat4Life

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