+ Reply to Thread
Results 1 to 99 of 99

Shortest Formula Challenge!! (Games 1-3)

  1. #1
    Forum Contributor
    Join Date
    05-04-2014
    Location
    New Jersey, United States
    MS-Off Ver
    Excel 2010, 2013
    Posts
    120

    Shortest Formula Challenge!! (Games 1-3)

    For those of you who like to test your formula skills, I developed a series of games (10 in all) where you can try to come up with the shortest formula possible to complete the objective. There are 2 challenges per game. Full rules are explained within the file. I'll post my best solutions a little later. Good luck!

    (Game #1 is attached)



    Note: The challenges are targeted for advanced Excel users. They range in difficulty... but even the "easier" ones can be tricky.

    See post #32 for Game 2 file
    See post #64 for Game 3 file
    Attached Files Attached Files
    Last edited by clabulis; 07-08-2014 at 05:25 PM.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Shortest Formula Challenge!!

    this really needs moving to the watercooler
    but i can't get shorter than 34 at the moment for no 7 sum!
    Last edited by martindwilson; 07-05-2014 at 02:51 PM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Shortest Formula Challenge!!

    good point Martin, I will move it there
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Contributor
    Join Date
    05-04-2014
    Location
    New Jersey, United States
    MS-Off Ver
    Excel 2010, 2013
    Posts
    120

    Re: Shortest Formula Challenge!!

    Sorry about the original post being put in the wrong forum! Hopefully some more people will still give this a try

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Shortest Formula Challenge!!

    well i got the word one down to 70 characters

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Shortest Formula Challenge!!

    32 & 70 .
    Last edited by shg; 07-05-2014 at 03:06 PM.
    Entia non sunt multiplicanda sine necessitate

  7. #7
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Shortest Formula Challenge!!

    down to 32 now i over used ()

  8. #8
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Shortest Formula Challenge!!

    snap shg 32 &70

  9. #9
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Shortest Formula Challenge!!

    Oops, I lied -- 32 & 75.

  10. #10
    Forum Contributor
    Join Date
    05-04-2014
    Location
    New Jersey, United States
    MS-Off Ver
    Excel 2010, 2013
    Posts
    120

    Re: Shortest Formula Challenge!!

    Nice! Looking at your 70 lengths for the Word Starter problem, it made me want to go back and try it again. Got it down to 69.

  11. #11
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Shortest Formula Challenge!!

    i assume its for that text only as given?

  12. #12
    Forum Contributor
    Join Date
    05-04-2014
    Location
    New Jersey, United States
    MS-Off Ver
    Excel 2010, 2013
    Posts
    120

    Re: Shortest Formula Challenge!!

    Your formula needs to accommodate any possible text that could sit in cell G2. The maximum amount of text that a cell can hold is 32,767 characters.

  13. #13
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Shortest Formula Challenge!!

    down to 32 & 62

  14. #14
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Shortest Formula Challenge!!

    yes but i mean all sentences will be properly constructed with spaces , commas/ full stops /line breaks or whatever so it reads correctly
    eg this bit
    And the song, from beginning to end,
    I found again in the heart of a friend.
    if it didnt have a line break it would be

    And the song, from beginning to end, I found again in the heart of a friend.
    not
    And the song, from beginning to end,I found again in the heart of a friend.
    Last edited by martindwilson; 07-05-2014 at 03:39 PM.

  15. #15
    Forum Contributor
    Join Date
    05-04-2014
    Location
    New Jersey, United States
    MS-Off Ver
    Excel 2010, 2013
    Posts
    120

    Re: Shortest Formula Challenge!!

    Oh yeah I see what you mean now. Line breaks must stay exactly as they are. If an "i" begins any word, including a word that follows immediately after a line break, it must be accounted for.

  16. #16
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Shortest Formula Challenge!!

    well in that case
    wait for it
    45 for the text

  17. #17
    Forum Contributor
    Join Date
    05-04-2014
    Location
    New Jersey, United States
    MS-Off Ver
    Excel 2010, 2013
    Posts
    120

    Re: Shortest Formula Challenge!!

    Wow! Haha I'll take one more look at it later tonight, but I'm not getting my hopes up. I'll post my solutions tomorrow to give some more people a chance of trying it themselves.

  18. #18
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Shortest Formula Challenge!!

    You could save us some time telling what the amount of 'i' 's should be in your opinion.



  19. #19
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Shortest Formula Challenge!!

    Do you really mean 'i' or is it 'i' or 'I'?
    If posting code please use code tags, see here.

  20. #20
    Forum Contributor
    Join Date
    05-04-2014
    Location
    New Jersey, United States
    MS-Off Ver
    Excel 2010, 2013
    Posts
    120

    Re: Shortest Formula Challenge!!

    Quote Originally Posted by snb View Post
    You could save us some time telling what the amount of 'i' 's should be in your opinion.
    The solution of 17 is provided on the first tab in the attachment.

    Do you really mean 'i' or is it 'i' or 'I'?
    Both uppercase and lowercase I's should be included. A quick count of the I's in the paragraph to match the given solution will confirm this.

  21. #21
    Forum Contributor
    Join Date
    05-04-2014
    Location
    New Jersey, United States
    MS-Off Ver
    Excel 2010, 2013
    Posts
    120

    Re: Shortest Formula Challenge!!

    Quote Originally Posted by martindwilson View Post
    well in that case
    wait for it
    45 for the text
    Got it down to 47. Not finding those extra two characters though...

  22. #22
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Shortest Formula Challenge!!

    30 & 54. Working on the word one though
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  23. #23
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Shortest Formula Challenge!!

    Word Starter: 41

  24. #24
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Shortest Formula Challenge!!

    down to 43 now for word too many () in last formula again

  25. #25
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Shortest Formula Challenge!!

    Quote Originally Posted by clabulis View Post
    Your formula needs to accommodate any possible text that could sit in cell G2. The maximum amount of text that a cell can hold is 32,767 characters.
    Ah. I see. So we need to take into account the possibility of there being words of length more than one and ending in "i", which are not in the current text, e.g. "Circles with radii of various lengths"?

    I only mention as this might be a potential barrier to solutions hoping to look for the personal pronoun "I" via counting for "I "...

    Regards
    Last edited by XOR LX; 07-06-2014 at 10:02 AM.
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  26. #26
    Forum Contributor
    Join Date
    05-04-2014
    Location
    New Jersey, United States
    MS-Off Ver
    Excel 2010, 2013
    Posts
    120

    Re: Shortest Formula Challenge!!

    Quote Originally Posted by XOR LX View Post
    Ah. I see. So we need to take into account the possibility of there being words of length more than one and ending in "i", which are not in the current text, e.g. "Circles with radii of various lengths"?

    I only mention as this might be a potential barrier to solutions hoping to look for the personal pronoun "I" via counting for "I "...

    Regards

    Hmm, I don't want to confuse people, but I'll to try to explain it as simply as possible: If the first character of any word is an "i" or an "I", then count that letter. The personal pronoun of "I" is a word, so those instances of I's need to be counted. I's which lie somewhere in the middle of a word or at the end a word, are not counted.

    Your formula needs to work for any block of text that could possibly sit in G2 as well. If the text was "I eat ice cream in an igloo", then your formula needs to return a result of 4.

  27. #27
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Shortest Formula Challenge!!

    Quote Originally Posted by clabulis View Post
    Hmm, I don't want to confuse people, but I'll to try to explain it as simply as possible: If the first character of any word is an "i" or an "I", then count that letter. The personal pronoun of "I" is a word, so those instances of I's need to be counted. I's which lie somewhere in the middle of a word or at the end a word, are not counted.

    Your formula needs to work for any block of text that could possibly sit in G2 as well. If the text was "I eat ice cream in an igloo", then your formula needs to return a result of 4.
    Thanks.

    I only mentioned it as I imagine others like me may have developed a solution along the lines that I mentioned, which would work perfectly well for the given text, though, as I said, could well fail if we actually consider a different text in G2, one which contains words ending in "i", as I mentioned.

    I was just wondering if the solutions so far have factored this in as a consideration?

    Regards

  28. #28
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Shortest Formula Challenge!!

    yep other i were considered in the making of this formula
    mind you i cant be arsed to put a 32,767 character passage into a cell count all the Is then check with a formula!
    Last edited by martindwilson; 07-06-2014 at 10:51 AM.

  29. #29
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Shortest Formula Challenge!!

    And I assume that adapting for upper-case instances of the personal pronoun will not also be sufficient, since (and perhaps relevant to your poetry example) we could equally be considering a "modern" text containing lower-case examples of "I", e.g. Bukowksi, etc.?

    Regards

  30. #30
    Forum Contributor
    Join Date
    05-04-2014
    Location
    New Jersey, United States
    MS-Off Ver
    Excel 2010, 2013
    Posts
    120

    Re: Shortest Formula Challenge!!

    Quote Originally Posted by martindwilson View Post
    mind you i cant be arsed to put a 32,767 character passage into a cell count all the Is then check with a formula!
    Yeah I dont blame you haha. I think once solutions begin being posted, people will come to a general consensus of if they're accurate or not.


    And I assume that adapting for upper-case instances of the personal pronoun will not also be sufficient, since (and perhaps relevant to your poetry example) we could equally be considering a "modern" text containing lower-case examples of "I", e.g. Bukowksi, etc.?
    Your formula should give you 17 as the result even if you manually change the case of any "I" within the text.



    Just another reminder to everyone: no manipulation of the raw data! (as stated in the instructions in the file). For example, don't type a space before that first "I" in order to make it easier to deal with in your formula. Your formula will not be counted. Though, of course you can change the raw data temporarily to test your formula with various text strings.

  31. #31
    Forum Contributor
    Join Date
    05-04-2014
    Location
    New Jersey, United States
    MS-Off Ver
    Excel 2010, 2013
    Posts
    120

    Re: Shortest Formula Challenge!!

    I'm going to post my solutions below in white font to prevent spoilers to those still attempting them. I ask everyone else to do the same when posting your own solutions. Thanks!

    Highlight the area below each title to view them.

    No Seven Sum (28 Characters)
    =SUM(SUBSTITUTE(0&G:H,7,)*1)

    (Must use Ctrl+shift+enter)


    Word Starter (47 Characters)
    =SUM(N(MID(" "&G2,ROW(1:32767),2)={" I","
    I"}))

    (Must use CSE)
    NOTE: The split in the formula is a line break, thus accounting for that scenario within the sample text.
    Last edited by JBeaucaire; 07-07-2014 at 01:44 PM.

  32. #32
    Forum Contributor
    Join Date
    05-04-2014
    Location
    New Jersey, United States
    MS-Off Ver
    Excel 2010, 2013
    Posts
    120

    Re: Shortest Formula Challenge!!

    Game 2 is attached below. Good luck!
    Attached Files Attached Files
    Last edited by clabulis; 07-07-2014 at 12:08 AM.

  33. #33
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Shortest Formula Challenge!!

    for sum =SUM(--SUBSTITUTE(G2:H291,7,"")) array
    hmm for word i went with
    =LEN(G2)-LEN(SUBSTITUTE(PROPER(G2),"I",""))
    as proper will always capitalise after any space line break or punctuation that i could determine

  34. #34
    Forum Contributor
    Join Date
    05-04-2014
    Location
    New Jersey, United States
    MS-Off Ver
    Excel 2010, 2013
    Posts
    120

    Re: Shortest Formula Challenge!!

    Quote Originally Posted by martindwilson View Post
    hmm for word i went with
    =LEN(G2)-LEN(SUBSTITUTE(PROPER(G2),"I",""))
    as proper will always capitalise after any space line break or punctuation that i could determine

    Awesome!

    Your method can actually be shortened a little to this:
    =LEN(G2)-LEN(SUBSTITUTE(PROPER(G2),"I",))
    Making it 41 characters. I wonder if it's the same solution as snb back when he posted on page 2 with 41 characters.
    Last edited by clabulis; 07-06-2014 at 01:31 PM.

  35. #35
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Shortest Formula Challenge!!

    Mine:

    =SUM(N(TRIM(MID(G2;ROW(1:32768);2))="i"))

    I second Martin's solution for sum: it's more in conformity with the specifications than yours. G:H <>G2:H291
    Last edited by snb; 07-06-2014 at 02:03 PM.

  36. #36
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Shortest Formula Challenge!!

    hm snb i cant get that to work for say just "I'm Ian"

  37. #37
    Forum Contributor
    Join Date
    05-04-2014
    Location
    New Jersey, United States
    MS-Off Ver
    Excel 2010, 2013
    Posts
    120

    Re: Shortest Formula Challenge!!

    Quote Originally Posted by snb View Post
    Mine:

    =SUM(N(TRIM(MID(G2;ROW(1:32768);2))="i"))

    I second Martin's solution for sum: it's more in conformity with the specifications than yours. G:H <>G2:H291

    Interesting method! I think the concern that XOR LX brought up before regarding words ending in "i" will affect this result though. Through in the word "alumni" and the count goes up to 18.


    Remember that efficiency is not a factor when determining these formulas. Most of these won't be used in real-life scenarios because of this. In fact, the column-only reference (G:H) trick is gonna play a big part in a lot of these challenges. The trick still results in the formula fitting the definition of what is required since we know other data won't be added to other cells such as G548 or H1, etc.

  38. #38
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Shortest Formula Challenge!!

    Interesting challenges but for example sumproduct is 10 characters
    But if ms had named it sump it wold be shorter

  39. #39
    Forum Contributor
    Join Date
    05-04-2014
    Location
    New Jersey, United States
    MS-Off Ver
    Excel 2010, 2013
    Posts
    120

    Re: Shortest Formula Challenge!!

    Quote Originally Posted by martindwilson View Post
    Interesting challenges but for example sumproduct is 10 characters
    But if ms had named it sump it wold be shorter
    Thanks! Yeah, a lot of what goes into picking the shortest formula is knowing which functions to use. I never use SUMPRODUCT due to its length. SUM usually suffices as an array formula.

  40. #40
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Shortest Formula Challenge!!

    I have 56 and 62 for Game2 so far, so evidently I'm contesting your "Optimisation" of 10 for Last Instance!

    Edit: Ah, wait. Just saw your caveat re "No hyphens = No text", so scratch that 56...

    Regards
    Last edited by XOR LX; 07-07-2014 at 04:11 AM.

  41. #41
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Shortest Formula Challenge!!

    Quote Originally Posted by XOR LX View Post
    I have 56 and 62 for Game2 so far, so evidently I'm contesting your "Optimisation" of 10 for Last Instance!

    Edit: Ah, wait. Just saw your caveat re "No hyphens = No text", so scratch that 56...

    Regards
    Actually, re this can you just confirm that the answer should be blank in the case where there are no hyphens in the string, and not e.g. #N/A?

    Regards

  42. #42
    Forum Contributor
    Join Date
    05-04-2014
    Location
    New Jersey, United States
    MS-Off Ver
    Excel 2010, 2013
    Posts
    120

    Re: Shortest Formula Challenge!!

    Quote Originally Posted by XOR LX View Post
    Actually, re this can you just confirm that the answer should be blank in the case where there are no hyphens in the string, and not e.g. #N/A?

    Regards
    You're correct that a blank should be returned if there are no hyphens.

  43. #43
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Shortest Formula Challenge!!

    wel the student one has got me stumped dont even lnow how to aproach it!(well i thought i did nothing worked)
    the text one however does this still apply up to =2^15-1 characters?

  44. #44
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Shortest Formula Challenge!!

    61 for after last -

  45. #45
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Shortest Formula Challenge!!

    Quote Originally Posted by martindwilson View Post
    61 for after last -
    Returning blank if no hyphens, or #N/A? Still not sure which is expected(?)

    Regards

  46. #46
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Shortest Formula Challenge!!

    well 51 if n/a is allowed

  47. #47
    Forum Contributor
    Join Date
    05-04-2014
    Location
    New Jersey, United States
    MS-Off Ver
    Excel 2010, 2013
    Posts
    120

    Re: Shortest Formula Challenge!!

    #N/A is not allowed for the last instance problem.* If there are no hyphens in the text string, then the returned solution should be completely blank.* Martin, it sounds like you might have the exact same solution that I came up with for that one since 51 and 61 are my lengths as well.

  48. #48
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Shortest Formula Challenge!!

    ha you must have redone it then since you have 65 on the sheet lol

  49. #49
    Forum Contributor
    Join Date
    05-04-2014
    Location
    New Jersey, United States
    MS-Off Ver
    Excel 2010, 2013
    Posts
    120

    Re: Shortest Formula Challenge!!

    Haha yeah I changed the files last night actually. You must've gotten the first one.

  50. #50
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Shortest Formula Challenge!!

    61 for student averages - assuming we don't have to count the {}?
    Remember what the dormouse said
    Feed your head

  51. #51
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Shortest Formula Challenge!!

    i can see the arrays i want but have no idea how to sum or average them! eg {86,87,88;1,2,3;60,70,80}
    i want either
    {261;6;210} or {87;2;70} its driving me mad!

  52. #52
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Shortest Formula Challenge!!

    Quote Originally Posted by romperstomper View Post
    61 for student averages - assuming we don't have to count the {}?
    Well - I imagine you have to count them if they're part of an actual array constant!

    I still can't beat 62 with the "=".

    Regards

  53. #53
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Shortest Formula Challenge!!

    No, I mean the array formula part. I figure I didn't type them so they don't count.

  54. #54
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Shortest Formula Challenge!!

    {} dont count but = is so say the rules of course you can shortern some of these slightly with ifna in 2013 rather than iferror

  55. #55
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Shortest Formula Challenge!!

    Ah! There's an IFNA() in 2013?!

  56. #56
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Shortest Formula Challenge!!

    Got the Student Averages down to 53.

    Edit: down to 51 now.

    Regards
    Last edited by XOR LX; 07-07-2014 at 12:49 PM.

  57. #57
    Forum Contributor
    Join Date
    05-04-2014
    Location
    New Jersey, United States
    MS-Off Ver
    Excel 2010, 2013
    Posts
    120

    Re: Shortest Formula Challenge!!

    I won't be fully able to update this thread or comment on it for another 6 hours or so because of work, but I'm excited to hear more of what you guys came up with.

  58. #58
    Valued Forum Contributor
    Join Date
    02-08-2010
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2007
    Posts
    122

    Re: Shortest Formula Challenge!!

    Quote Originally Posted by clabulis View Post
    I'm going to post my solutions below in white font to prevent spoilers to those still attempting them. I ask everyone else to do the same when posting your own solutions. Thanks!

    Highlight the area below each title to view them.

    No Seven Sum (28 Characters)
    =SUM(SUBSTITUTE(0&G:H,7,)*1)

    (Must use Ctrl+shift+enter)


    Word Starter (47 Characters)
    =SUM(N(MID(" "&G2,ROW(1:32767),2)={" I","
    I"}))

    (Must use CSE)
    NOTE: The split in the formula is a line break, thus accounting for that scenario within the sample text.
    I can't see the formula

    Thanks

  59. #59
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Shortest Formula Challenge!!

    Quote Originally Posted by sailepaty View Post
    I can't see the formula
    You didn't follow the instructions?

    Quote Originally Posted by clabulis View Post
    Highlight the area below each title to view them.
    Regards

  60. #60
    Forum Contributor
    Join Date
    05-04-2014
    Location
    New Jersey, United States
    MS-Off Ver
    Excel 2010, 2013
    Posts
    120

    Re: Shortest Formula Challenge!!

    Quote Originally Posted by XOR LX View Post
    Got the Student Averages down to 53.

    Edit: down to 51 now.

    Regards

    I got mine down to 61 but I have no idea how to cut it back any further!!

  61. #61
    Forum Contributor
    Join Date
    05-04-2014
    Location
    New Jersey, United States
    MS-Off Ver
    Excel 2010, 2013
    Posts
    120

    Re: Shortest Formula Challenge!!

    I'm going to post my solutions to Game 2 below in white font to prevent spoilers to those still attempting them. I ask everyone else to do the same when posting your own solutions. Thanks!

    Highlight the area below each title to view them.

    Last Instance (61 Characters)
    =IFERROR(RIGHT(G2,MATCH("-",LEFT(RIGHT(G2,ROW(A:A))),)-1),"")

    (Use CSV)


    Student Averages (61 Characters)
    =SUM(LARGE(SUBTOTAL(1,OFFSET(H2,ROW(1:100),,,26)),{1,2,3}))/3

    (Use CSV)

  62. #62
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Shortest Formula Challenge!!

    arrgh crafty subtotal.....

  63. #63
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Shortest Formula Challenge!!

    No Seven Sum. I could only get down to 30 characters.

    Array enter

    =SUM(SUBSTITUTE(G2:H291,7,)*1)

    Found the correct number of words but formula horribly long
    Last edited by newdoverman; 07-07-2014 at 08:05 PM.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  64. #64
    Forum Contributor
    Join Date
    05-04-2014
    Location
    New Jersey, United States
    MS-Off Ver
    Excel 2010, 2013
    Posts
    120

    Re: Shortest Formula Challenge!!

    Game 3 is attached below. I had a huge struggle with "Letter Frequency" in this one. Took me forever! Good luck!
    Attached Files Attached Files

  65. #65
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Shortest Formula Challenge!!

    ok i'm with you on 30 char but isn't

    =LEN(G2)-LEN(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(G2,"i ","1 ")," i"," 1"),"I","1"),"1",""))
    101 characters?

  66. #66
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Shortest Formula Challenge!!

    solutions for game 2 please!
    i'll post mine as i has no idea about the averages and i liked your a:a idea so you win
    =IFERROR(RIGHT(g2,MATCH("-*",RIGHT(g2,ROW(1:32767)),0)-1),"")
    highlight above to see

  67. #67
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Shortest Formula Challenge!!

    @martindwilson

    I just realized that the idea was to get the shortest formula to accomplish the task also applied to the WORD challenge My solution just won't cut it.

  68. #68
    Forum Contributor
    Join Date
    05-04-2014
    Location
    New Jersey, United States
    MS-Off Ver
    Excel 2010, 2013
    Posts
    120

    Re: Shortest Formula Challenge!!

    I'm really curious to see XOR LX's word solution. I'm completely stumped.

  69. #69
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Shortest Formula Challenge!!

    Student Averages (again, in white font), but non-array(!!):

    =SUM(LARGE(MMULT(H3:AG102,ROW(1:26)^0),{1,2,3}))/78

    Looking forward to Game #3 now - loving this thread!

    Cheers
    Last edited by XOR LX; 07-08-2014 at 02:23 AM.

  70. #70
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Shortest Formula Challenge!!

    Instead of Keeping a single thread, I would like to see it in separate threads for each games.

    Shortest Formula Challenge 1

    Shortest Formula Challenge 2

    Shortest Formula Challenge 3

    Shortest Formula Challenge 4

    Like that, so that the discussions of those games stick with those threads


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  71. #71
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Shortest Formula Challenge!!

    I am unable to understand the Game 3 - Challenge #1 question

    G2 contains a number.
    Any number up to, and including, one million
    Can any one explain me what is the actual question?

  72. #72
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Shortest Formula Challenge!!

    Sixth - do you know what a prime number is?

    Regards

  73. #73
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Shortest Formula Challenge!!

    Quote Originally Posted by XOR LX View Post
    Sixth - do you know what a prime number is?
    Really don't know what it is.... lol

  74. #74
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Shortest Formula Challenge!!

    It's a number for which the only numbers which divide into it without a remainder are 1 and the number itself.

    For example, 12 is NOT a prime number, since 2, 3, 4 and 6 are all factors of 12 (12/2=6, 12/3=4, 12/4=3, 12/6=2).

    But 17 IS a prime number, since nothing (apart from 1 and 17 itself) divides into 17 without a remainder.

    Cheers
    Last edited by XOR LX; 07-08-2014 at 03:03 AM.

  75. #75
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Shortest Formula Challenge!!

    Quote Originally Posted by XOR LX View Post
    It's a number for which the only numbers which divide into it without a remainder are 1 and the number itself.
    Wow thanks for the nice explanation with examples

    Now I understand the question perfectly

  76. #76
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Shortest Formula Challenge!!

    Quote Originally Posted by :) Sixthsense :) View Post
    Wow thanks for the nice explanation with examples

    Now I understand the question perfectly
    Sure!

    Got 30 for Prime Number and 163 for Letter Frequency so far...

  77. #77
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Shortest Formula Challenge!!

    I think the Letter Frequency needs a bit of clarification.

    For example, what if the text uses less than 9 of the 26 letters of the alphabet? What result should the formula give then?

    And if two or more letters occur equally frequently then any of those is fine to return?

    Regards

  78. #78
    Forum Contributor
    Join Date
    05-04-2014
    Location
    New Jersey, United States
    MS-Off Ver
    Excel 2010, 2013
    Posts
    120

    Re: Shortest Formula Challenge!!

    Quote Originally Posted by XOR LX View Post
    Student Averages (again, in white font), but non-array(!!):

    =SUM(LARGE(MMULT(H3:AG102,ROW(1:26)^0),{1,2,3}))/78

    Looking forward to Game #3 now - loving this thread!

    Cheers

    Nice! I actually just read up on the MMULT function last night. You beat me to it though!

    Glad you're liking the thread too

  79. #79
    Forum Contributor
    Join Date
    05-04-2014
    Location
    New Jersey, United States
    MS-Off Ver
    Excel 2010, 2013
    Posts
    120

    Re: Shortest Formula Challenge!!

    Quote Originally Posted by XOR LX View Post
    I think the Letter Frequency needs a bit of clarification.

    For example, what if the text uses less than 9 of the 26 letters of the alphabet? What result should the formula give then?

    And if two or more letters occur equally frequently then any of those is fine to return?

    Regards
    You're right actually. I'll have to think of that one a little more after work today.

  80. #80
    Forum Contributor
    Join Date
    05-04-2014
    Location
    New Jersey, United States
    MS-Off Ver
    Excel 2010, 2013
    Posts
    120

    Re: Shortest Formula Challenge!!

    Quote Originally Posted by :) Sixthsense :) View Post
    Instead of Keeping a single thread, I would like to see it in separate threads for each games.

    Shortest Formula Challenge 1

    Shortest Formula Challenge 2

    Shortest Formula Challenge 3

    Shortest Formula Challenge 4

    Like that, so that the discussions of those games stick with those threads
    Good idea! It'll be difficult to split the first three up now that they've already been discussed, but I can apply your suggestion to future releases. Is there any way to edit the title of a thread? So that this one can be changed to something like "Shortest Formula Challenge 1-3"?

  81. #81
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Shortest Formula Challenge!!

    Quote Originally Posted by clabulis View Post
    Is there any way to edit the title of a thread? So that this one can be changed to something like "Shortest Formula Challenge 1-3"?
    Thanks for considering the suggestion

    Click on the Edit button in the First Post and click Go Advanced which will give you to option to edit the thread title, I believe

  82. #82
    Forum Contributor
    Join Date
    05-04-2014
    Location
    New Jersey, United States
    MS-Off Ver
    Excel 2010, 2013
    Posts
    120

    Re: Shortest Formula Challenge!!

    Got the letter frequency problem down to 155. Let's keep the formula requirements to apply strictly for the text that's already there, as opposed to being dynamic.

    Bonus points to the person who can make a fully dynamic function!

  83. #83
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Shortest Formula Challenge!!

    Quote Originally Posted by clabulis View Post
    Got the letter frequency problem down to 155. Let's keep the formula requirements to apply strictly for the text that's already there, as opposed to being dynamic.

    Bonus points to the person who can make a fully dynamic function!
    Prime Number: 30

    Letter Frequency:

    139 - Current text

    143 - Any text, presuming it contains such a ninth most frequently occurring character - you still haven't clarified what results should be given in the circumstances I outlined earlier.

    Cheers!
    Last edited by XOR LX; 07-08-2014 at 09:45 AM.

  84. #84
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Shortest Formula Challenge!!

    In fact, I'm not sure it's such a great idea to make this one applicable to the current text only.

    All the preceding challenges have required a generalisable solution and, what's more, with this particular challenge one of the more difficult aspects is accounting for the fact that, in general, a combination of counts for both upper- and lower-case versions of each letter must be considered.

    However, if it's just for this passage, there's nothing to stop me performing several manual calculations to verify that the result is unchanged by excluding the (fewer) upper-case letters in the text (i.e. that "h" still comes out top) and so removing any consideration for them from the solution.

    If this is the case then I imagine I could take another 10-15 off my formula length.

    Regards
    Last edited by XOR LX; 07-08-2014 at 09:56 AM.

  85. #85
    Forum Contributor
    Join Date
    05-04-2014
    Location
    New Jersey, United States
    MS-Off Ver
    Excel 2010, 2013
    Posts
    120

    Re: Shortest Formula Challenge!!

    I agree with you completely. Formula must be dynamic. If two or more letters are tied for 9th, return any one of them. If there are less than 9 different letters, return a blank. I'll give it a try tonight when I get home from work.

  86. #86
    Forum Expert GeneralDisarray's Avatar
    Join Date
    09-15-2011
    Location
    Pittsburgh, PA, USA
    MS-Off Ver
    Windows Excel 2016
    Posts
    1,416

    Re: Shortest Formula Challenge!!

    I got "no seven sum" to 34 , "word starter" I'm down to 86! I'm just glad to get there with no helper column :D

    Also, the only puzzles i see are the "No Seven Sum" and "Word Starter"... am i missing a updated puzzle book?

    Edit:

    Finally realized people were posting solutions with white font to hide spoiling... here's mine...I realize the numbers are high and really, really late to the party but i revisted this about 5 times today when i had a moment to spare until i got something... so i'm putting it up

    No seven sum 34- =SUM(1*SUBSTITUTE(G2:H291,"7",""))

    Word Starter 86- =SUM(--(MID(" "&G2,ROW(1:426),2) = " I"),--(MID(" "&G2,ROW(1:426),2) = CHAR(10) &"I"))
    Last edited by GeneralDisarray; 07-08-2014 at 03:12 PM.
    Remember, saying thanks only takes a second or two. Click the star icon(*) below the post you liked, to give some Rep if you think an answer deserves it.

    Please,mark your thread [SOLVED] if you received your answer.

  87. #87
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Shortest Formula Challenge!!

    Quote Originally Posted by clabulis View Post
    I agree with you completely. Formula must be dynamic. If two or more letters are tied for 9th, return any one of them. If there are less than 9 different letters, return a blank. I'll give it a try tonight when I get home from work.
    Ok. Guess that additional clause is going to increase the formula length somewhat...

    Cheers

  88. #88
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Shortest Formula Challenge!!

    Anyway, off on holiday now for two weeks, so will have to leave it there.

    I've added a clause to my Letter Frequency formula in line with returning a blank if there are less than 9 distinct letters in the text, so now my best is 176.

    Solutions in white below for anyone interested.

    Shame I'll be missing the rest (great fun, this!) but best of luck to all and hopefully there'll be more to come some time in the future (big thanks to clabulis for all the effort that's obviously been put in to these exercises!).

    Cheers and see you soon!

    (Both array formulas**):

    Prime Number: 30

    =SUM(0+(MOD(G2,ROW(A:A))=0))=2

    Letter Frequency: 176

    =IFERROR(CHAR(63+MATCH(IFERROR(1/(1/(LARGE(FREQUENCY(CODE(MID(UPPER(G2),ROW(A:A),1)&"@"),ROW(64:90)),10))),"|"),FREQUENCY(CODE(MID(UPPER(G2),ROW(A:A),1)&"@"),ROW(64:90)),)),"")

  89. #89
    Forum Contributor
    Join Date
    05-04-2014
    Location
    New Jersey, United States
    MS-Off Ver
    Excel 2010, 2013
    Posts
    120

    Re: Shortest Formula Challenge!!

    Quote Originally Posted by XOR LX View Post
    Anyway, off on holiday now for two weeks, so will have to leave it there.

    I've added a clause to my Letter Frequency formula in line with returning a blank if there are less than 9 distinct letters in the text, so now my best is 176.

    Solutions in white below for anyone interested.

    Shame I'll be missing the rest (great fun, this!) but best of luck to all and hopefully there'll be more to come some time in the future (big thanks to clabulis for all the effort that's obviously been put in to these exercises!).

    Cheers and see you soon!

    (Both array formulas**):

    Prime Number: 30

    =SUM(0+(MOD(G2,ROW(A:A))=0))=2

    Letter Frequency: 176

    =IFERROR(CHAR(63+MATCH(IFERROR(1/(1/(LARGE(FREQUENCY(CODE(MID(UPPER(G2),ROW(A:A),1)&"@"),ROW(64:90)),10))),"|"),FREQUENCY(CODE(MID(UPPER(G2),ROW(A:A),1)&"@"),ROW(64:90)),)),"")
    Awesome frequency solution! I had something very similar, but your "@" usage was very clever. Have a good time on holiday.

    (I'm happy to hear people are liking this thread too!)

  90. #90
    Forum Contributor
    Join Date
    05-04-2014
    Location
    New Jersey, United States
    MS-Off Ver
    Excel 2010, 2013
    Posts
    120

    Re: Shortest Formula Challenge!! (Games 1-3)

    My Prime Number solution (29 Characters)
    =SUM(N(MOD(G2,ROW(A:A))=0))=2

    My Letter Frequency solution was pretty lengthy after an inefficient IF statement, so I'm just gonna go with XOR LX's for now....

  91. #91
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Shortest Formula Challenge!! (Games 1-3)

    picky but row(a:a) is> 10^6

  92. #92
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Shortest Formula Challenge!! (Games 1-3)

    Hi clabulis,

    One more suggestion from my end. Please add the Game 4 link in Game 3 post, so that the followers of game 3 will aware of the game 4.

    Please repeat this step on every games so that the chain will not get broken and the subscribed users of every games will be aware of the new games

  93. #93
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Shortest Formula Challenge!! (Games 1-3)

    why ? its not an official competition is it?,

  94. #94
    Forum Contributor
    Join Date
    05-04-2014
    Location
    New Jersey, United States
    MS-Off Ver
    Excel 2010, 2013
    Posts
    120

    Re: Shortest Formula Challenge!! (Games 1-3)

    Quote Originally Posted by martindwilson View Post
    picky but row(a:a) is> 10^6
    To be able to check for primes for the first 1048576 numbers is even better than just being able to check for the first 1000000 I think

  95. #95
    Forum Contributor
    Join Date
    05-04-2014
    Location
    New Jersey, United States
    MS-Off Ver
    Excel 2010, 2013
    Posts
    120

    Re: Shortest Formula Challenge!! (Games 1-3)

    Quote Originally Posted by :) Sixthsense :) View Post
    Hi clabulis,

    One more suggestion from my end. Please add the Game 4 link in Game 3 post, so that the followers of game 3 will aware of the game 4.

    Please repeat this step on every games so that the chain will not get broken and the subscribed users of every games will be aware of the new games
    I think checking the main water cooler page would be the best way to find the new games honestly. Remember, not everyone involved with these games has been here from the beginning. And not everyone will wanna go in chronological order.

  96. #96
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Shortest Formula Challenge!! (Games 1-3)

    Quote Originally Posted by clabulis View Post
    And not everyone will wanna go in chronological order.
    Threads placement never stay in chronological order since based on the replies the threads go up and down.

    So in future if anyone wanted to go through all the games then it is an hectic one in finding the sequence of games threads.

    Just a thought!

  97. #97
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Shortest Formula Challenge!! (Games 1-3)

    Remember, not everyone involved with these games has been here from the beginning. And not everyone will wanna go in chronological order.
    you left out - and not everyone bothers lol

  98. #98
    Valued Forum Contributor Hawkeye16's Avatar
    Join Date
    02-27-2013
    Location
    Holland
    MS-Off Ver
    ├•┤ Pew Pew
    Posts
    441

    Re: Shortest Formula Challenge!! (Games 1-3)

    I have letter frequency at 125. Please point out my error

    =CHAR(MAX(IF(SMALL(LEN(SUBSTITUTE(UPPER(G2),CHAR(ROW(65:90)),)),9)=LEN(SUBSTITUTE(UPPER(G2),CHAR(ROW(65:90)),)),ROW(65:90))))

    edit: doesnt work with less than 9 letters... I can't get it below 176 while accounting for that at first glance.
    Last edited by Hawkeye16; 07-11-2014 at 10:33 AM. Reason: replace ; with ,
    Despite the high cost of living, it remains very popular.

    Don't forget to mark threads SOLVED when you get an answer and rep all the geniouses that helped you today!

  99. #99
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: Shortest Formula Challenge!! (Games 1-3)

    Letter Frequency: 105, No error handler

    =CHAR(64+RIGHT(LARGE((LEN(G2)-LEN(SUBSTITUTE(UPPER(G2),CHAR(ROW(65:90)),))&TEXT(ROW(1:26),"00"))+0,9),2))

    No Seven Sum: 28 (use full column reference, G:H)

    =SUM(SUBSTITUTE(0&G:H,7,)+0)

    Last Instance: 50, No error handler

    =MID(G2,LOOKUP(2^15,FIND("-",G2,ROW(A:A)))+1,2^15)
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

+ 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. Shortest Path Between Cells (VBA)
    By basschmidt in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-18-2018, 06:07 PM
  2. shortest distance between a point and a line
    By stockgoblin42 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-04-2013, 02:18 PM
  3. Excel 2007 : Conditional formatting for shortest time
    By darkknight4251 in forum Excel General
    Replies: 10
    Last Post: 12-22-2011, 11:01 AM
  4. Shortest formula to create a special array
    By kayard in forum Excel General
    Replies: 6
    Last Post: 02-07-2011, 01:01 PM
  5. shortest between 2 numbers
    By Martindelica in forum Excel General
    Replies: 4
    Last Post: 11-16-2007, 09:32 PM

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