Solved

# Offset column reference

Posted on 2013-05-24
281 Views
Is the 4 in the code below looking at a column?

If r(1, 1).Offset(0, 4) = 0
0
Question by:leezac
[X]
###### Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

• Help others & share knowledge
• Earn cash & points
• 4

LVL 43

Expert Comment

ID: 39195276
Yes
0

LVL 43

Expert Comment

ID: 39195279
It is the fourth column to the right of

r(1, 1)
0

Author Comment

ID: 39195286
So it is looking at column D?
0

LVL 43

Accepted Solution

Saqib Husain, Syed earned 190 total points
ID: 39195288
It is the fourth column to the right of

r(1, 1)

if r(1, 1) is one cell the offset will return the fourth cell to the right of r(1, 1)

if r(1, 1) is more than one cell the offset will return the same size four cells to the right of the first cell in r(1, 1).
0

LVL 43

Expert Comment

ID: 39195296
If the r(1,1) is in column A then the result will be in column E (four cells to the right)
0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…
###### Suggested Courses
Course of the Month5 days, 10 hours left to enroll