+ Reply to Thread
Results 1 to 26 of 26

Large function with Criteria

  1. #1
    Registered User
    Join Date
    02-05-2019
    Location
    United States
    MS-Off Ver
    Excel for MAC
    Posts
    15

    Large function with Criteria

    I am working on a formula/function to find the top 5 highest $ amounts and add them to my summary page under the column O.P.. It's not working as expected and not returning a value. When I run the function ctrl+shift+enter I am getting a number error. The column I am referencing is a number, I set it up as currency received the error and changed it from currency to number.

    {=LARGE(IF(Data!E2:E83="*tock*",Data!I2:I83),1)}

    I am also trying to figure out based on the top 5 O.P to populate the "Namespace" field with the correlating top 5 $ amount. I haven't added that part yet because I am trying to figure it out.

    Thank you, please see attached sample.
    Attached Files Attached Files
    Last edited by Glenn Kennedy; 08-13-2019 at 11:26 AM.

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Large function with Criteria *help needed*

    Try this:

    =LARGE(IF(ISNUMBER(SEARCH("tock",Data!E2:E83)),Data!I2:I83),1) Ctrl Shift Enter

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,025

    Re: Large function with Criteria *help needed*

    Are you really still using Excel 2003 or earlier (outdated .xls format)? Please update profile with current Excel version. "Excel for Mac" tells me nothing about how old/which version you have.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  4. #4
    Registered User
    Join Date
    02-05-2019
    Location
    United States
    MS-Off Ver
    Excel for MAC
    Posts
    15

    Re: Large function with Criteria *help needed*

    WOW thank you that worked! Do you have any idea about how I would get the correlating data for the namespace field? I would like to have the information on my summary page.

    Like this:

    Namespace . O.P
    one-Tock-only1-ci-a 29.27
    Last edited by ruthschoenb; 08-13-2019 at 11:27 AM.

  5. #5
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Large function with Criteria *help needed*

    You're welcome.

    Manually fill in the desired results then re-upload your sample and we will create a formula for you.

  6. #6
    Registered User
    Join Date
    02-05-2019
    Location
    United States
    MS-Off Ver
    Excel for MAC
    Posts
    15

    Re: Large function with Criteria

    New sample of the spread sheet - with Namespace filled in manually
    Attached Files Attached Files

  7. #7
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Large function with Criteria

    The formulas in C11:C14 were not entered as array formulas and are therefore not producing the correct results.

    To enter the formula as an array, you must use Ctrl Shift Enter instead of just Enter.
    You can look up what keys to use on a Mac.

    That being said, I believe I know what you are trying to do here.

    Try these:

    C10 =LARGE(IF(ISNUMBER(SEARCH("tock",Data!E$2:E$83)),Data!I$2:I$83),A10) Ctrl Shift Enter
    B10 =INDEX(Data!E:E,SMALL(IF(ISNUMBER(SEARCH("Tock",Data!E$2:E$83))*(Data!I$2:I$83=C10),ROW(Data!E$2:E$83)),1)) Ctrl Shift Enter
    Drag both formulas down.

    See attachment.
    Attached Files Attached Files

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,025

    Re: Large function with Criteria

    ruthschoenb. Please address the questions that I asked at Post 3.

  9. #9
    Registered User
    Join Date
    02-05-2019
    Location
    United States
    MS-Off Ver
    Excel for MAC
    Posts
    15

    Re: Large function with Criteria

    Thank you soooo much! This works perfectly!

    One last question if the data in my "data" sheet changes do you know how I can have my summary update at the same time? The number of row's change for data and if I have to go in and change my summary each time its a lot of manual changes.

    Thanks

  10. #10
    Registered User
    Join Date
    02-05-2019
    Location
    United States
    MS-Off Ver
    Excel for MAC
    Posts
    15

    Re: Large function with Criteria

    So the spread sheet was a sample with data I changed names of items. I updated on my real spread sheet modifying the "tock" but now I am once again getting the Lookup error. I can't upload the real sheet. :/

    The fields are correct "*criteria*" and the 4 amount is correct as well in the data sheet.
    Last edited by ruthschoenb; 08-13-2019 at 12:11 PM.

  11. #11
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Large function with Criteria

    I would love to continue helping you but out of respect for Glenn, I am going to hold off until you address his question.

  12. #12
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: Large function with Criteria

    @ ruthschoenb - Are you deliberately ignoring Glenn's posts to this thread?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  13. #13
    Registered User
    Join Date
    02-05-2019
    Location
    United States
    MS-Off Ver
    Excel for MAC
    Posts
    15

    Re: Large function with Criteria

    I am new to a MAC and trying to find out what version I am running. Windows I would just go to the "about" but MAC does not have the option inside of excel. :/ .

  14. #14
    Registered User
    Join Date
    02-05-2019
    Location
    United States
    MS-Off Ver
    Excel for MAC
    Posts
    15

    Re: Large function with Criteria

    Glenn - Sorry for the late update I finally found it.

    Version 16.16.12 (1907115)

  15. #15
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Large function with Criteria

    Quote Originally Posted by ruthschoenb View Post
    The number of row's change for data and if I have to go in and change my summary each time its a lot of manual changes.
    You can change your data into a table then refer to the entire data column or just make the ranges large enough to account for new data.

    Quote Originally Posted by ruthschoenb View Post
    So the spread sheet was a sample with data I changed names of items. I updated on my real spread sheet modifying the "tock" but now I am once again getting the Lookup error. I can't upload the real sheet. :/
    The only thing that I can suggest without seeing a sample would be to make sure that you are entering your formulas as an array.

    If you are able to upload a small representative sample where the formulas do not work, we can take a further look at what's going on.

  16. #16
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: Large function with Criteria

    Quote Originally Posted by ruthschoenb View Post
    Glenn - Sorry for the late update I finally found it.

    Version 16.16.12 (1907115)
    Please update your user profile, as requested earlier in the thread, with this information. Members rely on knowing which version you are using when suggesting solutions.

  17. #17
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Large function with Criteria

    Simply "Excel 2016 for MAC" should do.

  18. #18
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,025

    Re: Large function with Criteria

    In B10, copied down:
    =INDEX(Data!E:E,AGGREGATE(15,6,ROW(Data!$E$2:$E$83)/((ISNUMBER(SEARCH("tock",Data!$E$2:$E$83)))*(Data!$I$2:$I$83=C10)),COUNTIF($C$10:C10,C10)))

    in C10, copied down:
    =AGGREGATE(14,6,Data!$I$2:$I$83/(ISNUMBER(SEARCH("tock",Data!$E$2:$E$83))),A10)

    These are ordinary formulae. No need to CTRL-SHIFT-ENTER (or Mac equivalent). Just enter. THIS is why I wanted to know your Excel version.

    I have updated the file format to Excel 2007+. Is there any reason why you need compatability with (almost) prehistoric versions of Excel?
    Attached Files Attached Files

  19. #19
    Registered User
    Join Date
    02-05-2019
    Location
    United States
    MS-Off Ver
    Excel for MAC
    Posts
    15

    Re: Large function with Criteria

    here is more data thanks you

    my actual data is 1254 rows.
    Attached Files Attached Files

  20. #20
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,025

    Re: Large function with Criteria

    Formulae in your new sheet. Ranges set to cover 2000 rows.

    You must learn not to ignore questions, especially those from Forum Moderators. We are all here to help, but you need to help us to help you. Please see the unanswered questions in my last Post ... and answer them.
    Attached Files Attached Files

  21. #21
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Large function with Criteria

    You have done two things:

    1) Modified the formula to include wildcards. They are not needed.
    2) Did not enter the column B formula as an array.

    I have fixed both issues and re-uploaded the sample from post #19.

    Note that you can drag the formulas down once you enter then (correctly) into B10 and C10.
    Attached Files Attached Files

  22. #22
    Registered User
    Join Date
    02-05-2019
    Location
    United States
    MS-Off Ver
    Excel for MAC
    Posts
    15

    Re: Large function with Criteria

    Thank you very much, I appreciate the help!!! if I swap out the data will I have to re-run each function or will it pickup the new data?

  23. #23
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,025

    Re: Large function with Criteria

    Who are you talking to?

  24. #24
    Registered User
    Join Date
    02-05-2019
    Location
    United States
    MS-Off Ver
    Excel for MAC
    Posts
    15

    Re: Large function with Criteria

    Quote Originally Posted by Glenn Kennedy View Post
    Who are you talking to?
    I was speaking to 63falcondude he helped me with my formula with a small amount of my data.
    thank you

  25. #25
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,025

    Re: Large function with Criteria

    Clearly you are ignoring everything I havealso tried to do to help you.. I hope you get sorted out, but I'm out. Goodbye.

  26. #26
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Large function with Criteria

    Quote Originally Posted by ruthschoenb View Post
    Thank you very much, I appreciate the help!!! if I swap out the data will I have to re-run each function or will it pickup the new data?
    Yes but you would be better off just putting the formulas onto your workbook making sure to enter them as an array.

    If you change the formulas at all, you will have to enter them as an array formula again.

+ 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: 2
    Last Post: 02-27-2019, 03:13 PM
  2. [SOLVED] LARGE Forumula with Criteria (using IF/OR) - Help Needed
    By carlhamill in forum Excel General
    Replies: 11
    Last Post: 08-03-2018, 07:31 AM
  3. [SOLVED] Large function with criteria
    By EMcK in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 01-25-2015, 06:54 PM
  4. use large function with sum criteria
    By rishikrsaw in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-24-2014, 05:00 PM
  5. [SOLVED] LARGE Function with multiple criteria
    By andrewc in forum Excel General
    Replies: 3
    Last Post: 03-11-2014, 07:57 AM
  6. [SOLVED] Unique returns for Large Function with VLookup needed
    By James McEwan in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-02-2013, 02:04 PM
  7. Large function with if criteria
    By ronleex324 in forum Excel General
    Replies: 6
    Last Post: 03-20-2009, 02:30 PM

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