INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

cells referencing

cells referencing

(OP)
Hi,

I want to create a column of cells like following:

=M2
=M7
=M12
.
.
.
=M252

As you can see each of these =M references to a cell which comes after 5 cells of the previous one.

How can I do that without entering all these =M.. one by one?

Many Thanks
Alaa

RE: cells referencing

2
There may be more elegant ways, but type this into your first cell and then copy it down:
=OFFSET($M$2, 5*(ROW(M2)-ROW($M$2)), 0, 1, 1)

=====================================
(2B)+(2B)' ?

RE: cells referencing

I don't have time to quickly type out anything correct, but look into the INDIRECT function. You can make cell references out of cell contents, literal strings, whatever.

Best to you,

Goober Dave

Haven't see the forum policies? Do so now: Forum Policies

RE: cells referencing

Offset as shown above works. You might be able to do similar thing as offset using the index function or the row function or maybe the address function.

Indirect would require you to populate additional cells with addresses (that will be accessed by indirect formula in another cell). Could accomplish the same thing but wouldn't be my personal choice.

=====================================
(2B)+(2B)' ?

RE: cells referencing

(OP)
@ electricpete

your formula worked well.

Many Thanks all
Alaa

RE: cells referencing

Offset and Index do similar things. Offset is a bit more flexible, but I tend to use Index, because that's what I grew up with.

Also I normally generate a column of index (or offset) numbers using a simple formula (=Cell above + 1), rather than using the Row function, just to keep things simple.

Just different ways of doing the same thing.

Doug Jenkins
Interactive Design Services
http://newtonexcelbach.wordpress.com/

RE: cells referencing

Thanks electricpete, that's a neat way. Where were you two months ago when I needed it?

Best to you,

Goober Dave

Haven't see the forum policies? Do so now: Forum Policies

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources


Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close