Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm using the following statement:
For Each Cell In Range("D3:J23") I want the range in the For Next statement to move 8 colums to th right and run again. Same row numbers. I need this to happen 20 times. Then I want to increase each If Range value by 1 each time it loops Same column numbers. This is also 20 times.To avoid writing out lik this: If Range("I29").Value = Range("I26") And Cell.Value "" An Cells(Cell.Row, "AO") = "x" Then _ Cell.Value = Range("AO1") If Range("I30").Value = Range("I27") And Cell.Value "" An Cells(Cell.Row, "AO") = "x" Then _ Cell.Value = Range("AO1") If Range("H29").Value = Range("H26") And Cell.Value "" An Cells(Cell.Row, "AN") = "x" Then _ Cell.Value = Range("AN1") If Range("H30").Value = Range("H27") And Cell.Value "" An Cells(Cell.Row, "AN") = "x" Then _ Cell.Value = Range("AN1") etc. Thanks Ji -- Message posted from http://www.ExcelForum.com |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Averaging times that are not in a range | Excel Worksheet Functions | |||
change range for multiple charts | Charts and Charting in Excel | |||
Plotting multiple times against one date succesively for multiple | Charts and Charting in Excel | |||
how many times a specific value is in a range...? | Excel Worksheet Functions | |||
Count how many times a certain value is in a certain range | Excel Discussion (Misc queries) |