+ Reply to Thread
Results 1 to 4 of 4

convert function with cell reference to the units

  1. #1
    Registered User
    Join Date
    10-28-2015
    Location
    Canada
    MS-Off Ver
    2013
    Posts
    2

    convert function with cell reference to the units

    I want to use convert function to change one unit to another, but instead of writing the units in the formula I need the units to be referenced from the sheet I am working on.
    good example is =CONVERT(A1,"A2","A3"). But I am not sure what is the correct synthetics
    any suggestions?
    Last edited by walabdallah; 10-28-2015 at 05:03 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,663

    Re: convert function with cell reference to the units

    It's simply =CONVERT(A1,A2,A3) with, for example, 3 in A1, gal in A2 and oz in A3.
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    10-28-2015
    Location
    Canada
    MS-Off Ver
    2013
    Posts
    2

    Re: convert function with cell reference to the units

    Thank you! The pop-up list did not allow me to select a reference cell. I typed the cell name and it is working okay.

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

    Re: convert function with cell reference to the units

    You're welcome! the popup list is there merely as a guide.

+ 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. Use IF function to convert units within the same worksheet
    By melvin88 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-19-2014, 06:33 AM
  2. Convert units based on cell format
    By Redrum555 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-19-2012, 03:11 AM
  3. How to convert units from pre-existing values
    By kennechiwa87 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-08-2010, 05:45 PM
  4. Convert combined units?
    By Dr.Ile in forum Excel General
    Replies: 11
    Last Post: 06-29-2010, 06:39 AM
  5. How to convert units within a cell
    By WS6FirebirdTA00 in forum Excel General
    Replies: 13
    Last Post: 12-17-2007, 11:50 AM
  6. [SOLVED] convert units
    By luiss in forum Excel General
    Replies: 4
    Last Post: 02-20-2006, 05:50 PM
  7. [SOLVED] How do I convert a time units
    By jeff excel in forum Excel General
    Replies: 3
    Last Post: 02-08-2005, 05: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