Solved

Offset column reference

Posted on 2013-05-24
5
270 Views
Last Modified: 2013-05-24
Is the 4 in the code below looking at a column?

If r(1, 1).Offset(0, 4) = 0
0
Comment
Question by:leezac
  • 4
5 Comments
 
LVL 43

Expert Comment

by:Saqib Husain, Syed
ID: 39195276
Yes
0
 
LVL 43

Expert Comment

by:Saqib Husain, Syed
ID: 39195279
It is the fourth column to the right of

r(1, 1)
0
 

Author Comment

by:leezac
ID: 39195286
So it is looking at column D?
0
 
LVL 43

Accepted Solution

by:
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

by:Saqib Husain, Syed
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Dealing with unintended Excel Active-X resizing quirks (VBA code simulates "self correction") David Miller (dlmille) Intro Not everyone is a fan of Active-X controls in spreadsheets (as opposed to the UserForm approach, the older Form controls …
INDEX and MATCH can be used to great effect to replace HLOOKUP and VLOOKUP as it does not have the limitation of needing the data to be sorted so that the reference value is in the first column or row. It also has the ability to perform a bi-directi…
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now