+ Reply to Thread
Results 1 to 2 of 2

Calculation with numbers that use measurement units

Hybrid View

  1. #1
    Registered User
    Join Date
    01-07-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    13

    Calculation with numbers that use measurement units

    Hi,
    Can anybody help me.

    I am trying to calculate my percentage of profit margin using my cost price and my sell price. The calculation formula is not my problem...my problem is that I would like to write in the cells for "cost" and for "selling price" the measurement units for cost and for selling price.........I would like to write those numbers like this: for cost (10 Kg), for selling price (12 Kg)......then my percentage of profit is 16.6. The 10 Kg means that I paid 10 dollars per kilogram and the 12 Kg means that I sell at 12 dollars per kilogram.

    However, I do not know how to write a formula that can disregard the Kg unit and just consider the 10 and the 12, so to calculate the % of profit. My current formula gets an error message when I write in the cell 10 Kg instead of just 10....so, how can I fix this ?

    Can anybody help?
    Last edited by Kriman; 01-07-2009 at 12:07 PM.

  2. #2
    Valued Forum Contributor Richard Schollar's Avatar
    Join Date
    05-23-2006
    Location
    Hampshire UK
    MS-Off Ver
    Excel 2002
    Posts
    1,264
    Hi

    Rather than actually writing the kg in the cell, just set a custom format - so assuming your numbers in B2:B3, format these numbers via Format>Cells>Number tab and choose a custom format and write it as:

    0 "Kg"

    and hit OK. This will change how the numbers are displayed, but means that they remain numeric so you can perform calculations on them

    Richard
    Richard Schollar
    Microsoft MVP - Excel

+ 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