VLOOKUP question (with sample table)

L

Legacy 219053

Guest
I tried to approach this problem using the =IF formula, but after some research decided that it might be easier to use VLOOKUP.

Pretty much, I want the value in C4 to depend on both the "units" (B2) and the "fuel type" (B3)


Sorry if the table is messy. I made this sheet with the assumption that I could attach it to my post. Obviously, cell B2 is a dropdown list made by Data Validation of the array E1:E3, and B3 is a dropdown made from F1:F5


Data
Inputs
Units
--Select Units--
--Select Fuel Source--
Measurement Units
--Select Units--
Metric
Electric
Fuel Source
--Select Fuel Source--
Standard
Natural Gas
Fuel Amount
some number input by user
Diesel
Electric Amount
some number input by user
kWh
Propane
Metric
Standard
Electric
liters
Electric
US Gallons
Natural Gas
cubic meters
Natural Gas
cubic feet
Diesel
liters
Diesel
US Gallons
Propane
liters
Propane
US Gallons

<TBODY>
</TBODY>
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Try using (in C4):

=IFERROR(INDEX(D7:G11,MATCH(B3,D7:D11,0),MATCH(B2,D7:G7,0)+1),"")
 
Upvote 0

Forum statistics

Threads
1,215,066
Messages
6,122,948
Members
449,095
Latest member
nmaske

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