Excel Division that returns the whole number

Sbugle

New Member
Joined
Apr 20, 2021
Messages
7
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile
  3. Web
Hi,
I need to create a calculator that returns 2 numbers, but must be to an exact 2 decimal places.
For example, we have a figure of 1,759.06 and need to know what the closest divisible number with 2 decimal points is that returns a result less than 104.45.

X*Y = 1759.06
X needs to be less than 12, 24 or 36.
Y needs to be less than 104.45 and exact to 2 decimal places.
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Perhaps try
Excel Formula:
=LET(
_XY,1759.06*10000,
_X,36*100,
_Y,104.45*100,
_A,FILTER(SEQUENCE(_X),MOD(_XY,SEQUENCE(_X))=0),
_B,FILTER(_A,(_A<_X)*(_XY/_A<_Y)),
"X:"&TEXT(_B/100,"0.00")&"  Y:"&TEXT(_XY/_B/100,"0.00"))
 
Upvote 0
Thank you So
Perhaps try
Excel Formula:
=LET(
_XY,1759.06*10000,
_X,36*100,
_Y,104.45*100,
_A,FILTER(SEQUENCE(_X),MOD(_XY,SEQUENCE(_X))=0),
_B,FILTER(_A,(_A<_X)*(_XY/_A<_Y)),
"X:"&TEXT(_B/100,"0.00")&"  Y:"&TEXT(_XY/_B/100,"0.00"))
Thank you so much. I need X to be a whole number. I have tried to set it up in my excel where 1759.06 and 36 are cell links so that we can input this information and then the calculation is done. 36 could be any number between 1-36. so if the whole number X is multiplied by Y you get the exact 1759.06 or whatever is in this cell.
 
Upvote 0
Thank you So

Thank you so much. I need X to be a whole number. I have tried to set it up in my excel where 1759.06 and 36 are cell links so that we can input this information and then the calculation is done. 36 could be any number between 1-36. so if the whole number X is multiplied by Y you get the exact 1759.06 or whatever is in this cell.
=LET(_XY,C4*10000,_X,C5*100,_Y,C6*100,_A,FILTER(SEQUENCE(_X),MOD(_XY,SEQUENCE(_X))=0),_B,FILTER(_A,(_A<_X)*(_XY/_A<_Y)),"X:"&TEXT(_B/100,"0.00")&"Y:"&TEXT(_XY/_B/100,"0.00"))
 
Upvote 0
There isn't a solution where X is a whole number and Y is a 2 decimal number less than 104.45. It's just mathematically impossible. The closest in terms of decimal places is X = 20 and Y = 87.953
 
Upvote 0

Forum statistics

Threads
1,224,518
Messages
6,179,253
Members
452,900
Latest member
LisaGo

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