Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 34
Default Large Based on Criteria

I have a spreadsheet in which data is imported daily. It records
transactions of each client. The general set-up is as follows:

(Customer) (Amount)
A $50.00
B $187.00
B $69.00
C $58.00
C $43.00
C $82.00
D $199.00
D $25.00

My problem is the information isn't static. When I download it, each
customer is never on a specific row or in a specific column. Sometimes
Customer A will purchase only 1 item or even no items, in which they wouldn't
appear on the report. Customer B might go on a shopping spree and purchase
50 items once a year. I've already got a sumif formula in place to tell me
the total purchased by each customer, but I want to show the largest ticket
item for each customer. Is this even possible since my report size and range
change daily?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default Large Based on Criteria

=MAX((A2:A9="C")*(B2:B9))

Enter with Ctrl+Shift+Enter

"Peanut" wrote:

I have a spreadsheet in which data is imported daily. It records
transactions of each client. The general set-up is as follows:

(Customer) (Amount)
A $50.00
B $187.00
B $69.00
C $58.00
C $43.00
C $82.00
D $199.00
D $25.00

My problem is the information isn't static. When I download it, each
customer is never on a specific row or in a specific column. Sometimes
Customer A will purchase only 1 item or even no items, in which they wouldn't
appear on the report. Customer B might go on a shopping spree and purchase
50 items once a year. I've already got a sumif formula in place to tell me
the total purchased by each customer, but I want to show the largest ticket
item for each customer. Is this even possible since my report size and range
change daily?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 34
Default Large Based on Criteria

Thanks, that did work!
What is the significance of Ctrl+Shift+Enter?



"Toppers" wrote:

=MAX((A2:A9="C")*(B2:B9))

Enter with Ctrl+Shift+Enter

"Peanut" wrote:

I have a spreadsheet in which data is imported daily. It records
transactions of each client. The general set-up is as follows:

(Customer) (Amount)
A $50.00
B $187.00
B $69.00
C $58.00
C $43.00
C $82.00
D $199.00
D $25.00

My problem is the information isn't static. When I download it, each
customer is never on a specific row or in a specific column. Sometimes
Customer A will purchase only 1 item or even no items, in which they wouldn't
appear on the report. Customer B might go on a shopping spree and purchase
50 items once a year. I've already got a sumif formula in place to tell me
the total purchased by each customer, but I want to show the largest ticket
item for each customer. Is this even possible since my report size and range
change daily?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default Large Based on Criteria

The formula is an "array formula" and this is entered using Ctrl+Shift+Enter

=MAX((A2:A9="C")*(B2:B9))

so it calculates A2*B2, A3*B3 etc

if A2 (etc) ="C" the value is 1, otherwise 0 so results for "An" not equal
to "C" will be 0 and the results for A="C" will be the corresponding values
in B (58,43 and 82).

so MAX=82

HTH




"Peanut" wrote:

Thanks, that did work!
What is the significance of Ctrl+Shift+Enter?



"Toppers" wrote:

=MAX((A2:A9="C")*(B2:B9))

Enter with Ctrl+Shift+Enter

"Peanut" wrote:

I have a spreadsheet in which data is imported daily. It records
transactions of each client. The general set-up is as follows:

(Customer) (Amount)
A $50.00
B $187.00
B $69.00
C $58.00
C $43.00
C $82.00
D $199.00
D $25.00

My problem is the information isn't static. When I download it, each
customer is never on a specific row or in a specific column. Sometimes
Customer A will purchase only 1 item or even no items, in which they wouldn't
appear on the report. Customer B might go on a shopping spree and purchase
50 items once a year. I've already got a sumif formula in place to tell me
the total purchased by each customer, but I want to show the largest ticket
item for each customer. Is this even possible since my report size and range
change daily?

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 34
Default Large Based on Criteria

You are wonderful. Thanks again,
Peanut



"Toppers" wrote:

The formula is an "array formula" and this is entered using Ctrl+Shift+Enter

=MAX((A2:A9="C")*(B2:B9))

so it calculates A2*B2, A3*B3 etc

if A2 (etc) ="C" the value is 1, otherwise 0 so results for "An" not equal
to "C" will be 0 and the results for A="C" will be the corresponding values
in B (58,43 and 82).

so MAX=82

HTH




"Peanut" wrote:

Thanks, that did work!
What is the significance of Ctrl+Shift+Enter?



"Toppers" wrote:

=MAX((A2:A9="C")*(B2:B9))

Enter with Ctrl+Shift+Enter

"Peanut" wrote:

I have a spreadsheet in which data is imported daily. It records
transactions of each client. The general set-up is as follows:

(Customer) (Amount)
A $50.00
B $187.00
B $69.00
C $58.00
C $43.00
C $82.00
D $199.00
D $25.00

My problem is the information isn't static. When I download it, each
customer is never on a specific row or in a specific column. Sometimes
Customer A will purchase only 1 item or even no items, in which they wouldn't
appear on the report. Customer B might go on a shopping spree and purchase
50 items once a year. I've already got a sumif formula in place to tell me
the total purchased by each customer, but I want to show the largest ticket
item for each customer. Is this even possible since my report size and range
change daily?

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
Add a row based on other criteria Joe Gieder Excel Worksheet Functions 4 June 15th 07 06:22 PM
Large function with multiple criteria Adeline Excel Discussion (Misc queries) 2 September 8th 06 05:33 PM
data filtering based on last two digits of large number Margo Guda Excel Worksheet Functions 13 March 20th 06 03:22 AM
dsum returns 0 if criteria range too large JT Spitz Excel Worksheet Functions 1 March 1st 06 11:51 PM
Regrouping large lists into areas based on zip codes Morris DS Excel Discussion (Misc queries) 2 July 22nd 05 02:17 PM


All times are GMT +1. The time now is 11:01 PM.

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

About Us

"It's about Microsoft Excel"