+ Reply to Thread
Results 1 to 6 of 6

Finding the largest number in a column of numbers formatted as text

  1. #1
    Registered User
    Join Date
    02-19-2014
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2007
    Posts
    42

    Finding the largest number in a column of numbers formatted as text

    In the spreadsheet is a column headed, Project ID Numbers. The format of this number is YY-XX, where the YY = the last 2 digits of the year; XX is a consecutive number beginning with 01. This is a project management tool that assigns priority numbers and project managers. The list of projects are sorted by a Priority number that is calculated by adding the score to weighted categories. Because of this sorting, the project numbers are not in order. There are projects from 2017 that are after projects 2019. What I want to do is to have a convenience factor to let the project coordinator know what the last number used for a specific year in order to assign a new number without having to manually sort or check each number. I tried using LARGE, INDEX, MATCH, VALUE, DMAX all to no success. I keep getting either a #Value or a #Num or a message that either I have too many arguments or too few arguments for the function.

    Attached is an abridged version of the spreadsheet. I have entered the date in a cell above the column and tried to match the numbers in the column to RIGHT(g5,2) with no success. I would like to have the largest project number that is already assigned for that year entered into a cell, so the data entry can give the new project the next consecutive number.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Finding the largest number in a column of numbers formatted as text

    Hi vtentarelli,

    This formula seems to do what I think you want:

    =MAX((LEFT($B$7:$B$75,2)=RIGHT($D$4,2))*(--RIGHT($B$7:$B$75,2)))

    It is an Array formula and needs to be entered with a Control+Shift+Enter keystroke.

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.

    Look at the formula in this attached file.
    Array Formul using parts of stings and Max.xlsx
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,407

    Re: Finding the largest number in a column of numbers formatted as text

    Although you didn't ask you might also consider replacing the formula in column E with (non-array entered)
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Dave

  4. #4
    Registered User
    Join Date
    02-19-2014
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2007
    Posts
    42

    Re: Finding the largest number in a column of numbers formatted as text

    Thank you for the quick and simple reply. There was a bit of a delay in my response because I discovered another problem with the spreadsheet and I wanted to prepare a mock-up for submission, but it may take me longer than originally planned.
    If appropriate, I have a question about the (*) and the (--) features in the formula. If you think acceptable, I was wondering if you could give me a brief explanation on the purpose and meaning of those symbols. I associate (*) with multiplication, but I have never seen (--) in a formula. Thank you.

  5. #5
    Registered User
    Join Date
    02-19-2014
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2007
    Posts
    42

    Re: Finding the largest number in a column of numbers formatted as text

    That was quite unexpected and very much appreciated. I hadn't focused on that part of the spreadsheet as this was a partially completed project dumped on me half-done. Thanks for the input.

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,407

    Re: Finding the largest number in a column of numbers formatted as text

    You're welcome. Thanks for the feedback and added rep.

    Since Marvin's on line at the moment he may be preparing an explanation of the "*" and "--" parts.

+ 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] Text formatted numbers to number format
    By oneyejack77 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-17-2017, 08:33 PM
  2. [SOLVED] Finding the largest number in a data set then retrieving a value in a diff column
    By bjanabi in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-06-2017, 02:55 PM
  3. Finding largest number in a column and adjust column width to fit
    By rob47uk in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-01-2014, 07:12 PM
  4. Convert Text-Formatted Numbers To Number Format
    By accell in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-12-2014, 12:58 PM
  5. Extracting numbers and text from inconsistent text/number formatted string
    By Brandivil in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-25-2013, 01:46 PM
  6. Finding largest value in subsequent column from matching ID numbers
    By Norsemermaid in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-29-2011, 11:27 AM
  7. Finding largest number with custom made ID numbers
    By bigeyedphish in forum Excel General
    Replies: 2
    Last Post: 11-21-2011, 04:06 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