+ Reply to Thread
Results 1 to 8 of 8

help with getting cells to move in equivlant values.

  1. #1
    Registered User
    Join Date
    09-25-2015
    Location
    england
    MS-Off Ver
    365
    Posts
    4

    help with getting cells to move in equivlant values.

    Hey,

    Right.

    Im looking at getting Cell A2 (MILES per gallon) to Match Cell B2(COST per gallon.)

    So if i MODIFY cell A2, to maybe 90 miles instead of 45, then cell b2 will then change to match that. (in this example it would be 8.14)

    then i would have D2 be the value of b2 * c2 (example 4.07 * .45 = 1.83)


    So, when ever I modify a2, b2 will change accordingly which will then change the final answer.... to what i want?

    heres a picture for reference,,,


    Screen Shot 2015-09-25 at 22.35.53.png

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 2000/3/7/10/13/16
    Posts
    50,437

    Re: help with getting cells to move in equivlant values.

    Hi, welcome to the forum

    upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    09-25-2015
    Location
    england
    MS-Off Ver
    365
    Posts
    4

    Re: help with getting cells to move in equivlant values.

    I'm not understanding by what you mean by a sample workbook instead of a picture?

    The desired outcome would be that the A2 and B2 are linked, which would fit into the rest of my equation.... i have B and C linked so that the answer from there multiplication ends up in D2.

    But I need it so that when A2 is changed, B2 is changed automatically in proportion of A2.

    Example = A2 = 45 Miles Per Gallon B2 = 4.07 Cost Per Gallon

    So is I changed A2 to 90 MPG, then B2 would automatically adjust its self to 8.14

    Once it does that, I believe I had D2 already set up to calculate the expenses.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 2000/3/7/10/13/16
    Posts
    50,437

    Re: help with getting cells to move in equivlant values.

    I'm not understanding by what you mean by a sample workbook instead of a picture?
    Like I said - not all members can even see your pic
    Plus we cannot work with a pic, we need to see a sample workbook

  5. #5
    Registered User
    Join Date
    09-25-2015
    Location
    england
    MS-Off Ver
    365
    Posts
    4

    Re: help with getting cells to move in equivlant values.

    I hope this applies as a samplework book

    The desired outcome would be that the A2 and B2 are linked, which would fit into the rest of my equation.... i have B and C linked so that the answer from there multiplication ends up in D2.

    But I need it so that when A2 is changed, B2 is changed automatically in proportion of A2.

    Example = A2 = 45 Miles Per Gallon B2 = 4.07 Cost Per Gallon

    So is I changed A2 to 90 MPG, then B2 would automatically adjust its self to 8.14

    Once it does that, I believe I had D2 already set up to calculate the expenses.
    Attached Files Attached Files

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 2000/3/7/10/13/16
    Posts
    50,437

    Re: help with getting cells to move in equivlant values.

    OK thanks

    Try this in B2...=A2/11.0565110565111
    11.0565110565111 is based on 45/4.07. If you have a different cost/gallon, then you would need to use that instead

  7. #7
    Registered User
    Join Date
    09-25-2015
    Location
    england
    MS-Off Ver
    365
    Posts
    4

    Re: help with getting cells to move in equivlant values.

    Big thumbs up to you FDibbins.

    Solved. Much appreciated... I can finally sleep!

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 2000/3/7/10/13/16
    Posts
    50,437

    Re: help with getting cells to move in equivlant values.

    Happy to help, thanks for the feedback

+ 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. Move and size with cells greyed out- form control checkboxes move after printing 2010
    By Duffy1974 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-26-2012, 09:19 AM
  2. Repeating Values (move cells)
    By s1monjh in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-20-2012, 02:12 PM
  3. Replies: 1
    Last Post: 07-13-2012, 11:13 AM
  4. have reference cells move in rows while I move in columns
    By gryffin13 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-13-2011, 09:33 AM
  5. find values and move cells using VBA
    By albert28 in forum Excel General
    Replies: 1
    Last Post: 04-27-2011, 04:57 PM
  6. How to click macro - Move right 15 cells - Next click move back to home position
    By Launchnet in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-05-2010, 10:47 PM
  7. Loop through cells compare values add and move to another sheet
    By begilhang in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-22-2010, 04:07 AM
  8. hiding cells to move cells with values together
    By tuud718 in forum Excel General
    Replies: 0
    Last Post: 04-13-2005, 04:44 PM

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