QUOTE(Porcharu @ Apr 18 2006, 10:19 PM)
I need to something really simple - but I can't figure out how to do it.
I want to use the autofill feature to increment a cell value by 2 like this
=Sheet2!C1
=Sheet2!C3
=Sheet2!C5
=Sheet2!C7
etc.
I need to use the autofill or something automatic or programmed becuase I need to do it for about 1000 cells several times. I have tried everything I can think of. I can probably use VB to program something up but I haven't done any programing for years and I really suck at it anyway.
Thanks
What you need to do can easily be done with the INDEX function, but it is going to require that you set the increment separately.
Here is how I would do it. Let's assume the range of information that you want to reference is contained in Sheet2!$A$1:$A$50. It would be easiest to NAME that range, but we'll leave that for another lesson.
Now, there are two things you need to do. First, I put this formula in cell A1 of my current sheet and then filled it down.
=INDEX(Sheet2!$A$1:$A$50,B1)
In column B of that sheet, I filled in the following values:
1
3
5
7
9
11
13
15
17
19
21
etc.
The formula increments only to odd numbers based upon the information in Column B. This then looks up the value of that row in the range on Sheet2.
I can put this together in a couple of minutes for you. Let me know.