close

I have a table similar to the below:

Red Blue Green
Small A B C
Medium D E F
Large G H I

I want to be able to enter a colour and a size in separate cells, and
then in another cell have a formula which tells me what the result is
(e.g. if I entered 'Medium' and 'Blue' the result would be 'E').

I assume the answer lies in combining a VLOOKUP with a HLOOKUP, but I
can't work out how to do it. I guess I would have to change the
criteria to be in alphabetical order as well (e.g. Large, Medium, Small
and Blue, Green, Red) for it to work.

Hope someone can help!

Thanks

Catherine--
CDM
------------------------------------------------------------------------
CDM's Profile: www.excelforum.com/member.php...oamp;userid=32339
View this thread: www.excelforum.com/showthread...hreadid=521007
www.excelforum.com/showthread...39#post1518439

Here's your answer--
davesexcel
------------------------------------------------------------------------
davesexcel's Profile: www.excelforum.com/member.php...oamp;userid=31708
View this thread: www.excelforum.com/showthread...hreadid=521007Or you could use =index(match())

You may want to read Debra Dalgleish's notes:
www.contextures.com/xlFunctions03.html

Look at examples 2 amp; 3.
CDM wrote:
gt;
gt; I have a table similar to the below:
gt;
gt; Red Blue Green
gt; Small A B C
gt; Medium D E F
gt; Large G H I
gt;
gt; I want to be able to enter a colour and a size in separate cells, and
gt; then in another cell have a formula which tells me what the result is
gt; (e.g. if I entered 'Medium' and 'Blue' the result would be 'E').
gt;
gt; I assume the answer lies in combining a VLOOKUP with a HLOOKUP, but I
gt; can't work out how to do it. I guess I would have to change the
gt; criteria to be in alphabetical order as well (e.g. Large, Medium, Small
gt; and Blue, Green, Red) for it to work.
gt;
gt; Hope someone can help!
gt;
gt; Thanks
gt;
gt; Catherine
gt;
gt; --
gt; CDM
gt; ------------------------------------------------------------------------
gt; CDM's Profile: www.excelforum.com/member.php...oamp;userid=32339
gt; View this thread: www.excelforum.com/showthread...hreadid=521007

--

Dave Peterson

Use INDEX and MATCH functions.

Here's an example: cjoint.com/?dknHTOWGNZ

HTH
--
AP

quot;CDMquot; gt; a écrit dans le
message de ...
gt;
gt; I have a table similar to the below:
gt;
gt; Red Blue Green
gt; Small A B C
gt; Medium D E F
gt; Large G H I
gt;
gt; I want to be able to enter a colour and a size in separate cells, and
gt; then in another cell have a formula which tells me what the result is
gt; (e.g. if I entered 'Medium' and 'Blue' the result would be 'E').
gt;
gt; I assume the answer lies in combining a VLOOKUP with a HLOOKUP, but I
gt; can't work out how to do it. I guess I would have to change the
gt; criteria to be in alphabetical order as well (e.g. Large, Medium, Small
gt; and Blue, Green, Red) for it to work.
gt;
gt; Hope someone can help!
gt;
gt; Thanks
gt;
gt; Catherine
gt;
gt;
gt; --
gt; CDM
gt; ------------------------------------------------------------------------
gt; CDM's Profile:
www.excelforum.com/member.php...oamp;userid=32339
gt; View this thread: www.excelforum.com/showthread...hreadid=521007
gt;

Thanks for your help everyone - I have used Dave Peterson's suggestion,
and it works really well.--
CDM
------------------------------------------------------------------------
CDM's Profile: www.excelforum.com/member.php...oamp;userid=32339
View this thread: www.excelforum.com/showthread...hreadid=521007Highlight your table and check Insert|Name|Create (note that Top row and
Left Column are checked). Then if the separate cells are E1 and F1,
enter in whatever output cell you choose =INDIRECT(E1) INDIRECT(F1)

Alan Beban

CDM wrote:
gt; I have a table similar to the below:
gt;
gt; Red Blue Green
gt; Small A B C
gt; Medium D E F
gt; Large G H I
gt;
gt; I want to be able to enter a colour and a size in separate cells, and
gt; then in another cell have a formula which tells me what the result is
gt; (e.g. if I entered 'Medium' and 'Blue' the result would be 'E').
gt;
gt; I assume the answer lies in combining a VLOOKUP with a HLOOKUP, but I
gt; can't work out how to do it. I guess I would have to change the
gt; criteria to be in alphabetical order as well (e.g. Large, Medium, Small
gt; and Blue, Green, Red) for it to work.
gt;
gt; Hope someone can help!
gt;
gt; Thanks
gt;
gt; Catherine
gt;
gt;

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 software 的頭像
    software

    software

    software 發表在 痞客邦 留言(0) 人氣()