+ Reply to Thread
Results 1 to 4 of 4

find largest number in range and add 1

  1. #1
    Forum Contributor
    Join Date
    10-25-2016
    Location
    Derby, England
    MS-Off Ver
    MS 2013
    Posts
    228

    find largest number in range and add 1

    Hi,

    I posted this yesterday on a different forum and I got exactly what I wanted but now I've realised I need it modifying a little more please.

    Cross thread:
    https://www.mrexcel.com/forum/excel-...tive-cell.html

    Please Login or Register  to view this content.
    I added the +1 to give me the next number after the largest in the range. It works but only if the number entered is greater than the largest number in the range.

    If the entered number is smaller than the largest number in the range then the code returns the largest number, not the largest number +1.

    Please can someone help me so if the entered number is smaller it returns the largest number +1.

    Thanks

    Dan

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: find largest number in range and add 1

    Any chance of a slight more detailed explanation of your expected results?
    A sample workbook could help too.

    BSB

  3. #3
    Forum Contributor
    Join Date
    10-25-2016
    Location
    Derby, England
    MS-Off Ver
    MS 2013
    Posts
    228

    Re: find largest number in range and add 1

    Hi BSB,

    I just created a new test sheet to show you my problem but the code worked correctly, so I deleted all the data in the range on my original sheet and started again and now it too is working correctly.
    I'll never get to grips with excel lol
    Sorry to waste your time BSB but thank you for looking.

    Regards

    Dan

  4. #4
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: find largest number in range and add 1

    No probs at all Dan.
    Glad it's all working as expected now

    BSB

+ 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. Find row number of largest value in cell range
    By Sean Anderson in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-07-2013, 07:07 AM
  2. [SOLVED] Find Largest Number In String
    By mrmoc85 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-16-2013, 12:38 AM
  3. Replies: 4
    Last Post: 06-14-2012, 06:53 AM
  4. Macros - find largest number in range
    By hmgrts in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 07-09-2009, 02:27 PM
  5. find largest number in a range and change font to bold
    By xlnewbee in forum Excel General
    Replies: 2
    Last Post: 06-19-2009, 03:46 PM
  6. Find Largest Number
    By asmenut in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-07-2005, 11:05 AM

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