+ Reply to Thread
Results 1 to 5 of 5

Mode not recognizing Numbers and Text in same cell

  1. #1
    Registered User
    Join Date
    01-21-2017
    Location
    East Tawas, Michigan
    MS-Off Ver
    Office 2013
    Posts
    25

    Mode not recognizing Numbers and Text in same cell

    I have a mode formula that identifies common manufacturing part #'s but I cannot seem to get it to recognize text and numbers in the same cell...these are a series of part #'s so there is a combination of hyphens, numbers, and letters within the part # it's trying to find.

    Here is the formula: =MODE(IF(ISNA(MATCH($H$3:$H$3000,$H$3001:H3001,0)),$H$3:$H$3000,""))


    My luck this is something incredibly simple, must just be having a brain jam.

    -Luke

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Mode not recognizing Numbers and Text in same cell

    Hello,

    please post a data sample to go with that formula. Post the expected result and explain the logic.

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

    Re: Mode not recognizing Numbers and Text in same cell

    MODE works on values, but if you have any text in a cell with numbers, that cell becomes text, and is no longer seen as a value by excel. You will need to break the value out of the cell (or remove the text), first
    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
    Registered User
    Join Date
    01-21-2017
    Location
    East Tawas, Michigan
    MS-Off Ver
    Office 2013
    Posts
    25

    Re: Mode not recognizing Numbers and Text in same cell

    So if i have a part # that is VP5L2H18C581AA that is listed 15 times in the same column and would be my most repeating number in the column MODE couldn't detect it? I kind of understand the logic of not being able to find both text and numbers combined, but would have to think Excel has figured out a way get around this. You can set a mode for text, and for numbers separately; there is no special formatting or addition to the formula that would make it able to detect it?

  5. #5
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Mode not recognizing Numbers and Text in same cell

    Two thoughts. Maybe not MODE but MAX(FREQUENCY? Or BASE(MODE(DECIMAL?

    This must be array entered. If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.

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



    A
    B
    2
    Michigan 26
    Michigan 26
    3
    Wisconsin 30
    4
    Illinois 27
    5
    Michigan 26
    6
    Michigan 26
    7
    Wisconsin 30
    8
    Michigan 26


    Since your profile shows Excel 2013, if there are no spaces or other non alpha-numeric characters (as in the lone example) or multiple blank cells.
    This non array formula.
    Formula: copy to clipboard
    Please Login or Register  to view this content.



    A
    B
    2
    MICHIGAN26
    MICHIGAN26
    3
    WISCONSIN30
    4
    ILLINOIS27
    5
    MICHIGAN26
    6
    MICHIGAN26
    7
    WISCONSIN30
    8
    MICHIGAN26
    Dave

+ 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. [SOLVED] Issues recognizing text and counting the cell depending on a condition
    By trotamundo in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 05-15-2014, 05:01 PM
  2. Issue Having Formula Recognizing Numbers Saved As Text As Numbers
    By livifivil in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-08-2013, 01:34 PM
  3. When inserting TMs in TEXT mode, all of the text in the cell is changed to the TM color.
    By divakarganta in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-03-2012, 03:12 AM
  4. Using mode with text not numbers
    By wolverineandrew in forum Excel General
    Replies: 2
    Last Post: 10-28-2010, 05:34 AM
  5. [SOLVED] Recognizing Numbers or names as duplicates
    By Gord Dibben in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-06-2005, 06:05 AM
  6. Recognizing Numbers or names as duplicates
    By Gord Dibben in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2005, 04:05 AM
  7. Recognizing Numbers or names as duplicates
    By texansgal in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM

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