+ Reply to Thread
Results 1 to 10 of 10

Can I use Excel to produce pretty Metric/Imperial conversion scales?

  1. #1
    Registered User
    Join Date
    07-27-2015
    Location
    Pittsburgh, PA USA
    MS-Off Ver
    Office 2013
    Posts
    9

    Can I use Excel to produce pretty Metric/Imperial conversion scales?

    I'm trying to build some visuals and am wondering if this can be done in Excel. I want to build images like the samples below where there are two different scales with major tick marks every 10 values. Can this be done with Excel charts?

    My desire is to generate a series of these images with dynamic ranges for temperature, weight, distance, and speed. My goal is to be able to produce these as cheat sheets or overlays to videos where one unit of measure is being discussed and people can quickly relate to what it may be in another unit of measure. In some cases I may want to show a line with a weight range of 10 kg to 80 kg, and another time may be 0 kg to 100 kg.


    A bonus feature would be to have a dot or highlight appear on the scale for a given value. This way I could be talking about 50°F and a have a mark appear in that position and people who are familiar with Celsius would quickly be able to see that equates to 10°C.

    I have seen tutorials for building a thermometer chart but they only ever have one scale on them.

    I'm open to ideas.

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,431

    Re: Can I use Excel to produce pretty Metric/Imperial conversion scales?

    The simplest way is to build the scales using a chart.

    Have a series for each measurement system, place each series on a separate axis.
    Plot the top of the scale major/minor tick and then use Y error bars set at minus 100% to draw the tick marks.

    The data labels are used to display the actual values. You can link data labels to cell values, rather than showing value or category.
    Attached Files Attached Files
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    07-27-2015
    Location
    Pittsburgh, PA USA
    MS-Off Ver
    Office 2013
    Posts
    9

    Re: Can I use Excel to produce pretty Metric/Imperial conversion scales?

    Andy,

    That was a great answer. I'm not exactly sure how you pulled that off. It produces the effect I was hoping for.

    2021-01-03_20-55-37_Speed_Scale.png

    In my efforts to tweak the chart it got wonky at times. The zero's on each sale sometimes do not line up. The label ranges do continue past 60 mph if I increase the maximum range value. I added a VBA function to change the chart range if you change the max value listed on the sheet.

    If you are still up for the challenge, can you help me make the chart work dynamically? I have included a OneDrive link to an updated version. (I was unable to attach a file.)

    tinyurl.com/y9xp39ac

    Ben
    Pittsburgh, PA
    USA
    Last edited by bsacheri; 01-04-2021 at 01:20 AM. Reason: updated image

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Can I use Excel to produce pretty Metric/Imperial conversion scales?

    There are instructions at the top of the page explaining how to attach your sample workbook.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Registered User
    Join Date
    07-27-2015
    Location
    Pittsburgh, PA USA
    MS-Off Ver
    Office 2013
    Posts
    9

    Re: Can I use Excel to produce pretty Metric/Imperial conversion scales?

    Thanks for the tip. I think the problem is I don't have enough posts on this site to be allowed to attach anything. I usually hang out in Access and VBA sites.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Can I use Excel to produce pretty Metric/Imperial conversion scales?

    I think the problem is that you didn't read and follow the instructions!!!

    You cannot post a LINK, but I did not ask you for a link. Try reading the instructions again.

    Post a small Excel sheet (not a picture) showing realistic & representative sample data WITHOUT confidential information (10-20 rows, not thousands...) and some manually calculated results. Just before posting, scroll down to GO ADVANCED, click, and then scroll down to MANAGE ATTACHMENTS and click again. Now follow the instructions at the top of that screen.

  7. #7
    Registered User
    Join Date
    07-27-2015
    Location
    Pittsburgh, PA USA
    MS-Off Ver
    Office 2013
    Posts
    9

    Re: Can I use Excel to produce pretty Metric/Imperial conversion scales?

    Here is a reply to my post on 1/3/2021 that includes an attachment.
    Attached Files Attached Files

  8. #8
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,431

    Re: Can I use Excel to produce pretty Metric/Imperial conversion scales?

    You already have the two horizontal scales adjusting the maximum so you just need to use some named ranges to provide the ranges to use for x,y and labels.

    Use Formulas > Name Manager. to view the new named ranges that have been added.

    The data is restricted to 101 data points, unless you extend the formula you currently have.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    07-27-2015
    Location
    Pittsburgh, PA USA
    MS-Off Ver
    Office 2013
    Posts
    9

    Re: Can I use Excel to produce pretty Metric/Imperial conversion scales?

    Andy,

    You've done great things in helping me build these variable charts. It looks great. I've added some configuration values in column W so it will work with distance/speed, weight, or temperature. Setting the bottom value for temperature was tricky until I realized it had to be a multiple of 9 based on 32F = 0C.

    The challenge I'm having now is the data labels are at alternating heights. It may have looked ok with the distance/speed scale but it looks odd for temperature. I tried manually aligning them because there seems to be no way to align them from a toolbar. After I got it looking ok, then I realized that as soon as I change the bottom or top value the labels go haywire again. What's a way to have them generated in alignment? Is there a way to reset it's memory of alternating tops? It don't mind running VBA to reset it once but I'd prefer to not need VBA as part of the dynamic solution.

    See examples images attached along with an Excel file.

  10. #10
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,431

    Re: Can I use Excel to produce pretty Metric/Imperial conversion scales?

    Currently the tickmark labels are shown above/below the tickmark value, which has different lengths depending on the specific tickmark. This gives the appearence of Major, Minor ticklabels.
    If you want the labels to all be on the same vertical level then it would be best to add another series for each scale. The x values would be same as current but the y values would be a single fixed value.

+ 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. Curious about Metric versus Imperial
    By icevinson in forum Excel General
    Replies: 4
    Last Post: 12-02-2013, 05:04 PM
  2. [SOLVED] Metric to Imperial
    By lockye in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-25-2013, 12:43 PM
  3. Replies: 2
    Last Post: 06-20-2012, 03:37 PM
  4. Replies: 2
    Last Post: 06-20-2012, 03:01 PM
  5. Converting metric to imperial measurements
    By mdoyle13 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 01-16-2012, 03:58 AM
  6. Imperial / metric units
    By bejan in forum Excel General
    Replies: 2
    Last Post: 05-13-2009, 03:42 AM
  7. Metric to imperial measurements
    By Gill.star in forum Excel General
    Replies: 7
    Last Post: 03-06-2005, 10:06 PM

Tags for this Thread

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