+ Reply to Thread
Results 1 to 5 of 5

Max Numbers from Column with Formulas

  1. #1
    Forum Contributor
    Join Date
    08-10-2016
    Location
    Minneapolis, Minnesota
    MS-Off Ver
    Office 365
    Posts
    124

    Max Numbers from Column with Formulas

    Please help with the following:

    Column A Column B
    01-023 =Right(D7,3)
    04-223 =Right(D8,3)
    08-056 =Right(D9,3)

    I would like to get the following formula to work:
    MAX(Column B)+1
    I need the highest value from Column B +1

    Thanks,
    Yuriy
    Last edited by YuriyBaron; 12-05-2017 at 04:14 PM.

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Max Numbers from Column with Formulas

    Based on the sample that you shared, what should the result of the formula be?

    You didn't show us what is in column D.

    Taking your request literally would be this:

    =MAX(B:B)+1

    but I am assuming that isn't what you are looking for.

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,695

    Re: Max Numbers from Column with Formulas

    RIGHT function always returns a text value so if you change your formula in row 7 copied down to this:

    =RIGHT(D7,3)+0

    ...then the +0 is converting it to a number. Now if you use MAX function on the results it should work as required
    Audere est facere

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,411

    Re: Max Numbers from Column with Formulas

    The problem here is that the RIGHT function returns a text value - it might look like a number, but it is just a series of characters. You can convert the text value to a proper number (as Excel understands it) by just carrying out a bit of arithmetic like adding zero or multiplying by 1, like this:

    B7: =RIGHT(D7,3)+0

    and copying this down. Then your formula:

    =MAX(B:B)+1

    should work okay (ensure it is not in column B) If you want to display the leading zeroes in column B, then apply a Custom Format of 000 to those cells.

    Hope this helps.

    Pete

  5. #5
    Forum Contributor
    Join Date
    08-10-2016
    Location
    Minneapolis, Minnesota
    MS-Off Ver
    Office 365
    Posts
    124

    Re: Max Numbers from Column with Formulas

    Yes!
    I did not know that +0 would convert it to a number.
    Thank you!

+ 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. Replies: 4
    Last Post: 04-24-2017, 06:27 AM
  2. [SOLVED] Returning a column of numbers and empty cells into a column of only numbers
    By Jeffmeistro in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 09-03-2014, 01:45 AM
  3. Replies: 6
    Last Post: 07-06-2014, 10:19 PM
  4. Replies: 2
    Last Post: 05-15-2013, 11:08 PM
  5. Replies: 1
    Last Post: 09-06-2011, 01:14 PM
  6. Replies: 2
    Last Post: 11-23-2006, 01:41 PM
  7. Replies: 2
    Last Post: 06-14-2006, 09:15 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