+ Reply to Thread
Results 1 to 9 of 9

Placing results of a calculation a given number of columns to the right

  1. #1
    Registered User
    Join Date
    01-08-2009
    Location
    Northbrook, IL
    MS-Off Ver
    Excel 2000
    Posts
    5

    Placing results of a calculation a given number of columns to the right

    I want o add values in two cells and place that value in a cell offset by a value that I specify in a third cell. Is there a way to do this in Excel2000 ? Thanks.
    Last edited by Baxterman; 01-09-2009 at 02:22 PM.

  2. #2
    Forum Contributor mewingkitty's Avatar
    Join Date
    09-29-2008
    Location
    Fort McMurray, Alberta, Canada
    MS-Off Ver
    Excel 2003
    Posts
    949

    Yes, but...

    Depends on how you intend on defining how many cells over it will be.
    An example workbook would be handy
    =IF(AND(OR(BLONDE,BRUNETTE,REDHEAD),OR(MY PLACE,HER PLACE),ME),BOW-CHICKA-BOW-WOW,ANOTHER NIGHT ON THE INTERNET)

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    Welcome to the forum.

    If I follow your question, no.

    Formulas return values to the cells in which they appear; you can't create 'pointers' to the cell that is to receive the result. You may be able to get the behavior you want, but not in the way you're thinking of it. As MK suggests, post a workbook and explain in context.
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Registered User
    Join Date
    01-08-2009
    Location
    Northbrook, IL
    MS-Off Ver
    Excel 2000
    Posts
    5

    Placing reults of a calculation offset by a given number of columns

    I am attaching a spreadsheet example of what I am trying to do.
    In cell D4, I have beginning capacity in a year. In cell D6, I show what capacity I decide to add in the beginning of that year. In this case, I decided to add 2 units. But the addition has a lead time. It takes 3 years in this example - shown in cell C12. So, though I decided to add the capacity in Year 1, it does not become available until Year 4. In that year, capacity changes from 5 to 7. And so on.
    The spreadsheet shows this, but the formulas are hard-wired for a 3 year lead time. If I now want to see what happens if this changes to 2 years or 4 years, I need to go change all the formulas.

    What I am trying to do is find a way where when I change the value in the cell for lead time, the calculations get changed automatically to reflect the new lead time offset - e.g., if I change it to 1 year, the data will automatically update so the new capacity available at the end of Year 1 is 2 and therefore Beg capacity for Year 2 changes to 7.
    Thanks for taking the trouble to help out.
    Attached Files Attached Files

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    In D8 and copy right, =OFFSET(D8, -2, -MIN(COLUMNS($C8:D8), 3) )

    This says get the value of the cell that is two rows above and 3 columns to the left, clamped to be not further left than column C.
    Last edited by shg; 01-08-2009 at 08:33 PM.

  6. #6
    Registered User
    Join Date
    01-08-2009
    Location
    Northbrook, IL
    MS-Off Ver
    Excel 2000
    Posts
    5
    Thanks for the suggestion. I tried it, but maybe I am not being clear in what I need.
    As you said, the formulas pick up the value two rows above and 3 columns to the left. That works when the lead time offset is 3. But if I now want to see what happens if the lead time changes to 2, I need to change the formulas in row 8. I was looking for a way where the # columns to be offset is is based on the value in cell D12. Is there any way to do this in the formulas in row 8 ? Instead of picking a constant value (3 in the expample we are using so far), can I reference the value in cell C12 ? I just tried replacing the "3" in the formula by "C12" but that does not work. If I could find a way to do this, then changing the lead time in C12 will automatically adjust all the values in row 8 - that is the result I am looking for. Thanks again.

  7. #7
    Registered User
    Join Date
    01-08-2009
    Location
    Northbrook, IL
    MS-Off Ver
    Excel 2000
    Posts
    5
    Sorry, I mistyped above - the cell I want to use as reference for the offset is C12 - I mistakenly typed D12 in the middle of the message above. Sorry .

  8. #8
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    =OFFSET(D8, -2, -MIN(COLUMNS($C8:D8), $C$12) ) should work fine. If it doesn't, post a workbook that shows it doesn't.

  9. #9
    Registered User
    Join Date
    01-08-2009
    Location
    Northbrook, IL
    MS-Off Ver
    Excel 2000
    Posts
    5
    That works. Thanks. I will mark this solved.

+ 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