close

I have a column of 5 digit numbers, the first 3 digits are an item code and
the last 2 identify which customer it is going to. In an adjacent column I
have the quantity of the product is being pulled by the customer.

How do I lookup the last 2 digits, to identify the customer, and get the
quantity that is being pulled without having to go through the sheet of
hundreds of different orders?

I am stuck.

Let's say you order numbers are in column A and amounts are in column B. In
C1 enter

=RIGHT(A1,2) and copy down. This will display your customer id.

Next pull_down:

Data gt; Filter gt; Autofilter This will permit you to select any particular
customer id and view only that customer's rows of data.
--
Gary''s Studentquot;cmoorequot; wrote:

gt; I have a column of 5 digit numbers, the first 3 digits are an item code and
gt; the last 2 identify which customer it is going to. In an adjacent column I
gt; have the quantity of the product is being pulled by the customer.
gt;
gt; How do I lookup the last 2 digits, to identify the customer, and get the
gt; quantity that is being pulled without having to go through the sheet of
gt; hundreds of different orders?
gt;
gt; I am stuck.


You could combine the SUMPRODUCT and RIGHT functions.

In C2

=SUMPRODUCT((RIGHT(A1:A500,2)*1=Your customer ID)*(B1:B500))

If you also need to incorporate the product number then:

=SUMPRODUCT((RIGHT(A1:A500,2)*1=Your customer
ID)*(LEFT(A1:A500,3)*1=Your Product number)*(B1:B500))

Does that help?Steve--
SteveG
------------------------------------------------------------------------
SteveG's Profile: www.excelforum.com/member.php...foamp;userid=7571
View this thread: www.excelforum.com/showthread...hreadid=538172This will total quantity for customer 44

=SUMPRODUCT(--(RIGHT(A2:A10,2)=quot;44quot;),--(B2:B10))

HTH

quot;cmoorequot; wrote:

gt; I have a column of 5 digit numbers, the first 3 digits are an item code and
gt; the last 2 identify which customer it is going to. In an adjacent column I
gt; have the quantity of the product is being pulled by the customer.
gt;
gt; How do I lookup the last 2 digits, to identify the customer, and get the
gt; quantity that is being pulled without having to go through the sheet of
gt; hundreds of different orders?
gt;
gt; I am stuck.

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

    software

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