Results 1 to 19 of 19

Update Values by a Percentage using VBA

Threaded View

NickPDC Update Values by a Percentage... 03-30-2011, 06:53 AM
watersev Re: Update Values by a... 03-30-2011, 11:16 AM
NickPDC Re: Update Values by a... 03-30-2011, 11:25 AM
NickPDC Re: Update Values by a... 03-30-2011, 11:29 AM
NickPDC Re: Update Values by a... 03-31-2011, 02:48 AM
watersev Re: Update Values by a... 03-31-2011, 03:02 AM
NickPDC Re: Update Values by a... 03-31-2011, 03:31 AM
watersev Re: Update Values by a... 03-31-2011, 03:39 AM
NickPDC Re: Update Values by a... 03-31-2011, 03:41 AM
watersev Re: Update Values by a... 03-31-2011, 03:46 AM
NickPDC Re: Update Values by a... 03-31-2011, 03:54 AM
watersev Re: Update Values by a... 03-31-2011, 03:58 AM
NickPDC Re: Update Values by a... 03-31-2011, 05:00 AM
watersev Re: Update Values by a... 03-31-2011, 07:32 AM
NickPDC Re: Update Values by a... 03-31-2011, 07:38 AM
watersev Re: Update Values by a... 03-31-2011, 07:45 AM
NickPDC Re: Update Values by a... 03-31-2011, 07:57 AM
watersev Re: Update Values by a... 03-31-2011, 09:10 AM
NickPDC Re: Update Values by a... 03-31-2011, 09:48 AM
  1. #1
    Forum Contributor
    Join Date
    11-18-2010
    Location
    Dorset, England
    MS-Off Ver
    Excel 2010
    Posts
    100

    Update Values by a Percentage using VBA

    Hi there guys,

    I was hoping the community would be able to help me out a bit here.

    I have a Workbook (attached), where the data within, is copied and pasted from an external source.

    This data then needs to be updated with any price changes that may occur, this is the "Contract Price" in the O column.

    This needs to be updateable by putting a percentage into the Increase Percent box at B4.

    Say you have a contract price of £10, and you wanted up update this by 20%, would give the result of £12, and so on.

    The "New Effective Date" value will also need to be pasted into the "Effective Date" column for the data.

    The twist is this..

    There is a drop down box at B6. This is basically needed to allocate the price change to a certain area of manufacture. Eg, Scrap Metal Surcharge etc.

    So the Macro will need to calculate 20% of the "Contract Price", and then paste the percentage value increase, into the corresponding column (located between columns R and V).

    If a percentage increase occurs, it occurs to the entire range, so the entire range of values will need up be updated, with their corresponding price changes.

    The second worksheet is the price per Kg.

    This is slightly harder, where the "Contract Price" is the price the customer pays per Kg of product.

    If there is a price increase of £2 per Kg across the range, then £2 will need to be added to each of the "Contract Prices", but this will also need to be allocated to the value in the drop down box at "B6".

    I hope this makes sense, and that someone will be able to help me out!

    Cheers,

    Nick
    Attached Files Attached Files
    Last edited by NickPDC; 03-31-2011 at 09:48 AM.

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