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

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Maybe...


[Table="class: grid"][tr][td="bgcolor: #DCE6F1"][/td][td="bgcolor: #DCE6F1"]
A
[/td][td="bgcolor: #DCE6F1"]
B
[/td][td="bgcolor: #DCE6F1"]
C
[/td][td="bgcolor: #DCE6F1"]
D
[/td][td="bgcolor: #DCE6F1"]
E
[/td][td="bgcolor: #DCE6F1"]
F
[/td][td="bgcolor: #DCE6F1"]
G
[/td][td="bgcolor: #DCE6F1"]
H
[/td][td="bgcolor: #DCE6F1"]
I
[/td][/tr]
[tr][td="bgcolor: #DCE6F1"]
1
[/td][td]
Orig Mesrm't​
[/td][td]
Abbr.​
[/td][td]
Conv. Mesrm't​
[/td][td]
Abbr.​
[/td][td]
Type​
[/td][td][/td][td]
Orig Mesrm't​
[/td][td]
Conv. Mesrm't​
[/td][td]
Type​
[/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
2
[/td][td]
Milliliter​
[/td][td]
ml​
[/td][td]
Milliliter​
[/td][td]
ml​
[/td][td]
Wet​
[/td][td][/td][td]
Milliliter​
[/td][td]
Fluid Ounces​
[/td][td]
Wet​
[/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
3
[/td][td]
Milliliter​
[/td][td]
ml​
[/td][td]
Fluid Ounces​
[/td][td]
oz​
[/td][td]
Wet​
[/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
4
[/td][td]
Teaspoon​
[/td][td]
tsp​
[/td][td]
Teaspoon​
[/td][td]
tsp​
[/td][td]
Dry​
[/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
5
[/td][td]
Teaspoon​
[/td][td]
tsp​
[/td][td]
Tablespoon​
[/td][td]
tbs​
[/td][td]
Dry​
[/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
6
[/td][td]
Teaspoon​
[/td][td]
tsp​
[/td][td]
Fluid Ounces​
[/td][td]
oz​
[/td][td]
Wet​
[/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
7
[/td][td]
Teaspoon​
[/td][td]
tsp​
[/td][td]
Ounce​
[/td][td]
ozm​
[/td][td]
Dry​
[/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
8
[/td][td]
Teaspoon​
[/td][td]
tsp​
[/td][td]
Milliliter​
[/td][td]
ml​
[/td][td]
Wet​
[/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
9
[/td][td]
Tablespoon​
[/td][td]
tbs​
[/td][td]
Tablespoon​
[/td][td]
tbs​
[/td][td]
Dry​
[/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
10
[/td][td]
Tablespoon​
[/td][td]
tbs​
[/td][td]
Teaspoon​
[/td][td]
tsp​
[/td][td]
Dry​
[/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
11
[/td][td]
Tablespoon​
[/td][td]
tbs​
[/td][td]
Fluid Ounces​
[/td][td]
oz​
[/td][td]
Wet​
[/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
12
[/td][td]
Tablespoon​
[/td][td]
tbs​
[/td][td]
Ounce​
[/td][td]
ozm​
[/td][td]
Dry​
[/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
13
[/td][td]
Fluid Ounces​
[/td][td]
oz​
[/td][td]
Fluid Ounces​
[/td][td]
oz​
[/td][td]
Wet​
[/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
14
[/td][td]
Fluid Ounces​
[/td][td]
oz​
[/td][td]
Milliliter​
[/td][td]
ml​
[/td][td]
Wet​
[/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
15
[/td][td]
Fluid Ounces​
[/td][td]
oz​
[/td][td]
Cup​
[/td][td]
cup​
[/td][td]
Wet​
[/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
16
[/td][td]
Fluid Ounces​
[/td][td]
oz​
[/td][td]
Pint​
[/td][td]
us_pt​
[/td][td]
Wet​
[/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
17
[/td][td]
Fluid Ounces​
[/td][td]
oz​
[/td][td]
Quart​
[/td][td]
qt​
[/td][td]
Wet​
[/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
18
[/td][td]
Fluid Ounces​
[/td][td]
oz​
[/td][td]
Liter​
[/td][td]
l​
[/td][td]
Wet​
[/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
19
[/td][td]
Fluid Ounces​
[/td][td]
oz​
[/td][td]
Gallon​
[/td][td]
gal​
[/td][td]
Wet​
[/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
20
[/td][td]
Cup​
[/td][td]
cup​
[/td][td]
Ounce​
[/td][td]
ozm​
[/td][td]
Dry​
[/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
21
[/td][td]
Cup​
[/td][td]
cup​
[/td][td]
Fluid Ounces​
[/td][td]
oz​
[/td][td]
Wet​
[/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
22
[/td][td]
Cup​
[/td][td]
cup​
[/td][td]
Milliliter​
[/td][td]
ml​
[/td][td]
Wet​
[/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
23
[/td][td]
Cup​
[/td][td]
cup​
[/td][td]
Cup​
[/td][td]
cup​
[/td][td]
Wet​
[/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
24
[/td][td]
Cup​
[/td][td]
cup​
[/td][td]
Pint​
[/td][td]
us_pt​
[/td][td]
Wet​
[/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
25
[/td][td]
Cup​
[/td][td]
cup​
[/td][td]
Quart​
[/td][td]
qt​
[/td][td]
Wet​
[/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
26
[/td][td]
Cup​
[/td][td]
cup​
[/td][td]
Liter​
[/td][td]
l​
[/td][td]
Wet​
[/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
27
[/td][td]
Cup​
[/td][td]
cup​
[/td][td]
Gallon​
[/td][td]
gal​
[/td][td]
Wet​
[/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
28
[/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][/tr]
[/table]


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...


[Table="class: grid"][tr][td="bgcolor: #DCE6F1"][/td][td="bgcolor: #DCE6F1"]
A
[/td][td="bgcolor: #DCE6F1"]
B
[/td][td="bgcolor: #DCE6F1"]
C
[/td][td="bgcolor: #DCE6F1"]
D
[/td][td="bgcolor: #DCE6F1"]
E
[/td][td="bgcolor: #DCE6F1"]
F
[/td][td="bgcolor: #DCE6F1"]
G
[/td][td="bgcolor: #DCE6F1"]
H
[/td][td="bgcolor: #DCE6F1"]
I
[/td][/tr]
[tr][td="bgcolor: #DCE6F1"]
1
[/td][td]
Orig Mesrm't​
[/td][td]
Abbr.​
[/td][td]
Conv. Mesrm't​
[/td][td]
Abbr.​
[/td][td]
Type​
[/td][td][/td][td]
Orig Mesrm't​
[/td][td]
Conv. Mesrm't​
[/td][td]
Type​
[/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
2
[/td][td]
Milliliter​
[/td][td]
ml​
[/td][td]
Milliliter​
[/td][td]
ml​
[/td][td]
Wet​
[/td][td][/td][td]
Milliliter​
[/td][td]
Fluid Ounces​
[/td][td]
Wet​
[/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
3
[/td][td]
Milliliter​
[/td][td]
ml​
[/td][td]
Fluid Ounces​
[/td][td]
oz​
[/td][td]
Wet​
[/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
4
[/td][td]
Teaspoon​
[/td][td]
tsp​
[/td][td]
Teaspoon​
[/td][td]
tsp​
[/td][td]
Dry​
[/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
5
[/td][td]
Teaspoon​
[/td][td]
tsp​
[/td][td]
Tablespoon​
[/td][td]
tbs​
[/td][td]
Dry​
[/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
6
[/td][td]
Teaspoon​
[/td][td]
tsp​
[/td][td]
Fluid Ounces​
[/td][td]
oz​
[/td][td]
Wet​
[/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
7
[/td][td]
Teaspoon​
[/td][td]
tsp​
[/td][td]
Ounce​
[/td][td]
ozm​
[/td][td]
Dry​
[/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
8
[/td][td]
Teaspoon​
[/td][td]
tsp​
[/td][td]
Milliliter​
[/td][td]
ml​
[/td][td]
Wet​
[/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
9
[/td][td]
Tablespoon​
[/td][td]
tbs​
[/td][td]
Tablespoon​
[/td][td]
tbs​
[/td][td]
Dry​
[/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
10
[/td][td]
Tablespoon​
[/td][td]
tbs​
[/td][td]
Teaspoon​
[/td][td]
tsp​
[/td][td]
Dry​
[/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
11
[/td][td]
Tablespoon​
[/td][td]
tbs​
[/td][td]
Fluid Ounces​
[/td][td]
oz​
[/td][td]
Wet​
[/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
12
[/td][td]
Tablespoon​
[/td][td]
tbs​
[/td][td]
Ounce​
[/td][td]
ozm​
[/td][td]
Dry​
[/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
13
[/td][td]
Fluid Ounces​
[/td][td]
oz​
[/td][td]
Fluid Ounces​
[/td][td]
oz​
[/td][td]
Wet​
[/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
14
[/td][td]
Fluid Ounces​
[/td][td]
oz​
[/td][td]
Milliliter​
[/td][td]
ml​
[/td][td]
Wet​
[/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
15
[/td][td]
Fluid Ounces​
[/td][td]
oz​
[/td][td]
Cup​
[/td][td]
cup​
[/td][td]
Wet​
[/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
16
[/td][td]
Fluid Ounces​
[/td][td]
oz​
[/td][td]
Pint​
[/td][td]
us_pt​
[/td][td]
Wet​
[/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
17
[/td][td]
Fluid Ounces​
[/td][td]
oz​
[/td][td]
Quart​
[/td][td]
qt​
[/td][td]
Wet​
[/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
18
[/td][td]
Fluid Ounces​
[/td][td]
oz​
[/td][td]
Liter​
[/td][td]
l​
[/td][td]
Wet​
[/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
19
[/td][td]
Fluid Ounces​
[/td][td]
oz​
[/td][td]
Gallon​
[/td][td]
gal​
[/td][td]
Wet​
[/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
20
[/td][td]
Cup​
[/td][td]
cup​
[/td][td]
Ounce​
[/td][td]
ozm​
[/td][td]
Dry​
[/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
21
[/td][td]
Cup​
[/td][td]
cup​
[/td][td]
Fluid Ounces​
[/td][td]
oz​
[/td][td]
Wet​
[/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
22
[/td][td]
Cup​
[/td][td]
cup​
[/td][td]
Milliliter​
[/td][td]
ml​
[/td][td]
Wet​
[/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
23
[/td][td]
Cup​
[/td][td]
cup​
[/td][td]
Cup​
[/td][td]
cup​
[/td][td]
Wet​
[/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
24
[/td][td]
Cup​
[/td][td]
cup​
[/td][td]
Pint​
[/td][td]
us_pt​
[/td][td]
Wet​
[/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
25
[/td][td]
Cup​
[/td][td]
cup​
[/td][td]
Quart​
[/td][td]
qt​
[/td][td]
Wet​
[/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
26
[/td][td]
Cup​
[/td][td]
cup​
[/td][td]
Liter​
[/td][td]
l​
[/td][td]
Wet​
[/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
27
[/td][td]
Cup​
[/td][td]
cup​
[/td][td]
Gallon​
[/td][td]
gal​
[/td][td]
Wet​
[/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
28
[/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][/tr]
[/table]


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,223,230
Messages
6,170,883
Members
452,364
Latest member
springate

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