+ Reply to Thread
Results 1 to 8 of 8

Microsoft Excel - Adding 4% To Existing Price Column

  1. #1
    Registered User
    Join Date
    01-27-2020
    Location
    Hull, England
    MS-Off Ver
    Office 365 On Windows 10
    Posts
    3

    Microsoft Excel - Adding 4% To Existing Price Column

    Apologies if this has been solved elsewhere, i have not been able to find a similar thread.

    Basically, I need to change prices on an existing pricing sheet to have a 4% increase to prices. Now, i already have a pricing sheet with prices on that will need to be changed, but also i will need to add additional prices to the list from time to time.

    Is there a rule i can use to the prices column that will automatically add 4% to whatever amount i type in, so whenever i add a new price, instead of manually adding 4% to it, if i type in £250 say it will automatically add the 4% and change the price to that which i typed in without the need for additional columns?

  2. #2
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,302

    Re: Microsoft Excel - Adding 4% To Existing Price Column

    I think you will need to use a UDF (user defined function) if you do not want to use another column.

  3. #3
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,496

    Re: Microsoft Excel - Adding 4% To Existing Price Column

    you can do it with a formula, so if your price is 250 and is in cell A2 then =IF(A2="","",A2*1.04) so the new price would be 260.
    But if you want to simply put a price in a cell and have it show as 260 instead of 250 then that might require VBA. So I'm not completely sure which you are saying.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  4. #4
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,445

    Re: Microsoft Excel - Adding 4% To Existing Price Column

    Administrative note
    Please update your profile as necessary to properly reflect the exact version(s) of Excel your question relates to. Members tailor answers based on your Excel version. Your profile does not indicate your version.
    Thanks

  5. #5
    Registered User
    Join Date
    01-27-2020
    Location
    Hull, England
    MS-Off Ver
    Office 365 On Windows 10
    Posts
    3

    Re: Microsoft Excel - Adding 4% To Existing Price Column

    Quote Originally Posted by Sambo kid View Post
    you can do it with a formula, so if your price is 250 and is in cell A2 then =IF(A2="","",A2*1.04) so the new price would be 260.
    But if you want to simply put a price in a cell and have it show as 260 instead of 250 then that might require VBA. So I'm not completely sure which you are saying.

    My apologies, but it would be for when i add a new price to the sheet, if i type in 250 in a cell in the price column, it automatically changes the value in that same cell to include the 4% price increase.

    I want to basically tell excel that any number i type in the price column, it is to automatically add 4% to it and over type that cell with the new total without the need for additional columns and formulas.
    Last edited by D.Jeppo; 01-27-2020 at 07:34 AM.

  6. #6
    Registered User
    Join Date
    01-21-2013
    Location
    Europe
    MS-Off Ver
    Excel 2016 Win
    Posts
    11

    Re: Microsoft Excel - Adding 4% To Existing Price Column

    To change existing prices simply copy cell with "1.04", select column with prices and paste spacial (check multiply)
    Attachment 659727

    For prices to be entered in the future: paste the following code in VBE (alt+F11, select proper sheet name)
    Please Login or Register  to view this content.
    You should change those lines:
    Please Login or Register  to view this content.
    Last edited by jotpol; 01-27-2020 at 08:21 AM.

  7. #7
    Registered User
    Join Date
    01-27-2020
    Location
    Hull, England
    MS-Off Ver
    Office 365 On Windows 10
    Posts
    3

    Re: Microsoft Excel - Adding 4% To Existing Price Column

    Thanks. As someone that has never used this part of Excel before, what do I do when i have pasted this into VBE?


    Not to worry, I have done it, thanks so much.
    Last edited by D.Jeppo; 01-27-2020 at 08:02 AM.

  8. #8
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,742

    Re: Microsoft Excel - Adding 4% To Existing Price Column

    Try like:

    Please Login or Register  to view this content.

    @jotpol: small tweak:
    Please Login or Register  to view this content.

    @D.Jeppo - as Jotpol said, in excel press Alt+F11, then in VB editor paste code into particular sheet code (choose Sheet on list on left side of editor, dbl click and paste into main window).
    Last edited by KOKOSEK; 01-27-2020 at 08:05 AM.
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

+ 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. Adding new column to the existing VBA code
    By Alcotraz in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-01-2015, 06:01 PM
  2. Replies: 25
    Last Post: 01-14-2014, 02:21 AM
  3. Replies: 1
    Last Post: 07-15-2013, 05:25 AM
  4. Help w/ adding information to an existing column
    By MC Advantages in forum Excel General
    Replies: 3
    Last Post: 05-18-2009, 03:04 PM
  5. [SOLVED] adding extra text into an existing column
    By Zach in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  6. adding extra text into an existing column
    By Zach in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  7. adding extra text into an existing column
    By Zach in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM

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