+ Reply to Thread
Results 1 to 4 of 4

Display text with more no. of characters in a range

  1. #1
    Registered User
    Join Date
    06-30-2010
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    18

    Display text with more no. of characters in a range

    Hello everyone,

    I need your help. I want to display a text which has more of no. of characters in a range.

    Example:

    Col A
    India
    India
    United States
    India

    Answer: United States

    I would need "United States" to be displayed as answer since this text has more no. of characters in the column A.

    Thanks in advance.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,821

    Re: Display text with more no. of characters in a range

    One way:

    =INDEX(A1:A4,MATCH(MAX(LEN(A1:A4)),LEN(A1:A4),0))
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert
    Join Date
    07-06-2004
    Location
    Northern California
    MS-Off Ver
    2K, 2003, 2010, O365
    Posts
    1,490

    Re: Display text with more no. of characters in a range

    With strings in A4:A99, try
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    The 2nd and 3rd INDEX calls should allow you to avoid array formula entry. However, you could shorten this to
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    as an array formula, so typing this formula then holding down [Ctrl] and [Shift] keys before pressing [Enter].

  4. #4
    Registered User
    Join Date
    06-30-2010
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: Display text with more no. of characters in a range

    Thank you both for your quick response!

+ 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] Display (not extract) first 'x' characters in a text cell
    By aprimak in forum Excel General
    Replies: 3
    Last Post: 01-30-2022, 08:40 AM
  2. Find and display certain text in a string based on a range of text.
    By JonesyCC in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-05-2017, 02:18 PM
  3. [SOLVED] Sum a range containing 3 text Characters then a number but not case sensitive
    By chrisandsally in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-06-2015, 02:42 PM
  4. To Sum a range containing 3 text Characters then a number
    By chrisandsally in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 04-05-2015, 09:35 AM
  5. [SOLVED] If a specified range contains a text value, then display adjacent cell text?
    By adegroot13 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-09-2014, 03:20 PM
  6. cell will not display all text characters? !
    By LTUser54 in forum Excel General
    Replies: 4
    Last Post: 08-15-2008, 04:23 PM
  7. [SOLVED] Display text > 1024 characters in a cell
    By Martin in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-12-2005, 07:30 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