+ Reply to Thread
Results 1 to 7 of 7

shortcut for changing value in formula

  1. #1
    Registered User
    Join Date
    04-08-2005
    Posts
    4

    shortcut for changing value in formula

    Hi there

    I'm working with formulas in excell and need a shortcut if at all possible.

    So the values in the A column are graduated from 0-6 in increments of 0.25

    I need to enter a formula based on the information in the A cells into the B cells as follows

    5.355*2.229*87.1*EXP(-2.229*z)/(1+87.1*EXP(-2.229*z))^2

    where z = the corresponding entry in the A cell
    For example, the first formula (A1/B1) would replace the z with 0, the second formula (A2/B2) would subsitute 0.25 for the z.

    Any help gratefully received.....

  2. #2
    Forum Expert swatsp0p's Avatar
    Join Date
    10-07-2004
    Location
    Kentucky, USA
    MS-Off Ver
    Excel 2010
    Posts
    1,545
    In cell B1, enter your formula, substituting the cell reference (A1) for the 'z' value, as such:

    5.355*2.229*87.1*EXP(-2.229*A1)/(1+87.1*EXP(-2.229*A1))^2

    Next, copy this formula down column B to the end of your data in column A (or simply double click on the 'drag handle' in the lower right corner of the cell)

    Now the formula in B2 will read:

    5.355*2.229*87.1*EXP(-2.229*A2)/(1+87.1*EXP(-2.229*A2))^2

    ...and so on.

    HTH

    Bruce
    Bruce
    The older I get, the better I used to be.
    USA

  3. #3
    Registered User
    Join Date
    04-08-2005
    Posts
    4
    Hi there

    Thanks for your reply. However you misunderstand me! I need to change the value for each line. So for the A2 cell the formula would be

    5.355*2.229*87.1*EXP(-2.229*A1)/(1+87.1*EXP(-2.229*A1))^2

    but for the B2 cell it would be

    5.355*2.229*87.1*EXP(-2.229*B!)/(1+87.1*EXP(-2.229*B1))^2

    and C2 =

    5.355*2.229*87.1*EXP(-2.229*C1)/(1+87.1*EXP(-2.229*C1))^2

    and so on.......

    Is there an easier way to do this except for having to change the column address for every line?

    Thanks

  4. #4
    Forum Expert swatsp0p's Avatar
    Join Date
    10-07-2004
    Location
    Kentucky, USA
    MS-Off Ver
    Excel 2010
    Posts
    1,545
    I'm sorry. Your information is incomplete. Give examples with specific cell references. If you are not copying the formulas down column B, you need to tell us where you need these formulas.

    Bruce

  5. #5
    Registered User
    Join Date
    04-08-2005
    Posts
    4
    I am using the same formula, but changing the value down the whole B column

    5.355*2.229*87.1*EXP(-2.229*z )/(1+87.1*EXP(-2.229*z))^2

    so where you can see I have inserted the z, the value will change for each line

    going down the b column, the entry in b1 would replace z with a1

    the entry in b2 would replace z with b1

    the entry in c2 would replace z with c1

    the entry in d2 would replace z with d1

    and so on

    the a column is filled with changing values of 0-6 in steps of 0.25, the formula inserted in the b column needs to reflect the changing value in the corresponding a column.

    I hope this is a clearer explanation, I don't know how to explain it any other way!

  6. #6
    Registered User
    Join Date
    04-08-2005
    Posts
    4
    Any Other Thoughts?

  7. #7
    Forum Expert swatsp0p's Avatar
    Join Date
    10-07-2004
    Location
    Kentucky, USA
    MS-Off Ver
    Excel 2010
    Posts
    1,545
    Now I'm even more confused. Columns go up and down the page, rows go across the page... you said, "I am using the same formula, but changing the value down the whole B column.."

    If your values 0-6 in .25 increments are in A1-Y1 (or similar) then place your formula in cell A2, substituting the cell reference of A1 for 'z', then copy this formula to the RIGHT in row 2.

    Cell B2 will automatically change the 'A1' reference to 'B1', C2 becomes 'C1', and so on...

    If your values 0-6 in .25 increments are in A1-A25 (or similar) then place your formula in cell B1, substituting the cell reference of A1 for 'z', then copy this formula DOWN in Column B.

    Cell B2 will automatically change the 'A1' reference to 'A2', B3 becomes 'A3', and so on...

    Whether you are coping down or across, Excel will automatically change the cell reference as you copy the formula into other cells.

    Is this what you are looking for?

    Bruce

+ 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