Extracting max value

User avatar
Prasad
StarLounger
Posts: 62
Joined: 27 Jan 2010, 05:00

Extracting max value

Post by Prasad »

It seems to be simple but I am stuck with it. Pl go through the attachment. In col F, I want to extract the maximum value of Doc. No. from col. B. What formula should I use?
You do not have the required permissions to view the files attached to this post.
Regards
Prasad
Image

Encourage Environmental Awareness| Print only if unavoidable

User avatar
HansV
Administrator
Posts: 78530
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Extracting max value

Post by HansV »

Enter the following array formula in F2 (confirm with Ctrl+Shift+Enter):

=MAX(IF($A$2:$A$22=E2,$B$2:$B$22))

and fill down.
Best wishes,
Hans

User avatar
HansV
Administrator
Posts: 78530
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Extracting max value

Post by HansV »

Alternatively, you can create a pivot table based on the data in A1:B22, with Doc. No in the row area and Base Amt. in the value area. Excel will sum the values by default, but you can double-click Sum of Base Amt. to specify Max as aggregation function.
Best wishes,
Hans

User avatar
Prasad
StarLounger
Posts: 62
Joined: 27 Jan 2010, 05:00

Re: Extracting max value

Post by Prasad »

HansV wrote:Alternatively, you can create a pivot table based on the data in A1:B22, with Doc. No in the row area and Base Amt. in the value area. Excel will sum the values by default, but you can double-click Sum of Base Amt. to specify Max as aggregation function.
Thank you Hans for quick response. Since original WB is a huge one with some other data, pivot table is not feasible. I will go with the array formula provided by you.

Thanks once again :thankyou:
Regards
Prasad
Image

Encourage Environmental Awareness| Print only if unavoidable