+ Reply to Thread
Results 1 to 3 of 3

Formula to return text if the cell next cell contains maximum or minimum number in a range

  1. #1
    Registered User
    Join Date
    02-20-2014
    Location
    Romania
    MS-Off Ver
    Office 2016
    Posts
    28

    Angry Formula to return text if the cell next cell contains maximum or minimum number in a range

    Hi.
    I have a column A1 to A20 containing sums of numbers from other sheets which keep changing. How can I get Excel to put "BEST" in cell B1 if A1 contains the biggest number, and maybe "Worst" in B14 if A14 contains the smallest number. There must be a formula to do this but I just can't get it.
    Thanks.
    Last edited by Chypp; 10-03-2014 at 03:47 AM.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,443

    Re: Formula to return text if the cell next cell contains maximum or minimum number in a r

    Enter the following in B1 and pull down as needed =If(A1=min($a$1:$a$20),"worse",if(a1=max($a$1:$a$20),"best",""))

  3. #3
    Registered User
    Join Date
    02-20-2014
    Location
    Romania
    MS-Off Ver
    Office 2016
    Posts
    28

    Re: Formula to return text if the cell next cell contains maximum or minimum number in a r

    It worked perfectly, thanks a lot!

+ 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] If cell contains text contained in a named range return the row number
    By spoursy in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-05-2014, 05:54 AM
  2. [SOLVED] Return Cell Address of Number used in Minimum Function
    By nms2130 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-28-2013, 10:12 AM
  3. Replies: 6
    Last Post: 12-07-2012, 12:47 PM
  4. Replies: 5
    Last Post: 11-10-2012, 04:31 PM
  5. Replies: 4
    Last Post: 09-18-2009, 02:09 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