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
 

Some videos you may like

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.

fx1

New Member
Joined
Sep 24, 2004
Messages
8
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
 

fx1

New Member
Joined
Sep 24, 2004
Messages
8
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.
 

Scott Huish

MrExcel MVP
Joined
Mar 17, 2004
Messages
19,958
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
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
 

Watch MrExcel Video

Forum statistics

Threads
1,123,454
Messages
5,601,764
Members
414,471
Latest member
cchunyadi

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
Top