ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Looking for the equivalent of a Maxif function (https://www.excelbanter.com/excel-discussion-misc-queries/126858-looking-equivalent-maxif-function.html)

PerplexedinKY

Looking for the equivalent of a Maxif function
 
Does anyone know of a good way to find largest value in a column B, if and
only if it satisfies the criteria in column A? Much like a sumif or countif.
For example, I have spreadsheet that lists all of my stores by market and by
region, within those sheets. I am trying to find the largest value for each
particular region. So I need the formula to look in column A for all
instances where the region is equal to region 1, and then find the largest
number in cloumn b that corresponds to all instances of region 1. I know I
can do this by sorting my sheet by region, and locking down my ranges
manually, but I run this file monthly and I have stores that open and close
without my knowledge. Any thoughts?

daddylonglegs

Looking for the equivalent of a Maxif function
 
Try

=MAX(IF(A1:A100="Region 1",B1:B100))

confirmed with CTRL+SHIFT+ENTER

"PerplexedinKY" wrote:

Does anyone know of a good way to find largest value in a column B, if and
only if it satisfies the criteria in column A? Much like a sumif or countif.
For example, I have spreadsheet that lists all of my stores by market and by
region, within those sheets. I am trying to find the largest value for each
particular region. So I need the formula to look in column A for all
instances where the region is equal to region 1, and then find the largest
number in cloumn b that corresponds to all instances of region 1. I know I
can do this by sorting my sheet by region, and locking down my ranges
manually, but I run this file monthly and I have stores that open and close
without my knowledge. Any thoughts?


cory

Looking for the equivalent of a Maxif function
 
I would sugust using Pivot Tables. They are well worth learning.
--
CCO


"PerplexedinKY" wrote:

Does anyone know of a good way to find largest value in a column B, if and
only if it satisfies the criteria in column A? Much like a sumif or countif.
For example, I have spreadsheet that lists all of my stores by market and by
region, within those sheets. I am trying to find the largest value for each
particular region. So I need the formula to look in column A for all
instances where the region is equal to region 1, and then find the largest
number in cloumn b that corresponds to all instances of region 1. I know I
can do this by sorting my sheet by region, and locking down my ranges
manually, but I run this file monthly and I have stores that open and close
without my knowledge. Any thoughts?


JE McGimpsey

Looking for the equivalent of a Maxif function
 
one way (array-entered: CTRL-SHIFT-ENTER or CMD-RETURN):

=MAX(IF(A1:A1000="Region 1"),A1:A1000))

In article ,
PerplexedinKY wrote:

Does anyone know of a good way to find largest value in a column B, if and
only if it satisfies the criteria in column A? Much like a sumif or countif.
For example, I have spreadsheet that lists all of my stores by market and by
region, within those sheets. I am trying to find the largest value for each
particular region. So I need the formula to look in column A for all
instances where the region is equal to region 1, and then find the largest
number in cloumn b that corresponds to all instances of region 1. I know I
can do this by sorting my sheet by region, and locking down my ranges
manually, but I run this file monthly and I have stores that open and close
without my knowledge. Any thoughts?


Sandy Mann

Looking for the equivalent of a Maxif function
 
Try:

=MAX(IF(A1:A20=Criteria,B1:B20))

This is an array formula so enter it by pressing and holding Control and
Shift while you press Enter
--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


with @tiscali.co.uk


"PerplexedinKY" wrote in message
...
Does anyone know of a good way to find largest value in a column B, if and
only if it satisfies the criteria in column A? Much like a sumif or
countif.
For example, I have spreadsheet that lists all of my stores by market and
by
region, within those sheets. I am trying to find the largest value for
each
particular region. So I need the formula to look in column A for all
instances where the region is equal to region 1, and then find the largest
number in cloumn b that corresponds to all instances of region 1. I know
I
can do this by sorting my sheet by region, and locking down my ranges
manually, but I run this file monthly and I have stores that open and
close
without my knowledge. Any thoughts?




JE McGimpsey

Looking for the equivalent of a Maxif function
 
Oops, should have been

=MAX(IF(A1:A1000="Region 1",B1:B1000))

In article ,
JE McGimpsey wrote:

=MAX(IF(A1:A1000="Region 1"),A1:A1000))


Teethless mama

Looking for the equivalent of a Maxif function
 
=SUMPRODUCT(MAX((A1:A100="Region 1")*(B1:B100)))


"PerplexedinKY" wrote:

Does anyone know of a good way to find largest value in a column B, if and
only if it satisfies the criteria in column A? Much like a sumif or countif.
For example, I have spreadsheet that lists all of my stores by market and by
region, within those sheets. I am trying to find the largest value for each
particular region. So I need the formula to look in column A for all
instances where the region is equal to region 1, and then find the largest
number in cloumn b that corresponds to all instances of region 1. I know I
can do this by sorting my sheet by region, and locking down my ranges
manually, but I run this file monthly and I have stores that open and close
without my knowledge. Any thoughts?



All times are GMT +1. The time now is 05:47 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com