Accept Max values

vmjan02

Well-known Member
Joined
Aug 15, 2012
Messages
1,060
Office Version
  1. 365
  2. 2021
  3. 2019
  4. 2016
  5. 2013
I have this data and have pasted in xl2bb sheet, and the concern is from the data it sould mention as "Do not include" in result coulmn. I tried many ways , like rank, match index and lot more dut non wokred.

idea is from very region, place type, isp name and platform it should only take the max number from sample_count and sound display Do not include for the low sample_count, not sure if the macor or a esxcel function will work.

any help willbe great. Ihave tried to explain it in the best way, it will be great to fig it out.

aggregate_dateplace_nameregionplace_typeisp_nameaggregation_periodplatformtest_countsample_countResult
1-Aug-23​
Saudi ArabiacountrystcMonthAll Fixed
10​
7​
Do not include
1-Aug-23​
Saudi ArabiacountrystcMonthAll Fixed
2​
2​
Do not include
1-Aug-23​
Saudi ArabiacountrystcMonthAll Fixed
1033229​
288884​

aggregate_dateplace_nameregionplace_typeisp_nameaggregation_periodplatformtest_countsample_countResult
1-Aug-23​
Aseer ProvinceAseer Provinceadministrative_area_level_1GO TelecomMonthAll Fixed
946​
270​
1-Aug-23​
Aseer ProvinceAseer Provinceadministrative_area_level_1GO TelecomMonthAll Fixed
906​
257​
Do not include


Test.xlsx
A
1aggregate_date
Sheet1
 
Mr. Peter's will do the trick. Mine is just a temporary fix. The codes are only good for 4 year length. You need to drag to formula further to the right 12 columns more to increase for 1 year and so on... Glad to help.
 
Upvote 0

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
updated account details
Thanks or doing that.
In that case another option with MAXIFS without a helper column would be
Excel Formula:
=IF(I2=MAXIFS(I$2:I$113,C$2:C$113,C2,D$2:D$113,D2,E$2:E$113,E2,G$2:G$113,G2),"","Do not include")
 
Upvote 0
Mr. Peter's will do the trick. Mine is just a temporary fix. The codes are only good for 4 year length. You need to drag to formula further to the right 12 columns more to increase for 1 year and so on... Glad to help.
@vmjan02 disregard this. it was supposed to be for another post. sorry. - I was on my phone and must have mixed things up.

so long as you drag the helper column, you should be good
 
Upvote 0
Thanks or doing that.
In that case another option with MAXIFS without a helper column would be
Excel Formula:
=IF(I2=MAXIFS(I$2:I$113,C$2:C$113,C2,D$2:D$113,D2,E$2:E$113,E2,G$2:G$113,G2),"","Do not include")
by a chance can there be a macor, to avoid excel version problem,
 
Upvote 0

Forum statistics

Threads
1,215,232
Messages
6,123,763
Members
449,120
Latest member
Aa2

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