Hey!
I was able to figure out how to do a two-dimensional vlookup with the match function. But I also need to do a 2 dimension vlookup in the reverse order. (ex. bring the info from a list into a chart.) I've included a very simple example below to help.
Below is the information I am given: Both the fruit and the quanity columns are entered, but there are multiple sources of each, but only one combination of each. Ex. apple 1, apple 2, bannana 2
[TABLE="width: 215"]
<TBODY>[TR]
[TD]
fruit</SPAN>
[/TD]
[TD]quanity</SPAN>
[/TD]
[TD]price(each)</SPAN>
[/TD]
[/TR]
[TR]
[TD]apples </SPAN>
[/TD]
[TD="align: right"]1</SPAN>
[/TD]
[TD="align: right"]1.2</SPAN>
[/TD]
[/TR]
[TR]
[TD]apples </SPAN>
[/TD]
[TD="align: right"]2</SPAN>
[/TD]
[TD="align: right"]1</SPAN>
[/TD]
[/TR]
[TR]
[TD]apples </SPAN>
[/TD]
[TD="align: right"]3</SPAN>
[/TD]
[TD="align: right"]0.9</SPAN>
[/TD]
[/TR]
[TR]
[TD]bananas</SPAN>
[/TD]
[TD="align: right"]1</SPAN>
[/TD]
[TD="align: right"]0.95</SPAN>
[/TD]
[/TR]
[TR]
[TD]bananas</SPAN>
[/TD]
[TD="align: right"]2</SPAN>
[/TD]
[TD="align: right"]0.9</SPAN>
[/TD]
[/TR]
[TR]
[TD]bananas</SPAN>
[/TD]
[TD="align: right"]3</SPAN>
[/TD]
[TD="align: right"]0.85</SPAN>
[/TD]
[/TR]
[TR]
[TD]oranges</SPAN>
[/TD]
[TD="align: right"]1</SPAN>
[/TD]
[TD="align: right"]1.25</SPAN>
[/TD]
[/TR]
[TR]
[TD]oranges</SPAN>
[/TD]
[TD="align: right"]2</SPAN>
[/TD]
[TD="align: right"]1.15</SPAN>
[/TD]
[/TR]
[TR]
[TD]oranges</SPAN>
[/TD]
[TD="align: right"]3</SPAN>
[/TD]
[TD="align: right"]1.05</SPAN>
[/TD]
[/TR]
</TBODY>[/TABLE]
I need the information to populate into a chart like the one below:
[TABLE="width: 192"]
<TBODY>[TR]
[TD="class: xl65, width: 64, bgcolor: transparent"][/TD]
[TD="class: xl65, width: 64, bgcolor: transparent, align: right"]1
[/TD]
[TD="class: xl65, width: 64, bgcolor: transparent, align: right"]2
[/TD]
[TD="class: xl65, width: 64, bgcolor: transparent, align: right"]3
[/TD]
[/TR]
[TR]
[TD="class: xl65, bgcolor: transparent"]apples
[/TD]
[TD="class: xl65, bgcolor: transparent"]x
[/TD]
[TD="class: xl65, bgcolor: transparent"][/TD]
[TD="class: xl65, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl65, bgcolor: transparent"]oranges
[/TD]
[TD="class: xl65, bgcolor: transparent"][/TD]
[TD="class: xl65, bgcolor: transparent"][/TD]
[TD="class: xl65, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl65, bgcolor: transparent"]bananas
[/TD]
[TD="class: xl65, bgcolor: transparent"][/TD]
[TD="class: xl65, bgcolor: transparent"][/TD]
[TD="class: xl65, bgcolor: transparent"][/TD]
[/TR]
</TBODY>[/TABLE]
So where I entered an "X" in the correspond Apple & 1 box should be 1.2 and the same for the rest of the information.
Please help! I have been trying to figure this out for a week and cannot come up with a solution.
I was able to figure out how to do a two-dimensional vlookup with the match function. But I also need to do a 2 dimension vlookup in the reverse order. (ex. bring the info from a list into a chart.) I've included a very simple example below to help.
Below is the information I am given: Both the fruit and the quanity columns are entered, but there are multiple sources of each, but only one combination of each. Ex. apple 1, apple 2, bannana 2
[TABLE="width: 215"]
<TBODY>[TR]
[TD]
fruit</SPAN>
[/TD]
[TD]quanity</SPAN>
[/TD]
[TD]price(each)</SPAN>
[/TD]
[/TR]
[TR]
[TD]apples </SPAN>
[/TD]
[TD="align: right"]1</SPAN>
[/TD]
[TD="align: right"]1.2</SPAN>
[/TD]
[/TR]
[TR]
[TD]apples </SPAN>
[/TD]
[TD="align: right"]2</SPAN>
[/TD]
[TD="align: right"]1</SPAN>
[/TD]
[/TR]
[TR]
[TD]apples </SPAN>
[/TD]
[TD="align: right"]3</SPAN>
[/TD]
[TD="align: right"]0.9</SPAN>
[/TD]
[/TR]
[TR]
[TD]bananas</SPAN>
[/TD]
[TD="align: right"]1</SPAN>
[/TD]
[TD="align: right"]0.95</SPAN>
[/TD]
[/TR]
[TR]
[TD]bananas</SPAN>
[/TD]
[TD="align: right"]2</SPAN>
[/TD]
[TD="align: right"]0.9</SPAN>
[/TD]
[/TR]
[TR]
[TD]bananas</SPAN>
[/TD]
[TD="align: right"]3</SPAN>
[/TD]
[TD="align: right"]0.85</SPAN>
[/TD]
[/TR]
[TR]
[TD]oranges</SPAN>
[/TD]
[TD="align: right"]1</SPAN>
[/TD]
[TD="align: right"]1.25</SPAN>
[/TD]
[/TR]
[TR]
[TD]oranges</SPAN>
[/TD]
[TD="align: right"]2</SPAN>
[/TD]
[TD="align: right"]1.15</SPAN>
[/TD]
[/TR]
[TR]
[TD]oranges</SPAN>
[/TD]
[TD="align: right"]3</SPAN>
[/TD]
[TD="align: right"]1.05</SPAN>
[/TD]
[/TR]
</TBODY>[/TABLE]
I need the information to populate into a chart like the one below:
[TABLE="width: 192"]
<TBODY>[TR]
[TD="class: xl65, width: 64, bgcolor: transparent"][/TD]
[TD="class: xl65, width: 64, bgcolor: transparent, align: right"]1
[/TD]
[TD="class: xl65, width: 64, bgcolor: transparent, align: right"]2
[/TD]
[TD="class: xl65, width: 64, bgcolor: transparent, align: right"]3
[/TD]
[/TR]
[TR]
[TD="class: xl65, bgcolor: transparent"]apples
[/TD]
[TD="class: xl65, bgcolor: transparent"]x
[/TD]
[TD="class: xl65, bgcolor: transparent"][/TD]
[TD="class: xl65, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl65, bgcolor: transparent"]oranges
[/TD]
[TD="class: xl65, bgcolor: transparent"][/TD]
[TD="class: xl65, bgcolor: transparent"][/TD]
[TD="class: xl65, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl65, bgcolor: transparent"]bananas
[/TD]
[TD="class: xl65, bgcolor: transparent"][/TD]
[TD="class: xl65, bgcolor: transparent"][/TD]
[TD="class: xl65, bgcolor: transparent"][/TD]
[/TR]
</TBODY>[/TABLE]
So where I entered an "X" in the correspond Apple & 1 box should be 1.2 and the same for the rest of the information.
Please help! I have been trying to figure this out for a week and cannot come up with a solution.