+ Reply to Thread
Results 1 to 7 of 7

Get aspect ratio from dimensions

  1. #1
    Registered User
    Join Date
    06-06-2006
    Location
    English(UK)
    MS-Off Ver
    2019
    Posts
    93

    Get aspect ratio from dimensions

    I need to get the aspect ratio of an image from the dimensions provided.

    There are a couple of obvious solutions that come to mind, but I have no idea if excel can implement them.
    One requires control flow and the other - a rationalization function.

    As I haven't been able to find any of these(beyond a simple IF), I'm stuck.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Get aspect ratio from dimensions

    How about just dividing width by height?
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    06-06-2006
    Location
    English(UK)
    MS-Off Ver
    2019
    Posts
    93

    Re: Get aspect ratio from dimensions

    What I meant is - get results in the form of ex. 16/9 or 4/3, basically RATIONALIZE it.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Get aspect ratio from dimensions

    Like this?

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    06-06-2006
    Location
    English(UK)
    MS-Off Ver
    2019
    Posts
    93

    Re: Get aspect ratio from dimensions

    Yup.
    Started trying to do it in VB, but being completely new I need to understand the syntax first before I can produce anything functional.

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Get aspect ratio from dimensions

    The formula in C1 and down is =A1/B1, and the result is formatted as ??/??

  7. #7
    Registered User
    Join Date
    06-06-2006
    Location
    English(UK)
    MS-Off Ver
    2019
    Posts
    93

    Re: Get aspect ratio from dimensions

    Lol Ok.

    Added a little high school math and it all worked perfectly.
    Last edited by martix; 01-05-2011 at 09:33 PM.

+ 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