+ Reply to Thread
Results 1 to 7 of 7

New to excel, having trouble changing values based on an input cell

  1. #1
    Registered User
    Join Date
    09-14-2006
    Posts
    7

    New to excel, having trouble changing values based on an input cell

    I'll try to keep this example small so it's easier to understand.

    The spreadsheet has 2 "tables" (not really tables, but they are in their own area if you know what I mean).

    Table #1: (output)
    Cell A's value: 2
    Cell B's value: 3

    Table #2: (input)
    Cell A's value: 1.00

    Basically what I want to do is, when I change the 1.00 value in table 2, I want both cell A and cell B in the first table to update to the amount specified in table 2 as a decreased percent value.

    So, if I typed 0.95 into table 2, the results should be:

    Table #1: (output)
    Cell A's value: 1.9
    Cell B's value: 2.85

    The other piece of the question is, how can I revert the first table's values back to their "saved" state if I change table 2's value back to 1.00? As in, cell A would change back to 2 and cell B would be 3, if I entered 1.00 into the second table's cell.

    Thanks. Also keep in mind, I am a newbie to excel. The spreadsheet I'm working on now has about 150 different cells that need to be updated based on 1 value, so if there's an easy way to drag/drop the cells I want modified into a function, please share.
    Last edited by MyUserName; 09-14-2006 at 02:39 PM.

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,373
    The most obvious answer I see (in kind of pseudo code):

    Table 1
    Cell A =2*$Table2$CellA
    Cell B =3*$Table2$CellA

    Now put in Table 2 whatever fraction you want Table 1 multiplied by (1.0 if you want the original 2 and 3 to display).

    Does that do the job, or is there more to the problem?

  3. #3
    Registered User
    Join Date
    09-14-2006
    Posts
    7
    I'm still confused.

    Confused Question #1)
    After selecting all the cells I wanted to be modified how do I set it to take the original table 1's cell values and multiply it by table 2's modifier?

    The numbers in the cells will be unknown until I fill them out. So I can't simply type "Cell A = 2*...".

    Confused Question #2)
    Will excel keep track of the unmodified cell value before I multiply it? For example, if I change 2 to 1.9, if I typed 1.00 into table 2, technically 1.9 does equal 1.9*1.00. How does it know that the original value was 2?

    I appreciate the reply but pseudo code does not really help my situation. I understand the logic but not the excel syntax or even how excel really operates. Someone will have to hold my hand, step by step if it's not too much trouble. :D

    Edit:

    Ok, making some progress. I went to a specific cell, and put in...

    =PRODUCT(L11,AT27)

    That did the trick for 1 cell (excel did magically put it back to its original value too, when I put 1.00).
    Now how does one perform the same operation on multiple cells, without having to type out 5 billion different cell locations heh?

    Also it's spitting out some circular reference errors, hmm. Maybe I don't fully understand what's going on?
    Last edited by MyUserName; 09-14-2006 at 07:11 PM.

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,373
    If this were my spreadsheet, with no constraints on layout, I would lay it out like this:

    A1 would be the text label "multiplier=". B1 would be where I would enter the multiplier (start with 1.0 initially).
    A2 would be text label "original value". A3 through Axx would be the original values (2 and 3 in your sample case).
    B2 would be text label "result". In B3 enter the formula =A3*$B$2 (equivalent to =PRODUCT(A3,$B$2). The "$" mean a fixed reference when copied. Now copy B3 down column B as far as needed.

    You'll have to adapt your cell references as needed, because I don't know exactly how you're laid out.

  5. #5
    Registered User
    Join Date
    09-14-2006
    Posts
    7
    Ah, yeah I suppose that would work (would fix that circular ref error). Problem is I am somewhat limited in the layout.

    Try to imagine this setup:

    A spreadsheet with...
    12 columns
    20 rows

    Each cell in that 12x20 table has a value. The numbers range anywhere from 5 to 300.

    Now I have a seperate 1x2 table for the multipler. I'm trying to get it so when I modify the multipler it changes the values in each cell of the 12x20 table. If I change it from 1.0 to 0.8 it would decrease each value in that 12x20 table by 20%.

    Then if I changed it to 0.5 it would change the -original- value of that cell by 50% (not 50% of the 20% reduced value). Then if I put in 1.0, it would return it to their default unmodified values, etc..

    There's 6 of those 12x20 tables, which would all be controlled by that single multipler. That's why I also wanted to know of a method where I could just apply 1 single formula to an infinite amount of cells (maybe some form of drag/drop formula menu I missed?).

  6. #6
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,373
    " I am somewhat limited in the layout." Meaning you have to use a rectangular layout like you describe rather than a straight column, or are there even more stringent requirements?

    If the difficulty is just working with the rectangular area rather than a straight column, I would still do the same kind of approach:

    A1, B1, and A2 would be the same as above.
    A3:L23 would hold the original values
    A32: "results"
    A33 =a3*$B$1 copied through L53.

    If you don't like having both tables together like that, it would be easy enough to move the table containing the original values to some out of the way place in the spreadsheet (maybe even hide it if you want, so it isn't visible).

  7. #7
    Registered User
    Join Date
    09-14-2006
    Posts
    7
    The problem was the size of the sheet in general. If I had (6) 12x20 tables, then cloned them (to show the results) it wouldn't all fit.

    That is why I wanted to show the multiplied numbers in the same table as the original values (it wasn't necessary to view both at once -- the only requirement was that I could return back to the original values when setting the multipler to 1).

    I ended up just seperating them and all is well.

    Wasn't bad but the end result looks sloppy (wasted space for no reason).

+ 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