Reputation: 673
i need a formula to reference 3 different rows, depending on which column i paste into. What i know is the width is constant, 34 columns across
i want to paste into columns A1, L1, W1 I want to retrieve the values for cells, AK1,AK2,AK3
im using this at the moment to grab parts of the text in that cell. eg
="<tag" &MID($AK3,FIND(" ",$AK3),FIND(" ",$AK3,FIND("1",$AK3))-FIND(" ",$AK3))&" endtext>"
my idea was when i paste into column 22 i need something to return the number 2, pass that to an offset formula on AK1, as this is 2 thirds the way across, then i can reference 2 rows down from AK1 and get the value.
Hope that makes sense.
Here is an example. Cells A1 C1 E1 are retrieved from the H column
Upvotes: 0
Views: 93
Reputation: 3257
Presume you have named the three values sitting in Column AK as Rng_AK,
when you paste this formula =INDEX(Rng_AK,ROUNDUP(COLUMN()/34*ROWS(Rng_AK),0))
I am using your logic of locating the value in Column AK by the relative position of the column in the 34-Columns range.
See below screen-shot for more clarifications. Cheers :)
Upvotes: 1