+ Reply to Thread
Results 1 to 3 of 3

Creating a logic to convert a number's unit place into 9 (For MRP)

  1. #1
    Registered User
    Join Date
    12-08-2017
    Location
    India
    MS-Off Ver
    Excel 2013
    Posts
    1

    Creating a logic to convert a number's unit place into 9 (For MRP)

    Hey,
    In my job, I have to create pricing templates for our clients for different ecommerce market places. Lately I have been trying to automate the pricing as much as possible.
    While calculating the MRP of any product, we keep it 3-4 times of the base cost. And we have to keep the MRP in the range where it ends with 9.
    For eg : Base Cost*3=MRP i.e 115*3=345
    Now I want to convert this into 349 as soon as MRP is calculated.
    I have tried Mrange, Round but it works only for certain numbers in the list and not all.
    If anyone could help me with this, it would be highly appreciated.

    Thanks and Regards,
    Abhineet

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,152

    Re: Creating a logic to convert a number's unit place into 9 (For MRP)

    Try

    =CEILING(A5,10)-1

    NOTE: 350 will be 349 but 351 will be 359

  3. #3
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Creating a logic to convert a number's unit place into 9 (For MRP)

    Another one

    =INT(A1/10)*10+9
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

+ 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. [SOLVED] I want to convert KB, MB, and GB to one unit so I can display a chart.
    By turtle328 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-14-2016, 05:46 PM
  2. [SOLVED] Loop through columns then next row with unit convert
    By cnash52 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-10-2016, 12:25 PM
  3. Replies: 4
    Last Post: 10-07-2015, 06:04 AM
  4. Replies: 1
    Last Post: 11-07-2014, 12:10 AM
  5. [SOLVED] Unit increase relative to variable unit thresholds
    By Fr3dle in forum Excel General
    Replies: 6
    Last Post: 07-01-2013, 06:57 AM
  6. Replies: 4
    Last Post: 06-07-2013, 02:01 PM
  7. Formulas for creating a muti-unit 12 mo. bugdet using a 1 store mo
    By JTack in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-29-2005, 09:06 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