max value and average

fx1

New Member
Joined
Sep 24, 2004
Messages
8
Hi,

I have a list of parts along with prices some parts repeat (different PO).
I need a formula that calculates average and max for each part.
I have 2 worksheets already with unique part id`s one for average and one for max value.

I used if statement but something is not working.

Please help

Thnx
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
what I`m trying to use is

IF(MAX(LIST=CELL-from the unique list,Price range))

it gives me the max value from the whole list not for the particular part id.

I~m basing it on the SUMIF fromula

Thnx
 
Upvote 0
for now I`m gonna use the SUBTOTALS
but the problem I`m facing is not being able to remove the `Total` on some part when using Replace option

but I still would like somebody to let me know the formula for future reference and knowledge.
 
Upvote 0
Try this:

Average formula:
=SUMIF(A1:A100,"Part1",B1:B100)/MAX(COUNTIF(A1:A100,"Part1"),1)

MAX formula:
=MAX(IF(A1:A100="Part1",B1:B100))

The MAX formula must be confirmed with CTRL-SHIFT-ENTER
 
Upvote 0

Forum statistics

Threads
1,213,538
Messages
6,114,218
Members
448,554
Latest member
Gleisner2

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top