+ Reply to Thread
Results 1 to 6 of 6

Formula returning the value of the cell below a reference cell

  1. #1
    Registered User
    Join Date
    05-07-2012
    Location
    Chicago
    MS-Off Ver
    Excel 2003
    Posts
    4

    Formula returning the value of the cell below a reference cell

    In the first tab of a worksheet, I have the weeks and the corresponding month in columns:

    Week # Month # days
    1 Jan 5
    2 Jan 5
    3 Jan 5
    4 Jan 5
    5(1) Jan 2
    5(2) Feb 3
    6 Feb 5
    7 Feb 5
    8 Feb 5
    9(1) Feb 3
    9(2) Mar 2
    10 Mar 5
    11 Mar 5
    12 Mar 5
    13 Mar 5
    14 Apr 5
    15 Apr 5
    16 Apr 5
    17 Apr 5
    18(1) Apr 1
    18(2) May 4
    19 May 5
    20 May 5
    21 May 5

    In a second tab, I have a profitability analysis by week:

    Week 6 7 8 9 10 11 12

    Revenue - - - - - - -
    Costs - - - - - - -
    Margin - - - - - - -

    Projects can start at any point, so the first week (6 in the example above) is not always the same.
    I want the model to automatically populate the cells to the right of the starting week based on the calendar above. So the last week of Feb should be 9(1) and the first week of march 9(2). What formula can I use?

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Formula returning the value of the cell below a reference cell

    Hi jcourati,

    Not sure.. but you can use lookup function (index - match, vlookup)...but it would be good if you could upload a sample workbook. thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), dilipandey@gmail.com

  3. #3
    Registered User
    Join Date
    05-07-2012
    Location
    Chicago
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Formula returning the value of the cell below a reference cell

    Sample file attached.
    Attached Files Attached Files

  4. #4
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Formula returning the value of the cell below a reference cell

    Okay.. if I select 6 in B7 on Profitability sheet, what result you want to see on grey cells (C7:h7)... ?

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

  5. #5
    Registered User
    Join Date
    05-07-2012
    Location
    Chicago
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Formula returning the value of the cell below a reference cell

    Then I would need to see 7, 8, 9(1), 9(2), 10, 11
    (sequence as per the calendar)

    Thanks!

  6. #6
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Formula returning the value of the cell below a reference cell

    Ok jcourati,

    You can use following formula in that case:-

    =OFFSET(Calendar!$A$7,MATCH($B$7,calendar,0)+1+COLUMN(A1)-1,0)

    and drag it to right side. thanks.
    Sample(11).xls

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

+ 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