Solved

Offset column reference

Posted on 2013-05-24
5
278 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

733 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