Average & Max formula

searchingforhelp

New Member
Joined
Nov 11, 2020
Messages
38
Office Version
  1. 365
Platform
  1. Windows
I know how to complete basic Average and Max formulas but what I am trying to accomplish I need assistance with.

1. Finding the Average- Column D:
I am trying to find a specific name (Mike) in column C and find all negative numbers associated with his name in column A and B, and the Average of all the negative numbers identified.

2. Finding the Max- Column E:
I am trying to find a specific name (Mike) in column C and find all negative numbers associated with his name in column A and B, and the Max (for this example it will be -19). I know -19 is not the highest number, it’s the lowest but for this example I would need the formula to identify it as the highest.

Thank you for any help you can provide.

Example 4-27-2021.xlsx
ABCDE
1List oneList twonameAverageMax
2-17Mike
34-19Mike
4-5-3Tim
5-32Mike
Average & Max
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.

hrayani

Well-known Member
Joined
Jul 23, 2010
Messages
1,213
Office Version
  1. 2016
Platform
  1. Windows
Hi,

Try this in D1 - Is this what you are looking for ??

Excel Formula:
=(SUMIFS(A2:A5,C2:C5,"Mike",A2:A5,"<0")+SUMIFS(B2:B5,C2:C5,"Mike",B2:B5,"<0"))/(COUNTIFS(C2:C5,"mike",A2:A5,"<0")+COUNTIFS(C2:C5,"Mike",B2:B5,"<0"))
 
Solution

hrayani

Well-known Member
Joined
Jul 23, 2010
Messages
1,213
Office Version
  1. 2016
Platform
  1. Windows
in E1 - Array formula make sure to press CTL+SHIFT+ENT

Excel Formula:
=MIN(IF(C2:C5="Mike",A2:B5))
 

searchingforhelp

New Member
Joined
Nov 11, 2020
Messages
38
Office Version
  1. 365
Platform
  1. Windows
Hi Hrayani, thank you! It appears to work (y). This is great, I would had never figured this out.
 

Forum statistics

Threads
1,141,073
Messages
5,704,138
Members
421,328
Latest member
mippy

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