+ Reply to Thread
Results 1 to 10 of 10

Macro that calculates formula when entered from one sheet to another

  1. #1
    Registered User
    Join Date
    04-30-2013
    Location
    Charlotte, NC
    MS-Off Ver
    Excel 2010
    Posts
    38

    Macro that calculates formula when entered from one sheet to another

    I am looking for a macro that will update details in from another sheet based on a formula. The amount is at the summary level so i need to assign an amount at each detail level The formula summarize all the details amount based on a master roll number and a customer. Each line that has the same criteria master roll and customer then then a % of the total will take the amount for the data entry tab. I have upload a test example.
    Attached Files Attached Files
    Last edited by EXCEL0429; 05-12-2013 at 08:52 AM. Reason: New upload

  2. #2
    Forum Contributor
    Join Date
    10-13-2012
    Location
    Southern California
    MS-Off Ver
    Excel 2007
    Posts
    401

    Re: Macro that calculates formula when entered from one sheet to another

    Thanks for posting the file, but if you could post another file, and give a few examples of your desired result, it would help. I downloaded your file, looked at it, and then re-read your question several different times, but I'm still not sure exactly what you want.

    For example, I see the three columns you highlighted in yellow, but two of them already have formulas in them. And I don't know what the AB column, that says Allocate from Data Entry is supposed to contain.

    (Sorry.)

  3. #3
    Registered User
    Join Date
    04-30-2013
    Location
    Charlotte, NC
    MS-Off Ver
    Excel 2010
    Posts
    38

    Re: Macro that calculates formula when entered from one sheet to another

    Thank you for looking at this for me I have uploaded another file. Basically the areas that are yellow instead of have a formula in those area I would like the formula to be automated. So in Column O & P i would like that to be automatically populated from a VBA code for that sheet, and Q a macro that will take the data entry amounts and alocate it in that column.

    Thank you again for looking at this.

  4. #4
    Registered User
    Join Date
    04-30-2013
    Location
    Charlotte, NC
    MS-Off Ver
    Excel 2010
    Posts
    38

    Re: Macro that calculates formula when entered from one sheet to another

    TESTDATA2.zip the example are now included

  5. #5
    Forum Contributor
    Join Date
    10-13-2012
    Location
    Southern California
    MS-Off Ver
    Excel 2007
    Posts
    401

    Re: Macro that calculates formula when entered from one sheet to another

    Okay, give me an hour...

    Edit: Or an hour and a half. Gotta get something to eat, first.

  6. #6
    Forum Contributor
    Join Date
    10-13-2012
    Location
    Southern California
    MS-Off Ver
    Excel 2007
    Posts
    401

    Re: Macro that calculates formula when entered from one sheet to another

    As a test, make a copy of the current values of the contents of your O, P, and Q columns. (Copy them elsewhere.)

    Next, delete all of your formulas from these three columns so that all of these cells are now blank.

    Finally, run the code below.

    As you will see when you compare the values from my code to the values from your formulas, the code replicates the values exactly.



    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    10-13-2012
    Location
    Southern California
    MS-Off Ver
    Excel 2007
    Posts
    401

    Re: Macro that calculates formula when entered from one sheet to another

    It does assume the data in DATA ENTRY will continue to begin on row 12.

    It also assumes the columns will continue to remain as they are. But if not, the code is easy to change.

  8. #8
    Forum Contributor
    Join Date
    10-13-2012
    Location
    Southern California
    MS-Off Ver
    Excel 2007
    Posts
    401

    Re: Macro that calculates formula when entered from one sheet to another

    Finally, you can assign the code to a button or run it manually, or whatever you wish.

  9. #9
    Registered User
    Join Date
    04-30-2013
    Location
    Charlotte, NC
    MS-Off Ver
    Excel 2010
    Posts
    38

    Re: Macro that calculates formula when entered from one sheet to another

    Since i am selecting the test customers i need updated is there anyway of updating those customers and not keep overwriting the other customer data if it was not selected. i need to select a customer update that one then select the next and so on and so on.

  10. #10
    Registered User
    Join Date
    04-30-2013
    Location
    Charlotte, NC
    MS-Off Ver
    Excel 2010
    Posts
    38

    Re: Macro that calculates formula when entered from one sheet to another

    is it possible to only updated the selected data from the entry sheet to update the master sheet?

+ 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