+ Reply to Thread
Results 1 to 5 of 5

Find top Repeated + most Expensive Categories

  1. #1
    Forum Contributor
    Join Date
    05-29-2017
    Location
    UK
    MS-Off Ver
    Pro Plus 2016
    Posts
    301

    Find top Repeated + most Expensive Categories

    Hi guys, probably very easy for someone experienced... not managing it at all here.

    A file and screenshot are attached below. Can I ask to suggest please?

    Thanking in advance!

    https://www.excelforum.com/attachmen...1&d=1521042168 [EXCEL]

    2018-03-14_1639.png
    Attached Files Attached Files

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Find top Repeated + most Expensive Categories

    Hi vill,

    This problem is easier if you put all your data into a single table. See the attached. Does this do what you need?

    Combine 4 sheets into one.xlsx

    If the above doesn't work for you then read:
    https://www.laptopmag.com/articles/e...from-multiples

    If the above doesn't work then I'm sure Power Query can do your problem. You would need to name your tables in your workbook to do the problem using PQ.
    Last edited by MarvinP; 03-14-2018 at 12:29 PM.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Contributor
    Join Date
    05-29-2017
    Location
    UK
    MS-Off Ver
    Pro Plus 2016
    Posts
    301

    Re: Find top Repeated + most Expensive Categories

    Thanks for looking into it MarvinP! Much appreciated.

    I cannot use pivots here, sorry...

    Was exploring the ideas, came up with one way, but its not complete.

    Basically, it is perfectly okay to collect all data on TOTALS tab, as I have done in updated file, below row 20 (attached)

    I figured some formulas to return most repeated categories, but not able to come up with anything to return the total cost for those top 10. Is there anything we could do with existing example?

    I'm thinking if the 'most repeated' (TASK 1) can be sorted, guessing 'most expensive' (TASK 2) could be done in some similar way.

    Once again, thanks for looking to help!

    https://www.excelforum.com/attachmen...1&d=1521051590 [NEW FILE UPDATED]
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,202

    Re: Find top Repeated + most Expensive Categories

    in D24

    =SUMPRODUCT(COUNTIF(INDIRECT("'"&Sheets&"'!B3:B100"),C24))

    "Sheets" is a named range of your sheet names (Sheet1,sheet2 ...)

    in E24

    =SUMPRODUCT(SUMIF(INDIRECT("'"&Sheets&"'!B3:B100"),$C24,INDIRECT("'"&Sheets&"'!C3:C100")))


    in C7

    =IFERROR(INDEX($C$24:$C$44,MATCH(1,INDEX(($D$24:$D$44=LARGE($D$24:$D$44,ROWS(C$6:C6)))*(COUNTIF(C$6:C6,$C$24:$C$44)=0),),0)),"")

    in D7

    =SUMPRODUCT(SUMIF(INDIRECT("'"&Sheets&"'!B3:B100"),C7,INDIRECT("'"&Sheets&"'!C3:C100")))

    in H7

    =IFERROR(INDEX($C$24:$C$44,MATCH(1,INDEX(($E$24:$E$44=LARGE($E$24:$ED$44,ROWS(H$6:H6)))*(COUNTIF(H$6:H6,$C$24:$C$44)=0),),0)),"")

    in I7

    =VLOOKUP(H7,$C$24:$E$44,3,0)
    Attached Files Attached Files
    Last edited by JohnTopley; 03-15-2018 at 03:23 AM.

  5. #5
    Forum Contributor
    Join Date
    05-29-2017
    Location
    UK
    MS-Off Ver
    Pro Plus 2016
    Posts
    301

    Re: Find top Repeated + most Expensive Categories

    Thank you JohnTopley!! This works wonders :-) Appreciate your help!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 10-11-2014, 04:52 AM
  2. Find last row # where a repeated value appears?
    By Sean Anderson in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-27-2014, 04:26 AM
  3. [SOLVED] How to find % of total for all the items in different categories
    By tantcu in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-17-2013, 06:39 PM
  4. [SOLVED] Vlookup with repeated entries/categories
    By Mr.Fish in forum Excel General
    Replies: 6
    Last Post: 05-01-2012, 09:53 PM
  5. Replies: 19
    Last Post: 01-12-2012, 05:50 AM
  6. Find Repeated Value in Column
    By krishnarao in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-25-2007, 12:28 PM
  7. Repeated Multiple Find
    By rcmodelr in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-16-2005, 03:05 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1