Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 01-21-2021, 09:17 PM
SoMany SoMany is offline Top 3 items? (INDEX,MODE,MATCH,COUNTIF) Windows 7 64bit Top 3 items? (INDEX,MODE,MATCH,COUNTIF) Office 2016
Advanced Beginner
Top 3 items? (INDEX,MODE,MATCH,COUNTIF)
 
Join Date: Oct 2016
Posts: 51
SoMany is on a distinguished road
Default Top 3 items? (INDEX,MODE,MATCH,COUNTIF)

I need to know the top 3 items. I've found the formula for the most common item, and how to count the number of that item, but not how to find the second and third most common item.

=INDEX(Report!A1:A57,MODE(MATCH(Report!A1:A57,Repo rt!A1:A57,0)))
=COUNTIF(Report!A:A, "*"&E4&"*")


Attached is a mock worksheet. One issue is the INDEX formula doesn't work if a blank cell is selected and the total number of items changes day to day. The most common items change day to day as well. I keep thinking there's a =LARGE formula that can be added or something, but I can't find an example to work off of.
Attached Files
File Type: xlsx MsForums.xlsx (14.3 KB, 7 views)

Last edited by SoMany; 01-21-2021 at 09:19 PM. Reason: Accurate worksheet
Reply With Quote
  #2  
Old 01-22-2021, 12:07 AM
ArviLaanemets ArviLaanemets is offline Top 3 items? (INDEX,MODE,MATCH,COUNTIF) Windows 8 Top 3 items? (INDEX,MODE,MATCH,COUNTIF) Office 2016
Expert
 
Join Date: May 2017
Posts: 873
ArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud of
Default

Why make this so difficult?

A list of all goods/fruits has an additional bonus, as you can use data validation to ensure no typos mess up with your data.

(I leave it to you to figure out what to do when there are several goods with same count - currently Bananas and Oranges must share order numbers 6 and 7, instead 7 they both have initially. What about when you have such a pair/trio/whatever somewhere at top 3 positions?)
Attached Files
File Type: xlsx CountGoods.xlsx (17.4 KB, 6 views)
Reply With Quote
  #3  
Old 01-22-2021, 07:14 AM
p45cal's Avatar
p45cal p45cal is offline Top 3 items? (INDEX,MODE,MATCH,COUNTIF) Windows 10 Top 3 items? (INDEX,MODE,MATCH,COUNTIF) Office 2019
Expert
 
Join Date: Apr 2014
Posts: 866
p45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond repute
Default

Pivot table at cell F8 of the Main sheet.
The Names column is

1. filtered by Top Ten (top 3 in this case) based on the Count of Status
2. Sorted descending based on ther Count of Status.
Attached Files
File Type: xlsx msofficeforums46375MsForums.xlsx (18.0 KB, 5 views)
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help using Index match for below Maneesh Joshi Excel 2 11-29-2018 06:23 AM
Excel - Index and Match Function ,First Second and Third Match paulzy95 Excel 10 09-29-2016 10:46 PM
index / match Formula dmcg9760 Excel Programming 1 11-08-2015 03:16 PM
Index match vba grexcelman Excel 0 03-05-2015 10:55 PM
Top 3 items? (INDEX,MODE,MATCH,COUNTIF) Vlookup, offset, match & countif jujuwillis Excel 2 10-15-2011 11:06 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:04 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft