+ Reply to Thread
Results 1 to 7 of 7

Find the highest value from range, multiple entry and adjacent cells date

  1. #1
    Registered User
    Join Date
    05-09-2017
    Location
    United Arab Emirates
    MS-Off Ver
    2016
    Posts
    15

    Question Find the highest value from range, multiple entry and adjacent cells date

    Hi

    In the excel sheet, I have the date in J8:J9999 and Invoice number in the Column K8:K9999.

    Invoice number having 4 series as below,
    1 to 1000
    1001 to 4000
    4001 to 5000
    10000 to 15000

    Invoice number entry will be like this
    1&2&3
    1005
    1006&1007&1008
    4004
    4005&4006&4007

    I used a formula in R4 to find the highest value from 4000 to 5000 is
    =AGGREGATE(14,6,K8:K9999/(K8:K9999>=4001)/(K8:K9999<=5000),1)

    My expected value in R4 is 4007 (highest value between 4000 to 5000) but it is showing 4004 because it is ignoring to take 4005&4006&4007 entry.

    How do I change the formula to get the 4007 in cell R4?

    Note: The entry from 4000 to 5000 will be the year of 2019 entries only. I don't know how to get the highest value from this year entry as well as multiple entries too.

    Please suggest the formula

    Thanks in advance

    Sincerely Yours
    Anbuselvam K
    Attached Files Attached Files

  2. #2
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Find the highest value from range, multiple entry and adjacent cells date

    If there are more values in one cell then the MAX function will skip that because it's not numeric.
    You will have to find a way to identify each portion as a separate number.
    I'm sure it can be done with a formula, look up for a way to split the cell value into separate numbers using the ampersand as separator
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

  3. #3
    Registered User
    Join Date
    05-09-2017
    Location
    United Arab Emirates
    MS-Off Ver
    2016
    Posts
    15

    Re: Find the highest value from range, multiple entry and adjacent cells date

    I have used below array formula in cell K6 to find out the missing number from given the minimum and maximum value in cell Q4 and R4,

    {=IFERROR(SMALL(IF(ISNA(MATCH(ROW(INDEX($A:$A,$Q$4):INDEX($A:$A,$R$4)),SMALL(IFERROR(0+TRIM(MID(SUBSTITUTE(K8:K10895,"&",REPT(" ",30)),{1,30,60,90,120},30)),""),ROW(1:10895)),0)),ROW(INDEX($A:$A,$Q$4):INDEX($A:$A,$R$4))),ROW(A1)),"")}

    Anyone suggest another formula like above which can find the highest numbers considering multiple number entries and range from 4001 to 5000 and also, with respect to dates in the adjecent rows.

    Thanks in Advance.

  4. #4
    Registered User
    Join Date
    05-09-2017
    Location
    United Arab Emirates
    MS-Off Ver
    2016
    Posts
    15

    Exclamation Re: Find the highest value from range, multiple entry and adjacent cells date

    Hi

    The below formula also finding the highest values even with multiple entries like 12200&12201&12203. But, I need to find between 4001 to 5000 ranges.

    Because this year invoice number starts with 4001 which is a lesser value than last year invoice number series like 12200 and so.

    =AGGREGATE(14,6,--MID(SUBSTITUTE(K8:K10921,"&",REPT(" ",30)),{1,30,60,90,120},30),1)

    Do the needful

    Thanks in advance

  5. #5
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Find the highest value from range, multiple entry and adjacent cells date

    That is certainly an extra handicap

  6. #6
    Registered User
    Join Date
    05-09-2017
    Location
    United Arab Emirates
    MS-Off Ver
    2016
    Posts
    15

    Re: Find the highest value from range, multiple entry and adjacent cells date

    Quote Originally Posted by Keebellah View Post
    That is certainly an extra handicap
    What did you mean?

  7. #7
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Find the highest value from range, multiple entry and adjacent cells date

    Figure out how to consider only the required invoice numbers.

+ 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 the Max Value and adjacent cells Date
    By nickpavlov in forum Excel General
    Replies: 5
    Last Post: 11-06-2017, 04:20 AM
  2. If all cells in range contain a date value, then return the highest date
    By jordan2322 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-02-2017, 08:12 PM
  3. Problem find date + select non adjacent range
    By mariec_06 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 10-10-2017, 05:40 AM
  4. [SOLVED] Multiple Highest Numbers and Adjacent Cells
    By jaclrsen in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-10-2015, 04:20 PM
  5. Replies: 7
    Last Post: 05-28-2014, 03:19 AM
  6. Replies: 4
    Last Post: 09-27-2011, 04:16 AM
  7. Replies: 15
    Last Post: 07-23-2008, 06:59 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