Forum Discussion
Volume range, apply % in formula
- Jun 25, 2025
Yes, it works. In your sample there are values within the range. In general LOOKUP function - Microsoft Support
However, it'll be an error if the volume value is less than 100000. If that's the case, add to your volume ranges the one from zero to 100000. Another point, volume ranges are to be in ascending order.
To be more flexible you may use XLOOKUP function - Microsoft Support, variant for it is attached file.
I actually did not phrase this correctly. Please see attached file instead.
There is no attachment. You may share through OneDrive, Google Drive, etc if attachment option is not available here. In general like
= IF( (V>=Rmin)*(V<=Rmax), X*(1-%), X )- Maddy1010Jun 25, 2025Brass Contributor
SergeiBaklan​ pls find attached excel file.
- SergeiBaklanJun 25, 2025Diamond Contributor
That could be
=LOOKUP(F2,$B$2:$B$16, $D$2:$D$16*(1-$C$2:$C$16) )Please check attached
- Maddy1010Jun 25, 2025Brass Contributor
Thank you SergeiBaklan​ . However, with the lookup formula - my lookup value has to match exactly. What if the value I'm looking up is only "within the range"? Can this formula also apply? Thank you!