Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 709
Default Finding state that contains employees biggest sale

I have data like this

EMPLOYEE SALE STATE
Joe 10.00 PA
Joe 20.00 VA
Sue 5.00 TX
Sue 10.00 WA

For each employee, how do I find the state that corresponds to the largest
sale. For example, for Joe this would be VA since his largest sale of 20.00
was to VA.

--
Richard
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default Finding state that contains employees biggest sale

one way:

=INDEX($C$1:$C$4,MATCH(MAX(($A$1:$A$4="Joe")*($B$1 :$B$4)),$B$1:$B$4,0))

Enter with Ctrl+Shift+Enter

Substitute "Joe" with cell containing name

"Richard" wrote:

I have data like this

EMPLOYEE SALE STATE
Joe 10.00 PA
Joe 20.00 VA
Sue 5.00 TX
Sue 10.00 WA

For each employee, how do I find the state that corresponds to the largest
sale. For example, for Joe this would be VA since his largest sale of 20.00
was to VA.

--
Richard

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default Finding state that contains employees biggest sale

..... no it doesn't!!!

"Toppers" wrote:

one way:

=INDEX($C$1:$C$4,MATCH(MAX(($A$1:$A$4="Joe")*($B$1 :$B$4)),$B$1:$B$4,0))

Enter with Ctrl+Shift+Enter

Substitute "Joe" with cell containing name

"Richard" wrote:

I have data like this

EMPLOYEE SALE STATE
Joe 10.00 PA
Joe 20.00 VA
Sue 5.00 TX
Sue 10.00 WA

For each employee, how do I find the state that corresponds to the largest
sale. For example, for Joe this would be VA since his largest sale of 20.00
was to VA.

--
Richard

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,939
Default Finding state that contains employees biggest sale

How about a pivot table. Place your cursor in the data set and select Data -
Pivot Table (Brings up the wizard. You can follow the wizard or more likely
just select Finish)

Place the names in the left column and then the state next to it. In the
center section add the amounts. Now right click on the State field and select
Field Settings - Advanced. Change the order to desending and Select Show Top
(1).

You may want to get rid of Subtotals and a few other things just to clean it
up a tad...
--
HTH...

Jim Thomlinson


"Richard" wrote:

I have data like this

EMPLOYEE SALE STATE
Joe 10.00 PA
Joe 20.00 VA
Sue 5.00 TX
Sue 10.00 WA

For each employee, how do I find the state that corresponds to the largest
sale. For example, for Joe this would be VA since his largest sale of 20.00
was to VA.

--
Richard

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Finding state that contains employees biggest sale

Array entered:

=INDEX(C1:C4,MATCH(1,(A1:A4="Joe")*(B1:B4=MAX(IF(A 1:A4="Joe",B1:B4))),0))

--
Biff
Microsoft Excel MVP


"Toppers" wrote in message
...
.... no it doesn't!!!

"Toppers" wrote:

one way:

=INDEX($C$1:$C$4,MATCH(MAX(($A$1:$A$4="Joe")*($B$1 :$B$4)),$B$1:$B$4,0))

Enter with Ctrl+Shift+Enter

Substitute "Joe" with cell containing name

"Richard" wrote:

I have data like this

EMPLOYEE SALE STATE
Joe 10.00 PA
Joe 20.00 VA
Sue 5.00 TX
Sue 10.00 WA

For each employee, how do I find the state that corresponds to the
largest
sale. For example, for Joe this would be VA since his largest sale of
20.00
was to VA.

--
Richard





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default Finding state that contains employees biggest sale

.. what I intended ...

=INDEX($C$2:$C$5,MATCH(MAX(($A$2:$A$5="Joe")*($B$2 :$B$5)),($A$2:$A$5="Joe")*($B$2:$B$5),0))

entered with Ctrl+Shift+Enter

"Toppers" wrote:

.... no it doesn't!!!

"Toppers" wrote:

one way:

=INDEX($C$1:$C$4,MATCH(MAX(($A$1:$A$4="Joe")*($B$1 :$B$4)),$B$1:$B$4,0))

Enter with Ctrl+Shift+Enter

Substitute "Joe" with cell containing name

"Richard" wrote:

I have data like this

EMPLOYEE SALE STATE
Joe 10.00 PA
Joe 20.00 VA
Sue 5.00 TX
Sue 10.00 WA

For each employee, how do I find the state that corresponds to the largest
sale. For example, for Joe this would be VA since his largest sale of 20.00
was to VA.

--
Richard

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 709
Default Finding state that contains employees biggest sale

Works great. I'm just learning the power of the match, index combinations.
--
Richard


"Toppers" wrote:

. what I intended ...

=INDEX($C$2:$C$5,MATCH(MAX(($A$2:$A$5="Joe")*($B$2 :$B$5)),($A$2:$A$5="Joe")*($B$2:$B$5),0))

entered with Ctrl+Shift+Enter

"Toppers" wrote:

.... no it doesn't!!!

"Toppers" wrote:

one way:

=INDEX($C$1:$C$4,MATCH(MAX(($A$1:$A$4="Joe")*($B$1 :$B$4)),$B$1:$B$4,0))

Enter with Ctrl+Shift+Enter

Substitute "Joe" with cell containing name

"Richard" wrote:

I have data like this

EMPLOYEE SALE STATE
Joe 10.00 PA
Joe 20.00 VA
Sue 5.00 TX
Sue 10.00 WA

For each employee, how do I find the state that corresponds to the largest
sale. For example, for Joe this would be VA since his largest sale of 20.00
was to VA.

--
Richard

  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 709
Default Finding state that contains employees biggest sale

I have pivot close to working. What do I enter as field under Select Show Top?
It seems to only offer one value, Sales - but that doesn't work.
--
Richard


"Jim Thomlinson" wrote:

How about a pivot table. Place your cursor in the data set and select Data -
Pivot Table (Brings up the wizard. You can follow the wizard or more likely
just select Finish)

Place the names in the left column and then the state next to it. In the
center section add the amounts. Now right click on the State field and select
Field Settings - Advanced. Change the order to desending and Select Show Top
(1).

You may want to get rid of Subtotals and a few other things just to clean it
up a tad...
--
HTH...

Jim Thomlinson


"Richard" wrote:

I have data like this

EMPLOYEE SALE STATE
Joe 10.00 PA
Joe 20.00 VA
Sue 5.00 TX
Sue 10.00 WA

For each employee, how do I find the state that corresponds to the largest
sale. For example, for Joe this would be VA since his largest sale of 20.00
was to VA.

--
Richard

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
Converting State Names to State Abbreviations aznate Excel Discussion (Misc queries) 1 October 20th 06 06:52 AM
Finding a name with biggest number Handyy Excel Worksheet Functions 11 February 6th 06 12:06 PM
If function with date; if sale is Oct place sale $ amount here [email protected] Excel Worksheet Functions 1 January 30th 06 09:07 PM
Would u help me with a Biggest Movers type of comparison? skuba Excel Discussion (Misc queries) 13 January 24th 06 01:27 AM
skus in columm a for each sale, qty. of skus sold, each sale in co confused1 Excel Worksheet Functions 1 June 11th 05 09:44 PM


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