Auto calculation of picture dimensions based on aspect ratio

The Idea Dude

Well-known Member
Joined
Aug 15, 2002
Messages
591
Office Version
  1. 2016
Platform
  1. Windows
Howdy all, I am after some help to achieve the following.

I have a bunch of digital photos with various dimensions (I can work with the dimensions in mm).

I would like to be able to adjust the size of the images such that the mm2 of them is all the same but they retain the same aspect ratio.

So a scenario would be as follows:

I am looking to make a photo that has dimensions of 100 mm wide by 200 mm high (ratio of 1:2) and is naturally 20,000 mm2 be resized such that the mm2 = 15,000. So I need to find out what wxh gives me 15,000 mm2 with an aspect ratio of 1:2

Now the above is just an example. So ultimately I would like to be able to specify the current dimensions of an image (wxh), and have Excel work out the aspect ratio and return a new width and height maintaining the aspect ratio such that the new weight and height produces an area that I specify.

I hope this makes sense.

Many thanks.
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.

Forum statistics

Threads
1,215,757
Messages
6,126,693
Members
449,331
Latest member
smckenzie2016

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top