Obtain Value in the same array with multiple Vlookups, is this possible?

brockk

Board Regular
Joined
Jul 1, 2006
Messages
170
Office Version
  1. 2013
Platform
  1. Web
Hi Gurus,

I am trying to achieve the following:

I have a table with wet and dry ingredients. Based on their replies it will determine if the conversion is either wet or dry. (ex: 1 cup of milk and 1 cup of flour, or 1 tsp vanilla extract and 1 tsp salt, will not weigh or be measured the same).

In order for the worksheet to know whether the reply will be either wet or dry, the person will enter what the original weight/measurement is and then he/she will enter their desired converted measurement.

The following is a sample of the table in which I need a FORMULA that can do both vlookups in the same table and yet, provide me the TYPE of desired conversion to be. (THE REPLY SHOULD BE EITHER WET OR DRY)

For the sake of the sample data, lets say the table's headings are in A1:E1 with the actual data starting off at $A$2:$E$150.

Here is a sample of the data:

Orig Mesrm't Abbr. Conv. Mesrm't Abbr. Type
Milliliter ml Milliliter ml Wet
Milliliter ml Fluid Ounces oz Wet
Teaspoon tsp Teaspoon tsp Dry
Teaspoon tsp Tablespoon tbs Dry
Teaspoon tsp Fluid Ounces oz Wet
Teaspoon tsp Ounce ozm Dry
Teaspoon tsp Milliliter ml Wet
Tablespoon tbs Tablespoon tbs Dry
Tablespoon tbs Teaspoon tsp Dry
Tablespoon tbs Fluid Ounces oz Wet
Tablespoon tbs Ounce ozm Dry
Fluid Ounces oz Fluid Ounces oz Wet
Fluid Ounces oz Milliliter ml Wet
Fluid Ounces oz Cup cup Wet
Fluid Ounces oz Pint us_pt Wet
Fluid Ounces oz Quart qt Wet
Fluid Ounces oz Liter l Wet
Fluid Ounces oz Gallon gal Wet
Cup cup Ounce ozm Dry
Cup cup Fluid Ounces oz Wet
Cup cup Milliliter ml Wet
Cup cup Cup cup Wet
Cup cup Pint us_pt Wet
Cup cup Quart qt Wet
Cup cup Liter l Wet
Cup cup Gallon gal Wet


Thanks in advance for your replies and /or suggestions to accomplish goal.
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Maybe...


A
B
C
D
E
F
G
H
I
1
Orig Mesrm't​
Abbr.​
Conv. Mesrm't​
Abbr.​
Type​
Orig Mesrm't​
Conv. Mesrm't​
Type​
2
Milliliter​
ml​
Milliliter​
ml​
Wet​
Milliliter​
Fluid Ounces​
Wet​
3
Milliliter​
ml​
Fluid Ounces​
oz​
Wet​
4
Teaspoon​
tsp​
Teaspoon​
tsp​
Dry​
5
Teaspoon​
tsp​
Tablespoon​
tbs​
Dry​
6
Teaspoon​
tsp​
Fluid Ounces​
oz​
Wet​
7
Teaspoon​
tsp​
Ounce​
ozm​
Dry​
8
Teaspoon​
tsp​
Milliliter​
ml​
Wet​
9
Tablespoon​
tbs​
Tablespoon​
tbs​
Dry​
10
Tablespoon​
tbs​
Teaspoon​
tsp​
Dry​
11
Tablespoon​
tbs​
Fluid Ounces​
oz​
Wet​
12
Tablespoon​
tbs​
Ounce​
ozm​
Dry​
13
Fluid Ounces​
oz​
Fluid Ounces​
oz​
Wet​
14
Fluid Ounces​
oz​
Milliliter​
ml​
Wet​
15
Fluid Ounces​
oz​
Cup​
cup​
Wet​
16
Fluid Ounces​
oz​
Pint​
us_pt​
Wet​
17
Fluid Ounces​
oz​
Quart​
qt​
Wet​
18
Fluid Ounces​
oz​
Liter​
l​
Wet​
19
Fluid Ounces​
oz​
Gallon​
gal​
Wet​
20
Cup​
cup​
Ounce​
ozm​
Dry​
21
Cup​
cup​
Fluid Ounces​
oz​
Wet​
22
Cup​
cup​
Milliliter​
ml​
Wet​
23
Cup​
cup​
Cup​
cup​
Wet​
24
Cup​
cup​
Pint​
us_pt​
Wet​
25
Cup​
cup​
Quart​
qt​
Wet​
26
Cup​
cup​
Liter​
l​
Wet​
27
Cup​
cup​
Gallon​
gal​
Wet​
28

Criteria in G2:H2

Array formula in I2
=INDEX($E$2:$E$150,MATCH(1,IF($A$2:$A$150=G2,IF($C$2:$C$150=H2,1)),0))
Ctrl+Shift+Enter

M.
 
Upvote 0
Maybe...


A
B
C
D
E
F
G
H
I
1
Orig Mesrm't​
Abbr.​
Conv. Mesrm't​
Abbr.​
Type​
Orig Mesrm't​
Conv. Mesrm't​
Type​
2
Milliliter​
ml​
Milliliter​
ml​
Wet​
Milliliter​
Fluid Ounces​
Wet​
3
Milliliter​
ml​
Fluid Ounces​
oz​
Wet​
4
Teaspoon​
tsp​
Teaspoon​
tsp​
Dry​
5
Teaspoon​
tsp​
Tablespoon​
tbs​
Dry​
6
Teaspoon​
tsp​
Fluid Ounces​
oz​
Wet​
7
Teaspoon​
tsp​
Ounce​
ozm​
Dry​
8
Teaspoon​
tsp​
Milliliter​
ml​
Wet​
9
Tablespoon​
tbs​
Tablespoon​
tbs​
Dry​
10
Tablespoon​
tbs​
Teaspoon​
tsp​
Dry​
11
Tablespoon​
tbs​
Fluid Ounces​
oz​
Wet​
12
Tablespoon​
tbs​
Ounce​
ozm​
Dry​
13
Fluid Ounces​
oz​
Fluid Ounces​
oz​
Wet​
14
Fluid Ounces​
oz​
Milliliter​
ml​
Wet​
15
Fluid Ounces​
oz​
Cup​
cup​
Wet​
16
Fluid Ounces​
oz​
Pint​
us_pt​
Wet​
17
Fluid Ounces​
oz​
Quart​
qt​
Wet​
18
Fluid Ounces​
oz​
Liter​
l​
Wet​
19
Fluid Ounces​
oz​
Gallon​
gal​
Wet​
20
Cup​
cup​
Ounce​
ozm​
Dry​
21
Cup​
cup​
Fluid Ounces​
oz​
Wet​
22
Cup​
cup​
Milliliter​
ml​
Wet​
23
Cup​
cup​
Cup​
cup​
Wet​
24
Cup​
cup​
Pint​
us_pt​
Wet​
25
Cup​
cup​
Quart​
qt​
Wet​
26
Cup​
cup​
Liter​
l​
Wet​
27
Cup​
cup​
Gallon​
gal​
Wet​
28

Criteria in G2:H2

Array formula in I2
=INDEX($E$2:$E$150,MATCH(1,IF($A$2:$A$150=G2,IF($C$2:$C$150=H2,1)),0))
Ctrl+Shift+Enter

M.

Thank you Marcelo Branco for your quick reply. Although I didn't understand the MATCH syntax part of the formula, it worked like a charm.
 
Upvote 0
You are welcome. Thanks for the feedback.

To understand what the formula does, step by step, try Formulas > Evaluate Formula

M.
 
Upvote 0

Forum statistics

Threads
1,214,821
Messages
6,121,759
Members
449,048
Latest member
excelknuckles

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