close

I am having some trouble with LOOKUP()

Sample Data:
A B
Jim AA
Joe AA
Jack AA
3 AA Count
Billy GG
Bobby GG
2 GG Count
5 Grand Count
=LOOKUP(quot;GG Countquot;, $B$1:$B$20, $A$1:$A$20)

Retrun 5, not 2 as expected

=LOOKUP(quot;AA Countquot;, $B$1:$B$20, $A$1:$A$20)

Returns 3, as expected

What am I doing wrong?
melchman Wrote:
gt; I am having some trouble with LOOKUP()
gt;
gt; Sample Data:
gt; A B
gt; Jim AA
gt; Joe AA
gt; Jack AA
gt; 3 AA Count
gt; Billy GG
gt; Bobby GG
gt; 2 GG Count
gt; 5 Grand Count
gt;
gt;
gt;
gt; =LOOKUP(quot;GG Countquot;, $B$1:$B$20, $A$1:$A$20)
gt;
gt; Retrun 5, not 2 as expected
gt;
gt; =LOOKUP(quot;AA Countquot;, $B$1:$B$20, $A$1:$A$20)
gt;
gt; Returns 3, as expected
gt;
gt; What am I doing wrong?

Hi
I copied and pasted your data and formulas, they both seem to work for
me--
davesexcel
------------------------------------------------------------------------
davesexcel's Profile: www.excelforum.com/member.php...oamp;userid=31708
View this thread: www.excelforum.com/showthread...hreadid=527332
Tried replicating your problem unsuccessfully. The values returned in
my test matched your original expectations. Perhaps you should post
your cut-down file.--
John James
------------------------------------------------------------------------
John James's Profile: www.excelforum.com/member.php...oamp;userid=32690
View this thread: www.excelforum.com/showthread...hreadid=527332
I consolidated the file to 50 entries and reformed the LOOKUP()s -------------------------------------------------------------------
|Filename: LookupBook.zip |
|Download: www.excelforum.com/attachment.php?postid=4583 |
-------------------------------------------------------------------

--
melchman
------------------------------------------------------------------------
melchman's Profile: www.excelforum.com/member.php...oamp;userid=33159
View this thread: www.excelforum.com/showthread...hreadid=527332
Try this I get nine instead of Fourty Nine

=COUNTIF($B$100:$B$153,quot;UNDERWRITERSquot;)--
davesexcel
------------------------------------------------------------------------
davesexcel's Profile: www.excelforum.com/member.php...oamp;userid=31708
View this thread: www.excelforum.com/showthread...hreadid=527332

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

    software

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