Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
alehm
 
Posts: n/a
Default Match formula that pulls unique values from another column?


have a tough one he

I have a report that shows shipped orders (column A) and the carrier
used for that order (column B). Since the order number in Column A is
repeated for every item shipped, Column A is not reliable for unique
order numbers. Also different orders have different carriers in Column
B.

What I am needing is for every match of a certain carrier (column B) to
pull back unique order numbers in Column A.


Here is a visual example if a better explination is needed:

Order Carrier
1 UPS
1 UPS
2 FedEx
3 UPS
3 UPS
3 UPS
4 UPS
4 UPS
5 FedEx

From the list above, if I wanted to know how many unique orders shipped
UPS is there a formula that exists to give me this information?


--
alehm
------------------------------------------------------------------------
alehm's Profile: http://www.excelforum.com/member.php...o&userid=27077
View this thread: http://www.excelforum.com/showthread...hreadid=465946

  #2   Report Post  
paige
 
Posts: n/a
Default

you should be able to do the following:

data/filter/advanced filter function....do this for column a, then all you
need to do is a vlookup of the carriers back into your unique column.



"alehm" wrote:


have a tough one he

I have a report that shows shipped orders (column A) and the carrier
used for that order (column B). Since the order number in Column A is
repeated for every item shipped, Column A is not reliable for unique
order numbers. Also different orders have different carriers in Column
B.

What I am needing is for every match of a certain carrier (column B) to
pull back unique order numbers in Column A.


Here is a visual example if a better explination is needed:

Order Carrier
1 UPS
1 UPS
2 FedEx
3 UPS
3 UPS
3 UPS
4 UPS
4 UPS
5 FedEx

From the list above, if I wanted to know how many unique orders shipped
UPS is there a formula that exists to give me this information?


--
alehm
------------------------------------------------------------------------
alehm's Profile: http://www.excelforum.com/member.php...o&userid=27077
View this thread: http://www.excelforum.com/showthread...hreadid=465946


  #3   Report Post  
paige
 
Posts: n/a
Default

or....

just make a list of your unique carries in row A. then so a sumif formula
for every time you get a number of orders for that carrier......

=SUMIF(range,criteria,sumrange)




"paige" wrote:

you should be able to do the following:

data/filter/advanced filter function....do this for column a, then all you
need to do is a vlookup of the carriers back into your unique column.



"alehm" wrote:


have a tough one he

I have a report that shows shipped orders (column A) and the carrier
used for that order (column B). Since the order number in Column A is
repeated for every item shipped, Column A is not reliable for unique
order numbers. Also different orders have different carriers in Column
B.

What I am needing is for every match of a certain carrier (column B) to
pull back unique order numbers in Column A.


Here is a visual example if a better explination is needed:

Order Carrier
1 UPS
1 UPS
2 FedEx
3 UPS
3 UPS
3 UPS
4 UPS
4 UPS
5 FedEx

From the list above, if I wanted to know how many unique orders shipped
UPS is there a formula that exists to give me this information?


--
alehm
------------------------------------------------------------------------
alehm's Profile: http://www.excelforum.com/member.php...o&userid=27077
View this thread: http://www.excelforum.com/showthread...hreadid=465946


  #4   Report Post  
swatsp0p
 
Posts: n/a
Default


Hi, Alehm: Not too tough... try this and adjust listed ranges to meet
your needs:

=SUMPRODUCT((A2:A100<"")*(B2:B100="UPS")/COUNTIF(A2:A100,A2:A100&""))

blank lines will be ignored.

In your example, this will return 3

HTH

Bruce


--
swatsp0p


------------------------------------------------------------------------
swatsp0p's Profile: http://www.excelforum.com/member.php...o&userid=15101
View this thread: http://www.excelforum.com/showthread...hreadid=465946

  #5   Report Post  
alehm
 
Posts: n/a
Default


swatsp0p Wrote:
Hi, Alehm: Not too tough... try this and adjust listed ranges to meet
your needs:

=SUMPRODUCT((A2:A100<"")*(B2:B100="UPS")/COUNTIF(A2:A100,A2:A100&""))

blank lines will be ignored.

In your example, this will return 3

HTH

Bruce


swatp0p:

This is exactly what I need except there is one problem I am having.

When presenting my example I used "UPS" as a carrier when in fact the
carrier is actually a number in my report "22709838". When I use your
formula and change UPS in your example to the actual carrier I am
matching against I get zero records. However, if I manually change that
number to text "UPS" on the report and formula then it works.

Is there a reason why the formula will work with text and not numeric
characters?


--
alehm
------------------------------------------------------------------------
alehm's Profile: http://www.excelforum.com/member.php...o&userid=27077
View this thread: http://www.excelforum.com/showthread...hreadid=465946



  #6   Report Post  
swatsp0p
 
Posts: n/a
Default


Alehm:

I can only guess that your 22709838 carrier number is entered as text.
Try enclosing the number in quotation marks ("22709838") in your
formula. By the way, if you are entering the quotes, then your number
is NOT text, therefore, remove the quotations marks.

A better option may be that you use a cell reference rather than the
exact entry. e.g.
=SUMPRODUCT((A2:A13<"")*(B2:B13=*_B2_*)/COUNTIF(A2:A13,A2:A13&""))

where *_B2_* holds the carrier information.

Either should solve your problem.

Good Luck

Bruce


--
swatsp0p


------------------------------------------------------------------------
swatsp0p's Profile: http://www.excelforum.com/member.php...o&userid=15101
View this thread: http://www.excelforum.com/showthread...hreadid=465946

  #7   Report Post  
alehm
 
Posts: n/a
Default


Bruce.

You're that man. Thanks for the kind help. And thanks to everyone else
who chipped in as well. It is much appreciated.


--
alehm
------------------------------------------------------------------------
alehm's Profile: http://www.excelforum.com/member.php...o&userid=27077
View this thread: http://www.excelforum.com/showthread...hreadid=465946

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Test IF Two Numeric Values Match (from two separate Dynamic Ranges) Sam via OfficeKB.com Excel Worksheet Functions 3 August 14th 05 12:20 AM
Count unique values and create list based on these values vipa2000 Excel Worksheet Functions 7 August 5th 05 01:17 AM
How do I copy cell values (derived from formula), not references? Matt in a spot of bother Excel Worksheet Functions 4 July 28th 05 08:09 AM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM
Formula for Searching & matching two values in excel Chris Excel Discussion (Misc queries) 1 January 7th 05 04:34 PM


All times are GMT +1. The time now is 12:25 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"