+ Reply to Thread
Results 1 to 4 of 4

creating a measurement conversion table

  1. #1
    Registered User
    Join Date
    02-05-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    2

    creating a measurement conversion table

    Hello. I am new to this forum and have searched for what I need but cannot find it.

    I am looking to create an excel spreadsheet that simply converts similar units of measurement.
    For example, 1000ul=1mL=0.001L and so on.
    All calculations are simply multiply or divide by 100 or 1000s so this SHOULD be easy.
    I tried VBA where if a certain cell (call it a1) was a number (1), then d1 (target 1,4?) would be 0.0001 and g1 (target 1,7?) would be 1000, etc.

    My problem is that I think there are too many conditions. I need help creating a matrix where you can enter ANY number into ANY field...and the surrounding fields would calculate/convert properly. That's why I cant just use simple formulas in the spreadsheet.

    Any help is greatly appreciated.

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: creating a measurement conversion table

    Hi

    How many columns are used for each row, and what is the relationship between each of the cells in the row to say column A

    So if A1 has 1, then what is in B1, C1....G1. Assuming that you are only multiplying / dividing by multiples of 10, this should be easy to determine.

    rylo

  3. #3
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,382

    Re: creating a measurement conversion table

    All calculations are simply multiply or divide by 100 or 1000s so this SHOULD be easy.
    I need help creating a matrix where you can enter ANY number into ANY field...and the surrounding fields would calculate/convert properly.
    As you say, the calculations themselves are simple -- simply moving the decimal point around. What is difficult is that you are asking each cell to be both input and processing/output. In my experience, this is difficult in a spreadsheet. It will require a VBA procedure likely associated with an event (change and/or calculate).

    If this were my spreadsheet, I would go with a different approach. Something like this:
    1) Designate two cells as input cells -- one cell for the value and one for the prefix (k, m, c, etc.)
    2) I would have a lookup table somewhere where I could lookup the "factor" for the prefix entered by the user.
    Please Login or Register  to view this content.
    Use one of the lookup functions http://office.microsoft.com/en-us/ex...670.aspx?CTT=1 to return the factor to convert the input value to the base unit
    3) Then your row/table will just need functions to convert the base unit to each derivative unit
    Please Login or Register  to view this content.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  4. #4
    Registered User
    Join Date
    02-05-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: creating a measurement conversion table

    Thanks guys!
    I'll try the lookup/factor approach first. I want them to be able to enter any field/measurement they have instead of defaulting them to use one or 2 specific ones.
    I'll post back on how it goes.
    Last edited by dieseldaddy; 05-03-2013 at 09:46 AM. Reason: spelling...

+ 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