Vlookup or any other function

capricorn123

New Member
Joined
Jul 24, 2019
Messages
4
Mr (or Ms) Excel Community,

I need your help to figure out the formula as I hit the roadblock.

I used the following formula to come up with the reporting liters value of the below table:
=IF(AND(B4>=D2,B4<=E2),C2)*B3

The outcome I am trying to achieve that we manually input gallons value (B2) and Brix value (B4). It will lookup column D & E and if Brix value falls between any of those ranges from D2 to E13, it will relatively pick column C value and times it by Liters (B3) and give us the reporting liters value.

e.g. If I enter brix value (B4) 41.7 it will automatically pick 3.5 (row6) and times it with Liters (B3) so we can get Reporting Liters value.

PS: any Brix value less than 19.46 should pick "1" and any value greater than 70.07 should pick "C13".

1 A B C D E
2Gallons1001.519.4622.42
3Liters378.542.022.4328.15
4Brix19.92.528.1633.61
53.033.6238.83
63.538.8443.84
7Reporting Liters 567.814.043.8548.65
84.548.6653.26
95.053.2757.69
105.557.7061.97
116.061.9866.09
126.566.1070.07
137.070.0873.92

<tbody>
</tbody>

<tbody>
</tbody>

Fingers Crossed and thank you for your help in advance!!
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Hi & welcome to MrExcel
How about
=IFERROR(INDEX(C2:C13,MATCH(B4,D2:D13,1)),1)*B3
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,213,538
Messages
6,114,218
Members
448,554
Latest member
Gleisner2

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