Largest Value with Duplicates

rtr1811

New Member
Joined
Jun 3, 2020
Messages
8
Office Version
  1. 2007
Platform
  1. Windows
Hi,
My Excel version is Excel 2007. I have a list of Numbers in a column which include zero and non zero values and also contain duplicate values (repeating numbers). My problem is I've to add a number in a particular cell say for example in cell No. H54 to the cell which contains the Maximum Number. Since my data contain duplicate values, the value in H54 is added to both the cells when I use the following formula:
I have entered the following array formula:

=MAX(IF(H26=$H$18:$H$26,H52+$H$54,H52))

and I have also tried the following formula:

=IF(H18=LARGE($H$18:$H$26,1),H44+$H$54,H44)
To further explain my problem, I have attached an image. Please refer Column H. Both the above formula consider row number 25 and 26 as Maximum values. But I want to return only row number 25. What modifications have to be done to effect the change I want? Thanks in advance.
Regards,
Rathakrishnan.T Sample1.jpg
Sample1.jpg
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Hi & welcome to MrExcel.
How about
=IF(AND(H18=MAX($H$18:$H$26),COUNTIF(H$18:H18,H18)=1),H44+$H$54,H44)
 
Upvote 0
Many Thanks for your Reply. It almost solved my problem. It returns row number 26. What I have to do if I want to return row number 25?
 
Upvote 0
It does that.
+Fluff New.xlsm
HI
18010
19011
20012
21013
22014
23015
24016
251117
26118
43
4410
4511
4612
4713
4814
4915
5016
5117
5218
53
54100
Main
Cell Formulas
RangeFormula
I18:I26I18=IF(AND(H18=MAX($H$18:$H$26),COUNTIF(H$18:H18,H18)=1),H44+$H$54,H44)
 
Upvote 0
Very Sorry. It is working correct. I have misunderstood the output.

Thank you.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,627
Messages
6,120,610
Members
448,973
Latest member
ChristineC

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
Back
Top