How to return every Nth value in a column in Excel?
October 26, 2009 9:45 AM Subscribe
I am trying to pull values from one sheet into another master sheet for daily trending. The OFFSET function works for a single cell, but I can't figure out how to copy that formula to the rest of the column.
Here's an example.
The total sheet uses dates and revenue. The values come from second sheet, every 5th cell in column D, starting with D5.
Date Revenue
10/19/09 (Second Sheet, D5)
10/20/09 (Second Sheet, D10)
10/21/09 (Second Sheet, D15)
10/22/09 (Second Sheet, D20)
I literally have hundreds of these, so picking each value would be tedious and prone to error. Any help is appreciated.
posted by malcommc to work & money (13 answers total) 1 user marked this as a favorite
=INDEX(Sheet2!D:D,(A2-40104)*5,1) would go in B2
40104 in this case means 10/18/2009, and what you are doing is subtracting 10/18 from the date in A2 and multiplying the result by 5 to get your row reference.
posted by soelo at 10:09 AM on October 26, 2009