Using Min and Max with a roundup and vlookup formula

rrodri5101

New Member
Joined
Aug 29, 2023
Messages
2
Office Version
  1. 365
Platform
  1. Windows
i've got a cell that i need teh minimum return to be $100 and maximum to be $500.

This is what the formula currently look like. Its using a roundup and vlookup formulas. It cell Q3 and R#

=ROUNDUP(VLOOKUP($L$2,'ANTIC Residential Rates'!$A$2:$Y$17159,3,TRUE)*10%,0)
 

Attachments

  • Screenshot 2023-08-29 133811.png
    Screenshot 2023-08-29 133811.png
    103.4 KB · Views: 7

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
i've got a cell that i need teh minimum return to be $100 and maximum to be $500.
Try this -

Excel Formula:
=Let(VL,Iferror(ROUNDUP(VLOOKUP($L$2,'ANTIC Residential Rates'!$A$2:$Y$17159,3,TRUE)*10%,0),0),Ifs(VL<=100,100,VL>=500,500,True,VL))

But I'm sure better than VLOOKUP would be XLOOKUP as it is less complicated and can handle 'No Result' situation by itself.
 
Upvote 0
Try this -

Excel Formula:
=Let(VL,Iferror(ROUNDUP(VLOOKUP($L$2,'ANTIC Residential Rates'!$A$2:$Y$17159,3,TRUE)*10%,0),0),Ifs(VL<=100,100,VL>=500,500,True,VL))

But I'm sure better than VLOOKUP would be XLOOKUP as it is less complicated and can handle 'No Result' situation by itself.
Thank you Sanjay that worked perfectly

i appreciate the help
 
Upvote 0
Glad to help you. Would request you to mark the thread with your solution so that others may be benefitted.
 
Upvote 0
Another option is
Excel Formula:
=median(100,500,ROUNDUP(VLOOKUP($L$2,'ANTIC Residential Rates'!$A$2:$Y$17159,3,TRUE)*10%,0))
 
Upvote 0

Forum statistics

Threads
1,215,461
Messages
6,124,956
Members
449,200
Latest member
indiansth

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