+ Reply to Thread
Results 1 to 17 of 17

Search highest numbers in a row

Hybrid View

  1. #1
    Registered User
    Join Date
    01-02-2015
    Location
    Belgium
    MS-Off Ver
    2013
    Posts
    9

    Search highest numbers in a row

    Hi guys,

    I searched this forum a while and didn't really found what I was looking for.

    I want to extract the highest numbers from a row, but with certain conditions.
    KW01_stats receiving.xlsx

    In cell 'P35' I want the first value from row 33 which is higher than 20
    In cell 'P36' I want the second value from row 33 which is higher than 20
    In cell 'P37' I want the third value from row 33 which is higher than 20
    In cell 'P38' I want the fourth value from row 33 which is higher than 20

    I tried it with the formula "Large", but this f.e. only gives me the third high ranked number, not the third high positioned number. If you know what I mean..?

    Can someone help me out with this one?

    Thanks

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

    Re: Search highest numbers in a row

    The largest number on row 33 is 17 (try it with =MAX(33:33) ), so none of them match your criteria.

    Pete

  3. #3
    Registered User
    Join Date
    01-02-2015
    Location
    Belgium
    MS-Off Ver
    2013
    Posts
    9

    Re: Search highest numbers in a row

    Sorry forgot to say: look in the sheet "test"

    Thanks

  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,408

    Re: Search highest numbers in a row

    I can't see a sheet called "test" - stop messing us about.

    Pete

  5. #5
    Registered User
    Join Date
    01-02-2015
    Location
    Belgium
    MS-Off Ver
    2013
    Posts
    9

    Re: Search highest numbers in a row


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

    Re: Search highest numbers in a row

    So just to recap, you don't want the highest number first - instead, you want the first number across the columns which exceed 20 (i.e. 2232, which occurs in column BYS), then the next number would be 256, which occurs in column CCS, then 359 in column CKJ, and so on?

    Pete

  7. #7
    Registered User
    Join Date
    01-02-2015
    Location
    Belgium
    MS-Off Ver
    2013
    Posts
    9

    Re: Search highest numbers in a row

    Hi pete,
    that's exactly what i'd want.
    Thanks

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

    Re: Search highest numbers in a row

    Put this array* formula in cell P35:

    =IFERROR(INDEX($33:$33,SMALL(IF($B$33:$CLW$33>20,COLUMN($B$33:$CLW$33)),ROWS($1:1))),"")

    *Note that an array formula needs to be committed using the key combination of Ctrl-Shift-Enter (CSE) instead of the usual <Enter>. If you do this correctly then Excel will wrap curly braces { } around the formula when viewed in the formula bar, but you should not type these yourself. If you need to edit or amend the formula, you must use CSE again to commit it.

    You can then copy the formula down into P36:P39 using the normal method(s).

    Hope this helps.

    Pete

  9. #9
    Registered User
    Join Date
    01-02-2015
    Location
    Belgium
    MS-Off Ver
    2013
    Posts
    9

    Re: Search highest numbers in a row

    I'll try it on monday when I get back at work.
    I'll keep you informed.

    Thanks in advance
    Regards

  10. #10
    Registered User
    Join Date
    01-02-2015
    Location
    Belgium
    MS-Off Ver
    2013
    Posts
    9

    Re: Search highest numbers in a row

    Hi,

    I tried the formula, but I keep getting error messages. I also used CSE like you told.
    =IFERROR(INDEX($33:$33,SMALL(IF($B$33:$CLW$33>20,COLUMN($B$33:$CLW$33)),ROWS($1:1))),"")

    Do I need to adjust something if I put this in another cell?

    Grtz

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

    Re: Search highest numbers in a row

    What error messages are you getting? Do you see the curly brackets around the formula in the formula bar? I tried it out in cell W35, so it whould work elsewhere.

    Attach the workbook with the formula in if you can't get it to work.

    Hope this helps.

    Pete

  12. #12
    Registered User
    Join Date
    01-02-2015
    Location
    Belgium
    MS-Off Ver
    2013
    Posts
    9

    Re: Search highest numbers in a row

    Hi Pete,

    This is what I entered
    formula failure 1.png

    This is the failure I get
    formula failure 2.png

    I just copied your formula into the formulabar and committed wih CSE.

    Is my office version different from yours? I use 2013

    Grtz

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

    Re: Search highest numbers in a row

    I can't view PNG files on this forum - please attach an Excel workbook instead.

    Pete

  14. #14
    Registered User
    Join Date
    01-02-2015
    Location
    Belgium
    MS-Off Ver
    2013
    Posts
    9

    Re: Search highest numbers in a row

    I can't save my excel worksheet it there is failure in the formula.
    I slightly adjusted the formula into this:
    =IFERROR(INDEX(33:33(IF($B$33:$CLW$33>20;COLUMN($B$33:$CLW$33));ROWS($P35:$P38))),"")
    I changed the columns into semi-columns and changed $1:1 into $P35:$P38. When I commit this I get the notification that there aren't enough arguments for this formula.
    The workbook in which I tried it is still the same as the one I uploaded

    Grtz

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

    Re: Search highest numbers in a row

    I've put the formula in cell P35 of the file you attached to Post #5, and then copied it down.

    Hope this helps.

    Pete
    Attached Files Attached Files

  16. #16
    Registered User
    Join Date
    01-02-2015
    Location
    Belgium
    MS-Off Ver
    2013
    Posts
    9

    Re: Search highest numbers in a row

    Now it works fine. Thanks!

    I noticed that if I copy the formula into another sheet, I have to save the file before I see the results..

    Thanks again

    Grtz

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

    Re: Search highest numbers in a row

    Perhaps the file is set for Manual recalculation - click on Formulas | Calculation Options and ensure that Automatic is checked.

    Thanks for the rep - if that takes care of your original question, please select Thread Tools from the menu above your first post and mark this thread as SOLVED.

    Pete

+ 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: 3
    Last Post: 12-23-2012, 08:53 PM
  2. Find top 2 lowest numbers and top 2 highest numbers
    By photographex in forum Excel General
    Replies: 7
    Last Post: 02-12-2011, 10:57 PM
  3. Search column for highest value, then second highest, etc.
    By MDPlanner in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-24-2010, 10:39 AM
  4. Replies: 6
    Last Post: 02-24-2010, 11:48 PM
  5. Replies: 1
    Last Post: 01-09-2006, 09:30 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