+ Reply to Thread
Results 1 to 8 of 8

Using VLOOKUP to find the lowest number in two columns

  1. #1
    Forum Contributor
    Join Date
    08-21-2010
    Location
    Bournemouth, England
    MS-Off Ver
    Microsoft 365
    Posts
    215

    Using VLOOKUP to find the lowest number in two columns

    Hello.
    I'm trying to search columns I and J to find the lowest number which will go in column AB5. Then search columns S and T to put the lowest number in column AC5.
    Thank you.
    Attached Files Attached Files
    Last edited by tom hatten; 01-25-2018 at 02:18 PM.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,002

    Re: Using VLOOKUP to find the lowest number in two columns

    Is this what you want??

    =MIN($I$5:$J$28)

    and

    =MIN($S$5:$T$28)
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Using VLOOKUP to find the lowest number in two columns

    May be
    =min(index(i5:i28+j5:j28,0))
    and
    =min(index(s5:s28+t5:t28,0))
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  4. #4
    Forum Contributor
    Join Date
    08-21-2010
    Location
    Bournemouth, England
    MS-Off Ver
    Microsoft 365
    Posts
    215

    Re: Using VLOOKUP to find the lowest number in two columns

    Thank you both for your help but I think I must have explained things wrongly.
    In cell AB5 I want to display Barnsley's lowest number from cells I23 and J23 (0.86 and 1.21)
    In cell AC5 I want to display Fulham's lowest number from cells S11 and T11 (1.64 and 1.50)

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,002

    Re: Using VLOOKUP to find the lowest number in two columns

    You never mentioned that...

    AB5

    =MIN(IF($B$5:$B$28=W5,$I$5:$J$28))

    AC5

    =MIN(IF($B$5:$B$28=X5,$S$5:$T$28))

    Both are array formulae. Array Formulae are a little different from ordinary formulae in that they MUST be confirmed in the FIRST CELL ONLY by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. After that, the array can be dragged down as normal, to cover the desired range.

    You will know the array is active when you see curly brackets { } - or "curly braces" for those of you in the USA, or "flower brackets" for those of you in India - appear around the outside of your formula. If you do not use CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly brackets yourself - it won't work...

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

    Re: Using VLOOKUP to find the lowest number in two columns

    Try these:

    AB5 =MIN(IF(B$5:B$28=W5,I$5:J$28)) Ctrl Shift Enter
    AC5 =MIN(IF(B$5:B$28=X5,S$5:T$28)) Ctrl Shift Enter

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,002

    Re: Using VLOOKUP to find the lowest number in two columns

    or a non-array alternative

    =AGGREGATE(15,6,$I$5:$J$28/($B$5:$B$28=W5),1)

    and

    =AGGREGATE(15,6,$S$5:$T$28/($B$5:$B$28=X5),1)

    In both cases, I have assumed that the AB relates to the H team, and AC to the A team
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    08-21-2010
    Location
    Bournemouth, England
    MS-Off Ver
    Microsoft 365
    Posts
    215

    Re: Using VLOOKUP to find the lowest number in two columns

    Thank you very much.

+ 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] Find Specific Number - If not found find next lowest number
    By mattyp in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-14-2017, 03:03 PM
  2. Replies: 1
    Last Post: 10-07-2016, 02:16 PM
  3. VBA To find nearest biggest number and lowest number
    By gan_xl in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-01-2014, 05:49 AM
  4. Replies: 5
    Last Post: 02-13-2014, 05:37 PM
  5. Find lowest number in groups then lowest overall.
    By swieduwi in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-24-2008, 01:00 PM
  6. find lowest number?
    By qscesz in forum Excel General
    Replies: 4
    Last Post: 01-22-2008, 07:51 AM
  7. [SOLVED] find the lowest value in a row and add a number to it
    By Kim in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-28-2005, 01:05 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