+ Reply to Thread
Results 1 to 3 of 3

Add "1" to highest value from a range

  1. #1
    Forum Contributor
    Join Date
    06-18-2010
    Location
    London
    MS-Off Ver
    Excel 365
    Posts
    139

    Question Add "1" to highest value from a range

    Hi guys,

    Context: If I wanted a field that looked at a RANGE of other values and then added "1" to the highest value.

    I.e. In a holiday booking example (just for illustration), if I felt more strongly about the room score than the spa score, I might want to add "1" to the highest scoring room option.

    So I've attached a sample sheet. I want CELL O3 to consider the highest value in the "ROOM SCORE" column (COLUMN D) and then +1 to whichever value was the highest. Only the highest value should trigger a +1 in COLUMN O and others should be left alone.

    Does it make sense?

    Thanks,

    Z
    Attached Files Attached Files

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

    Re: Add "1" to highest value from a range

    Do you mean this?

    =IF(D3=MAX($D$3:$D$6),D3+1,D3)
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,645

    Re: Add "1" to highest value from a range

    Try this in O3 and copy down.

    =(D3=MAX($D$3:$D$6))+D3
    If posting code please use code tags, see here.

+ 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] Column X-Ref list - Sheet1 Col A "pages", Col B:FL "Req" to Sheet2 ColA "req", ColB "page"
    By excel-card-pulled in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-07-2017, 09:30 AM
  2. VBA - Excel 2013 - WorksheetFunction.CountBlank
    By dude6571 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-29-2017, 05:33 PM
  3. macro to record value "1" depending on another cell value being highest in range
    By semajjames in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-18-2015, 07:24 PM
  4. [SOLVED] If Not ActiveSheet.Range("A1").Value Like "apple" Then MsgBox "Error"
    By HerryMarkowitz in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-18-2014, 02:16 PM
  5. Replies: 5
    Last Post: 01-23-2014, 11:02 AM
  6. if Range("A1") = "Mike" Then Range("A1") = "michael" Then Exit Sub
    By a8015945 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-30-2013, 10:08 AM
  7. use variable in Workbooks("book1").Worksheets("sheet1").Range("a1"
    By Luc in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-28-2005, 04: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