+ Reply to Thread
Results 1 to 7 of 7

Help with large formula to take in to account many repeats

  1. #1
    Registered User
    Join Date
    05-14-2019
    Location
    England
    MS-Off Ver
    2013
    Posts
    68

    Red face Help with large formula to take in to account many repeats

    Hi guys,

    So with all of your help a couple of weeks ago, you managed to create two formulas for me. One of which would compare the latest Episode to an average (within a large data set), and another which would compare the latest episode to the previous episode.

    The only problem I have with both of these formulas is that if there are more than two repeats present, they both seem to appear as #N/A. This is clear on the example provided. Is there a way that both of the formulas can work to take in to account if there are more than two repeats present?

    I've attached the file and highlighted everything in yellow. It's incredibly hard to explain over text so it will make much more sense once it's open

    Thanks so much for the help!

    Sam
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    05-14-2019
    Location
    England
    MS-Off Ver
    2013
    Posts
    68

    Re: Help with large formula to take in to account many repeats

    And just to add, if all of the 'Rp.3', 'Rp.4' & 'Rp.5' lines are deleted, you'll notice that the formula works If they are kept in, it doesn't work for some reason

  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,055

    Re: Help with large formula to take in to account many repeats

    OMG!!!

    What do you expect to see in M35, and why? What do you mean by "compare"?
    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
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Help with large formula to take in to account many repeats

    In your current formula replace the MAX part with: =MAX(0+IF(LEFT($B$17:$B$32,3)="Ep.",RIGHT($B$17:$B$32,LEN($B$17:$B$32)-FIND(".",$B$17:$B$32))))
    and the LARGE part with =LARGE(0+IF(LEFT($B$17:$B$32,3)="Ep.",RIGHT($B$17:$B$32,LEN($B$17:$B$32)-FIND(".",$B$17:$B$32))),2)

    Array as before.
    Click the * to say thanks.

  5. #5
    Registered User
    Join Date
    05-14-2019
    Location
    England
    MS-Off Ver
    2013
    Posts
    68

    Re: Help with large formula to take in to account many repeats

    Hi Glenn,

    It's difficult to explain over email so I wrote it in the excel in yellow, but basically the formula starting in M35 should always compare the latest episode (EP.3, Cell B27 in this case) to the previous episode (EP.2, Cell B21 in this case). By compare, I mean a percentage change for the latest episode, vs the previous episode. Sorry if that wasn't clear!

    Thanks @PaulM100 I'll give that a go now and let you know!

  6. #6
    Registered User
    Join Date
    05-14-2019
    Location
    England
    MS-Off Ver
    2013
    Posts
    68

    Re: Help with large formula to take in to account many repeats

    Hi Paul,

    Thank you so much! That did the trick perfectly. Much appreciated !!

    Sam

  7. #7
    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,055

    Re: Help with large formula to take in to account many repeats

    Does this (short...) formula do what you want:

    =INDEX(M:M,AGGREGATE(14,6,ROW($M$17:$M$32)/(ISNUMBER(SEARCH("Ep",$B$17:$B$32))),1))/INDEX(M:M,AGGREGATE(14,6,ROW($M$17:$M$32)/(ISNUMBER(SEARCH("Ep",$B$17:$B$32))),2))-1

    and

    =INDEX(M:M,AGGREGATE(14,6,ROW($M$17:$M$32)/(ISNUMBER(SEARCH("Ep",$B$17:$B$32))),1))/M15-1

    If not what (manually calculated) do you expect to see???
    Attached Files Attached Files

+ 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. Need formula to extract account ID, per unique sub-account
    By ierosadopr in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-21-2019, 10:38 AM
  2. [SOLVED] Formula repeats only once
    By i82 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-02-2016, 03:34 AM
  3. Replies: 45
    Last Post: 12-19-2013, 10:17 AM
  4. Client account Spreadsheet - Compile error - to large to need shorten code
    By spazem in forum Excel Programming / VBA / Macros
    Replies: 46
    Last Post: 02-07-2013, 08:32 PM
  5. Replies: 6
    Last Post: 12-09-2012, 09:00 PM
  6. Formulae for: 4 most repeats,4 least repeats in a series of numbers
    By Sedge in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-02-2010, 04:56 AM
  7. Replies: 3
    Last Post: 07-04-2008, 07:42 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