MACRO : to identify a cell value, if text, scroll down, if empty, move to next column

JackMiracle

New Member
Joined
Mar 23, 2010
Messages
1
Hi,

I'm lost on how to approach this problem.

1) Identify if there is an R or a Shift time (if R move on to next day), else
2) if Shift Time is identified (19-07, 11-23, 07-19) look in current column
to see if there are any values
3) store any column values in a variable (array?)
4) after the 6 rows, move on to the next column (day), until end of month

(I couldn't install the code-maker at work, so that's why i posted an image)

20i78jr.jpg


Code:
dim a, x, y as Long
x = 3
y = 5

For a = 1 To lastRow
If Cells(x, y).Value = "19-07" Or Cells(x, y).Value = "07-19" Or Cells(x, y).Value = "11-23" Then
       'move down the colum to check
       'check if next cell is blank
        Cells(x, y + 1).Value = nextValue
        if nextValue = isText(x,y+1) (ehh i know this line is wrong)
       Else
        y = y + 3
        
    End If
    Next a
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.

Forum statistics

Threads
1,224,552
Messages
6,179,484
Members
452,917
Latest member
MrsMSalt

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