+ Reply to Thread
Results 1 to 3 of 3

Excel 2007 : make "text" like "mode" fuction

Hybrid View

  1. #1
    Registered User
    Join Date
    08-04-2009
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    15

    Question make "text" like "mode" fuction

    hello again excel experts, i need a way to convert text into a mode function, i looked around everywhere to find a formula to make this before i made this post, bu could not find anything on this manor on this formula. i got a file for 2007 so take a look,

    if anyone can help this will be most appreciated, if not i'll do my best to find out how on my own XD.
    Attached Files Attached Files
    Last edited by Side.Order; 10-22-2010 at 08:37 PM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: make "text" like "mode" fuction

    W5 formula is fine since it's the first find.

    Put this in W6 and copy down:

    =IF(Y6<>Y5, VLOOKUP(Y6, $Q$5:$R$30, 2, 0), INDEX(INDEX(R:R, MATCH(W5, R:R, 0)+1):INDEX(R:R, MATCH("ZZ", R:R, 1)), MATCH(Y6, INDEX(Q:Q, MATCH(W5, R:R, 0)+1):INDEX(Q:Q, MATCH("ZZ", R:R, 1)), 0)))
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: make "text" like "mode" fuction

    If you wanted one formula for W5:W8 allowing for Merged Cells then:

    W5:
    =INDEX($R$5:$R$30,MATCH(1,INDEX(($Q$5:$Q$30=$Y5)*ISNA(MATCH($R$5:$R$30,$W$4:$W4,0)),0),0))
    copied down
    If for whatever reason you didn't want to use the Alphabet lookup table you could (if you removed the merge from cells W5:W8) use:

    W5:
    =CHAR(MODE(IF(($D$8:$O$20<>"")*ISNA(MATCH($D$8:$O$20,$W$4:$W4,0)),CODE($D$8:$O$20))))
    confirmed with CTRL + SHIFT + ENTER (enter alone would not suffice)
    copied down
    though the ordering of the duplicates would differ slightly from the first formula (and JBs) - unclear if this is of concern or not.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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