+ Reply to Thread
Results 1 to 6 of 6

scenario testing and stepped table

  1. #1
    Registered User
    Join Date
    01-22-2014
    Location
    Compton, whup whup
    MS-Off Ver
    Excel 2010
    Posts
    108

    scenario testing and stepped table

    Hello. I need some help with scenario testing and coming up with a simple "multiply by" that I can drag across a table. Spreadsheet attached. Thanks.
    Attached Files Attached Files

  2. #2
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: scenario testing and stepped table

    excel.xlsx

    don't know if this could work.
    have to go will look at this tommorow.

    the formula is array (ctrl+shift+enter)
    i based my formula on the output you gave and not tested for other instances of those 1's.
    like
    1 1 1 1 space space 1 1 1
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  3. #3
    Registered User
    Join Date
    01-22-2014
    Location
    Compton, whup whup
    MS-Off Ver
    Excel 2010
    Posts
    108

    Re: scenario testing and stepped table

    @vlady. It seems like it worked but could you explain each part of the formula, particularly the Match part. And why is it an array? I never understand arrays

  4. #4
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: scenario testing and stepped table

    The problem that i saw is how to move the column-index-numberof the vlookup so i came up with the array formula
    =VLOOKUP($J$2,$B$9:$H$10,MATCH(TRUE,LEN(C2:$I2)<>0,0)+SUM($B2:C2),FALSE)*C2

    MATCH(TRUE,LEN(C2:$I2)<>0,0) is really the array part(return arrays of {1,1,1,1,1,0}... it find the first value(not blank) in the range C2:$I2.. returning 1 the formula is adjusted when drag from
    LEN(C2:$I2) to LEN(D2:$I2)
    then we have the +SUM($B2:C2) add the numeric figures so in this part we received again another 1
    so

    1+1 =2 as our Column-Index-Number....

  5. #5
    Forum Contributor
    Join Date
    01-30-2011
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2010
    Posts
    604

    Re: scenario testing and stepped table

    Try a combo box
    Attached Files Attached Files
    Last edited by Xx7; 01-23-2014 at 11:31 PM.

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: scenario testing and stepped table

    with functions maybe like this
    Attached Files Attached Files
    Last edited by martindwilson; 01-24-2014 at 12:05 AM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Scenario Manager displays same result for every scenario
    By terihoff in forum Excel - New Users/Basics
    Replies: 0
    Last Post: 11-10-2012, 07:14 PM
  2. [SOLVED] About Data Table & Scenario Manager.
    By JOBY JOHN NEERIYANKAL in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-19-2006, 10:35 AM
  3. [SOLVED] Excel 2k Pivot Table refresh scenario
    By GDCross in forum Excel General
    Replies: 1
    Last Post: 06-01-2006, 04:20 PM
  4. [SOLVED] Refresh scenario information in a pivot table
    By Fin Analyst in forum Excel General
    Replies: 2
    Last Post: 03-30-2006, 12:20 PM

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