I have a table with a column called Item Count that contains many values. I need to display every 18th value; i.e., I need to display F2, F20, F39, etc. on a new column under column K. How do I do this?
I have a table with a column called Item Count that contains many values. I need to display every 18th value; i.e., I need to display F2, F20, F39, etc. on a new column under column K. How do I do this?
Try:
=INDEX(F:F,18*(ROWS($A$1:A1)-1)+2)
Where there is a will there are many ways.
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Hi juliorevka,
Use following formula to pick up 18 value in column K from column F:-
Regards,Please Login or Register to view this content.
DILIPandey
<click on below 'star' if this helps>
DILIPandey, Excel rMVP
+919810929744 (India), +971528225509 (Dubai), [email protected]
Never mind I figured it out... Thanks!
If I enter new values into the Fth row, how do I make it automatically enter every 18th value into the Kth row?
Last edited by juliorevka; 02-14-2012 at 02:58 PM.
Just put the formula in one cell, then copy the formula down, by clicking and dragging the little black square at bottom right corner of the cell.
Can someone explain either the formula
"=OFFSET($F$1,18*ROW(F1)-18+1,0)"
or
"=INDEX(F:F,18*(ROWS($A$1:A1)-1)+2)"
to me, so I can apply it to different scenarios?
Last edited by juliorevka; 02-14-2012 at 03:22 PM.
Hi juliorevka,
Below is the explanation of the formula which I have suggested: "=OFFSET($F$1,18*ROW(F1)-18+1,0)"
It is offsetting (moving) F1, to "18*ROW(F1)-18+1" every time you drag the formula down and picking up the respective value from Column F1. Below is the explanation of this movement:-
1st drag:-
18*ROW(F1)-18+1
18*1-18+1
18-18+1
0+1
1
2nd drag:-
18*ROW(F2)-18+1
18*2-18+1
36-18+1
18+1
19
3rd drag:-
18*ROW(F3)-18+1
18*3-18+1
54-18+1
36+1
37
--
--
--
and so on...
so final results are 1, 19, 37 and each has a gap of 18
I hope this clears your confusion on this formula.
Regards,
DILIPandey
<click on below 'star' if this helps>
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks