+ Reply to Thread
Results 1 to 18 of 18

Got any Useless Formulas?

  1. #1
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Got any Useless Formulas?

    Does anyone else come up with unlikely scenarios and problems to solve using formulas as a way to educate yourself, but realistically probably serve no purpose?

    Post your "useless formulas" below, maybe someone will find them useful or at least educational!
    You should hit F5, because chances are I've edited this post at least 5 times.
    Example of Array Formulas
    Quote Originally Posted by Jacc View Post
    Sorry, your description makes no sense. I just made some formula that looks interesting cause I had nothing else to do.
    Click the * below on any post that helped you.

  2. #2
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Re: Got any Useless Formulas?

    Mine...for today: I know they are not particularly efficient, I'm still playing with them

    Enter each into an area of 1 Column, 26 Rows (CSE)


    This one will list out which capital letters, in Alphabetical order, are missing from a cell (F4) of any length of any characters

    =IFERROR(CHAR(SMALL(IFERROR((0/(N(IFERROR(1/(FREQUENCY(IFERROR(SMALL(IFERROR(VLOOKUP(CODE(MID(F4,ROW(INDIRECT("1:"&LEN(F4))),1)),CHOOSE(COLUMN(A:B),ROW(65:90),ROW(97:122)),1,0),""),ROW(INDIRECT("1:"&LEN(F4)))),""),ROW(65:90))>0)*ROW(65:90),"")<>ROW(65:90))*ROW(65:90))+1)*ROW(65:90),""),ROW(1:26))),"")



    This one does the same for Lowercase letters in the same cell (F4)

    =IFERROR(CHAR(SMALL(IFERROR((0/(N(IFERROR(1/(FREQUENCY(IFERROR(SMALL(IFERROR(VLOOKUP(CODE(MID(F4,ROW(INDIRECT("1:"&LEN(F4))),1)),ROW(97:122),1,0),""),ROW(INDIRECT("1:"&LEN(F4)))),""),ROW(97:122))>0)*ROW(97:122),"")<>ROW(97:122))*ROW(97:122))+1)*ROW(97:122),""),ROW(1:26))),"")



    This will list in alphabetical order which Capital letters are used in a cell (F4)

    =IFERROR(CHAR(SMALL(IFERROR(1/(FREQUENCY(IFERROR(SMALL(IFERROR(VLOOKUP(CODE(MID(F4,ROW(INDIRECT("1:"&LEN(F4))),1)),ROW(65:90),1,0),""),ROW(INDIRECT("1:"&LEN(F4)))),""),ROW(65:90))>0)*ROW(65:90),""),ROW(1:26))),"")


    This will do the same for Lowercase letters in (F4)

    =IFERROR(CHAR(SMALL(IFERROR(1/(FREQUENCY(IFERROR(SMALL(IFERROR(VLOOKUP(CODE(MID(F4,ROW(INDIRECT("1:"&LEN(F4))),1)),ROW(97:122),1,0),""),ROW(INDIRECT("1:"&LEN(F4)))),""),ROW(97:122))>0)*ROW(97:122),""),ROW(1:26))),"")
    Last edited by Speshul; 08-06-2014 at 11:45 AM.

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Got any Useless Formulas?

    This formula was the solution I came up with to a couple of questions posted in forums over the years.

    You have a matrix of cells that contain some data. You want to know which cell contains the lookup value as a location number within the matrix. There are no duplicates in the matrix.

    Data Range
    A
    B
    C
    1
    82
    32
    53
    2
    89
    39
    96
    3
    52
    72
    16
    4
    15
    86
    85
    5
    34
    8
    14
    6
    ------
    ------
    ------
    7
    Lookup
    86
    11


    The lookup value 86 is in cell number 11 of the matrix. The lookup direction is left to right, top to bottom.

    =MATCH(1,FREQUENCY(1,--(A1:C5=B7)),0)

    We can even do it from top to bottom, left to right:

    Data Range
    A
    B
    C
    1
    82
    96
    86
    2
    32
    52
    85
    3
    53
    72
    34
    4
    89
    16
    8
    5
    39
    15
    14
    6
    ------
    ------
    ------
    7
    Lookup
    86
    11


    Array entered**:

    =MATCH(1,FREQUENCY(1,--(TRANSPOSE(A1:C5=B7))),0)

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

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

    Re: Got any Useless Formulas?

    the sequence number seems to me to be hardly informative,

    I'd prefer:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by snb; 08-06-2014 at 05:57 PM.



  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Got any Useless Formulas?

    Quote Originally Posted by snb View Post
    the sequence number seems to me to be harly informative
    That's what the OP asked for.

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Got any Useless Formulas?

    If you just want the cell address...

    Array entered**:

    =ADDRESS(MAX(IF(A1:C5=F1,ROW(A1:C5))),MAX(IF(A1:C5=F1,COLUMN(A1:C5))))

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

  7. #7
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Re: Got any Useless Formulas?

    Took me a second to realize what was going on in those tables Tony, very neat, x = in the nth cell of an array if read like a book left to right one row at a time. that is indeed fairly useless in any application I can think of ^-^.
    Last edited by Speshul; 08-06-2014 at 05:01 PM.

  8. #8
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Re: Got any Useless Formulas?

    Here's another.

    Array entered:
    =CHAR(ROUNDDOWN(AVERAGE(SUM(CODE(MID(E6,ROW(INDIRECT("1:"&LEN(E6))),1)))/LEN(E6)),0))

    This will give you the average character of a string entered in E6. so AC will return B, but A C will return 6, because the space changes the average.

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

    Re: Got any Useless Formulas?

    Quote Originally Posted by Tony Valko View Post
    That's what the OP asked for.
    Which OP ?

  10. #10
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Got any Useless Formulas?

    Quote Originally Posted by snb View Post
    Which OP ?
    The one that asked the question.

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

    Re: Got any Useless Formulas?

    No arrayformulas needed:

    Formula: copy to clipboard
    Please Login or Register  to view this content.

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

    Re: Got any Useless Formulas?

    No arrayformulas needed:

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  13. #13
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Re: Got any Useless Formulas?

    Methinks the intention for this thread is being misunderstood

  14. #14
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Got any Useless Formulas?

    Quote Originally Posted by Speshul View Post
    Methinks the intention for this thread is being misunderstood
    Ya think?

  15. #15
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Re: Got any Useless Formulas?

    Ok, so I've been toying with formulas again with no real goal as to what I'm working on, and came up with something that gives results I don't quite understand:

    The formula is CSE:
    =IFERROR(CHAR(LARGE(--(MID(A1,COLUMN(INDIRECT("1:"&LEN(A1))),1)=CHAR(ROW(1:255)))*ROW(1:255),ROW(INDIRECT("1:"&LEN(A1))))),"")

    Enter it into a column of a bunch of rows, I'm using 20.

    Type some random string into A1, letters, numbers, whatever. It lists them all out in order by their code, which is similar to something I did in another formula above.

    The thing is, it doesn't seem to consistently line up with what you actually type into the cell? Why?

    Note: This one lags my excel a lot, fair warning.


    cse63.PNG

    I didn't want to start a new help thread because this formula serves no purpose and I don't care if it works or not, I'm more curious about what it's doing to give me the result it is giving me

    From what I can tell, it is giving me a number of capital letters equal to the number of spaces in my string in A1. But still, W T S S? or CHAR's 87 84 83 83, ?!

  16. #16
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Got any Useless Formulas?

    Well - it's not formulae, but a rather useless little system to emulate the ring of an old-fashioned phone

    Please Login or Register  to view this content.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  17. #17
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Re: Got any Useless Formulas?

    I find this extremely useful, but it's also useless.

    Count down how many seconds, in decimal, you have until you go home
    Quittin time goes in red
    Todays date in the blue



    =HOUR(DATE(2014,8,28)+TIME(17,30,0)-NOW())*60*60+MINUTE(DATE(2014,8,28)+TIME(17,30,0)-NOW())+SECOND(DATE(2014,8,28)+TIME(17,30,0)-NOW())


    Edit: Actually no, it doesn't even work. Now I have something to do though! Will edit in a working one...
    Last edited by Speshul; 08-28-2014 at 03:14 PM.

  18. #18
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,781

    Re: Got any Useless Formulas?

    If you use this formula

    =MOD("17:30"-NOW(),1)

    and custom format cell as [s] then you get the number of seconds until the next instance of 17:30

    I'm not sure if that qualifies as "useless" or not......
    Audere est facere

+ 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. useless variable cleaning
    By guigol in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-24-2013, 01:25 PM
  2. [SOLVED] Useless filters
    By 1992 in forum Excel General
    Replies: 7
    Last Post: 09-18-2012, 10:29 AM
  3. GIFs instead of workbooks is mostly useless
    By pike in forum The Water Cooler
    Replies: 1
    Last Post: 03-18-2011, 07:30 AM
  4. Formulas won't enter into cells in Excel 2000 only as useless data
    By rebelkey in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-09-2006, 08:55 AM
  5. Logic Tree, MS help = useless
    By roffler in forum Excel Formulas & Functions
    Replies: 63
    Last Post: 09-06-2005, 07:05 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