Extracting max value
-
- StarLounger
- Posts: 62
- Joined: 27 Jan 2010, 05:00
Extracting max value
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
Encourage Environmental Awareness| Print only if unavoidable
Prasad
Encourage Environmental Awareness| Print only if unavoidable
-
- Administrator
- Posts: 78530
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: Extracting max value
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.
=MAX(IF($A$2:$A$22=E2,$B$2:$B$22))
and fill down.
Best wishes,
Hans
Hans
-
- Administrator
- Posts: 78530
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: Extracting max value
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
Hans
-
- StarLounger
- Posts: 62
- Joined: 27 Jan 2010, 05:00
Re: Extracting max value
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.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.
Thanks once again
Regards
Prasad
Encourage Environmental Awareness| Print only if unavoidable
Prasad
Encourage Environmental Awareness| Print only if unavoidable