+ Reply to Thread
Results 1 to 2 of 2

Using What if Analysis when one variable effects the other variable

  1. #1
    Registered User
    Join Date
    10-13-2014
    Location
    United States
    MS-Off Ver
    2007
    Posts
    1

    Using What if Analysis when one variable effects the other variable

    I am trying to use excel to calculate the maximum profit for movie tickets based on who i sell it to. The price is $5 for seniors and 10$ for everyone else. There is 200 seats available in the movie theater. So if i sell 50 tickets to seniors there is only 150 tickets available for everyone else. I am thinking to use a what if analysis so I put on column 200 down to 0 and on the row 0 to 200.

    profit = #seniors*5 + 10*#everyone else

    formula 0 1 2 3 4 5 6 7 8 9 10 ....200
    200
    199
    198
    197
    .
    .
    .
    .
    0

    I was wondering there is a better way to handle this type of problem.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Using What if Analysis when one variable effects the other variable

    It's typically easier to scroll up and down 200 rows than it is to scroll left/right. So a simple table would be:

    A1: $5
    B1: $10

    A2: "Seniors"
    B2: "Others"
    C2: "Sales"

    A3: 0
    B3: =200-A3
    C3: =SUMPRODUCT(A3:B3*$A$1:$B$1)

    Copy A3:C3 down 200 rows.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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. Fourier analysis with variable input
    By freirema in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-15-2013, 11:19 PM
  2. Replies: 4
    Last Post: 07-12-2013, 12:14 PM
  3. 2 Variable Impact Analysis
    By matt4003 in forum Excel General
    Replies: 0
    Last Post: 05-01-2011, 01:44 AM
  4. Replies: 2
    Last Post: 01-30-2011, 03:21 PM
  5. variable effects of dragging
    By Sebastian1942 in forum Excel General
    Replies: 9
    Last Post: 12-30-2009, 08:52 AM

Tags for this Thread

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