#1   Report Post  
Scott
 
Posts: n/a
Default Lookup Problem

Hello,

I need some help with a lookup formula. In my data set, I have some
customers shown multiple times - and I don't want to delete multiple listings
in my data. I also have a column looking at the data and I want my formula to
return the maximum amount for a particular customer.

Example:
Customer (A1) Sales (B1) Max Cust Value - lookup formula (C1)
Microsoft $0 $200
Intel $10 $20
Microsoft $100 $200
Intel $20 $20
Microsoft $75 $200
Microsoft $200 $200

Formula result I'm looking for: In cell C2, I want a formula that would look
at all the Microsoft values and return the maximum value which in this case
would be $200. Similarly, I'd want cell C3 to return $20 for the max Intel
value.

Thanks in advance for your help.
-Scott
  #2   Report Post  
bj
 
Posts: n/a
Default

try in c1
=max(if(A1:A100=a1,B1:B100,0)
entered as a array (control shift enter)then copy this down

"Scott" wrote:

Hello,

I need some help with a lookup formula. In my data set, I have some
customers shown multiple times - and I don't want to delete multiple listings
in my data. I also have a column looking at the data and I want my formula to
return the maximum amount for a particular customer.

Example:
Customer (A1) Sales (B1) Max Cust Value - lookup formula (C1)
Microsoft $0 $200
Intel $10 $20
Microsoft $100 $200
Intel $20 $20
Microsoft $75 $200
Microsoft $200 $200

Formula result I'm looking for: In cell C2, I want a formula that would look
at all the Microsoft values and return the maximum value which in this case
would be $200. Similarly, I'd want cell C3 to return $20 for the max Intel
value.

Thanks in advance for your help.
-Scott

  #3   Report Post  
Domenic
 
Posts: n/a
Default

Try...

C2, copied down:

=MAX(IF($A$2:$A$7=A2,$B$2:$B$7))

....confirmed with CONTROL+SHIFT+ENTER, not just ENTER.

Hope this helps!

In article ,
"Scott" wrote:

Hello,

I need some help with a lookup formula. In my data set, I have some
customers shown multiple times - and I don't want to delete multiple listings
in my data. I also have a column looking at the data and I want my formula to
return the maximum amount for a particular customer.

Example:
Customer (A1) Sales (B1) Max Cust Value - lookup formula (C1)
Microsoft $0 $200
Intel $10 $20
Microsoft $100 $200
Intel $20 $20
Microsoft $75 $200
Microsoft $200 $200

Formula result I'm looking for: In cell C2, I want a formula that would look
at all the Microsoft values and return the maximum value which in this case
would be $200. Similarly, I'd want cell C3 to return $20 for the max Intel
value.

Thanks in advance for your help.
-Scott

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
Lookup Problem Scott Excel Worksheet Functions 0 April 18th 05 08:07 PM
Lookup Function Problem seve Excel Discussion (Misc queries) 9 February 28th 05 02:46 AM
Lookup Problem StephanieH Excel Worksheet Functions 1 December 20th 04 06:17 PM
HELP -- probably a LOOKUP problem Liz-In-USA Excel Discussion (Misc queries) 3 December 9th 04 12:18 AM
Problem with LOOKUP & VLOOKUP ramsdesk Excel Worksheet Functions 1 November 17th 04 07:52 AM


All times are GMT +1. The time now is 01:43 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"