+ Reply to Thread
Results 1 to 4 of 4

Return cell value based on position of another cell

  1. #1
    Registered User
    Join Date
    07-09-2013
    Location
    Oshawa, Canada
    MS-Off Ver
    Excel 2010
    Posts
    29

    Return cell value based on position of another cell

    Hello all, I have non-adjacent data I wish to make a line graph from (see below). The raw data is not in normal from to be visually appealing - so I attempted to turn the data into a more graphable form in another location in the worksheet. So column K lists the dates in order with a simple 'add 1 to the previous cell' formula with K1 as =A3 and K2 as K1+1. However, I want an easy way of pulling the variable data from A6 to L1, A18 to L2, A30 to L3 and so on. I can't find a function to pull this off without having to do it manually. It's been 3 years since I used Excel professionally and I apologize if this is a no brainer. Thanks

    ie
    A2 - Date
    A3 - July 9

    A5 - Sales
    A6 - 123

    A14 - Date (always 12 cells from previous, in this case - from A2)
    A15 - July 10 (same 12 cells from previous...

    A17 - Sales (12 from previous...
    A18 - 234 (and so on...)

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Return cell value based on position of another cell

    one way
    put into L1 and fill down
    =INDIRECT("A"&6+(12*(ROW(M1)-1)))

    another
    put into column M (any not used column will do)
    m1 =A6
    m2 = a18
    m3 = a30
    fill down series
    then indirect(m1)
    Last edited by humdingaling; 07-10-2013 at 01:09 AM.
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    07-09-2013
    Location
    Oshawa, Canada
    MS-Off Ver
    Excel 2010
    Posts
    29

    Re: Return cell value based on position of another cell

    Brilliant! The equation works. I'll have to break it down to see why it works now.

    Thank you hum.

  4. #4
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Return cell value based on position of another cell

    A = A

    6 is your starting cell
    12 is the multipler
    row section is the mutliple
    Row (m1) = 1 filling down will increment this number
    (1-1) x 12 = 0
    (2-1) x 12 = 12
    etc

    rest is self explainatory

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1