Advanced Lookup Formula to Show 3 Lowest Prices with Supplier Name, Including Ties. EMT 1737.

Поделиться
HTML-код
  • Опубликовано: 6 июл 2024
  • Download Excel File: excelisfun.net/files/EMT1737....
    Learn how to lookup and display the three lowest transportation prices and transporter name from a large lookup table with From Location, To Location and Size of Truck. There-way lookup to return multiple records. See the functions: XLOOKUP, FILTER, XMATCH, LET, SORT, COUNTIFS, SMALL and ISNUMBER.
    Learn how to:
    1. (00:00) Explanation of the there-way lookup to return multiple records
    2. (00:35) Intro Song
    3. (00:42) Older Methods if you do NOT have Microsoft 365
    4. (01:08) Lookup price column with XLOOKUP
    5. (01:51) FILTER to filter prices to get the third smallest value.
    6. (02:26) Look at semi-colons in array that instruct FILTER Dynamic Array Function to filter by rows.
    7. (02:46) SMALL function to get third smallest price.
    8. (03:09) FILTER function to filter by rows.
    9. (03:40) Discussion of AND Logical tests in include argument of FILTER, including why the formula returns 0 and 1 values.
    10. (04:45) Vertical Array that allows FILTER to filter by rows.
    11. (05:29) FILTER function to filter columns. Use XMATH and ISNUMBER functions.
    12. (06:13) Look at columns in resultant array that instruct FILTER Dynamic Array Function to filter by columns.
    13. (07:08) Bonus #1. COUNTIFS and IF function to deal with situations where there are fewer records than three. Use these in k argument of SMALL.
    14. 07:53) Bonus #2: LET function to define variable when there are duplicate formula elements. Leads to a more efficient calculating formula. Easier to read too.
    15. (08:40) SORT Dynamic Array Function to sort the transportation prices from smallest to biggest.
    16. (09:10) Summary of formulas and functions used in video.
    17. (09:25) Summary, Closing and Video Links
    How to accomplish if you do not have Microsoft 365. Excel Magic Trick 967: Formula To Extract Top 5 Numbers & Names, Including Ties or Duplicates, • Excel Magic Trick 967:...
    Lookup 3 smallest values. Retrieve three smallest values. One Lookup value, return multiple records. Three Lookup Values. Three Way Lookup. Extract top values, Lookup and display lowest bids. How to lookup and return multiple values. To 10 values. Top three values. Top five values. Transportation Lookup Table. Complex Lookup. Three lookup values to get lowest supplier bids.

Комментарии • 132

  • @elbadlis
    @elbadlis 3 года назад +1

    I watched this video 5 times to understand each part of the formula. Thanks Amazing Sifu Mike!

    • @excelisfun
      @excelisfun  3 года назад +1

      That is what is great about videos, there is a rewind button to help us learn : ) : )

  • @simplysagar2688
    @simplysagar2688 3 года назад +2

    Mike is the BRUCE LEE of excel
    I have to watch his all videos at 0.5x to understand completely😎😎😎

    • @excelisfun
      @excelisfun  3 года назад

      Glad I can help, simplysagar!!!!

  • @abdelkrimmesaiahmed662
    @abdelkrimmesaiahmed662 3 года назад +2

    You are genius Mike, I love the Xmatch trick better than filter with {1,0,0,0,0,6,0,0}

    • @excelisfun
      @excelisfun  3 года назад +1

      Glad you like it : ) Yes, the XMATCH to filter columns is a great trick : )

  • @chrisk.9765
    @chrisk.9765 3 года назад +2

    Perfect mix of formulas

    • @excelisfun
      @excelisfun  3 года назад

      Glad you like it, Chris!!!!!

  • @canirmalchoudhary8173
    @canirmalchoudhary8173 3 года назад +2

    Lots of concept cleared. Now I know how to filter the filter.

    • @excelisfun
      @excelisfun  3 года назад

      Flad the filter filter helped : ) Sorta fun : )

  • @SyedMuzammilMahasanShahi
    @SyedMuzammilMahasanShahi 3 года назад +2

    Thanks Mike for this EXCELlent video.

    • @excelisfun
      @excelisfun  3 года назад

      You are welcome, Fellow Teacher !!!!!

  • @kiwikiow
    @kiwikiow 3 года назад +2

    Wow. This formula combination is amazing.

    • @excelisfun
      @excelisfun  3 года назад +1

      Glad it was ghostly amazing for you, kiwikiow!!!!

  • @spilledgraphics
    @spilledgraphics 3 года назад +3

    WOAH !!!! at minute 6:20 = Awesomeness Mike !!! I´ll be honest, I was not aware of XMATCH, I kid you not! 🤯🤯 #GoTeam !!!! 🔥🔥🔥🔥

    • @excelisfun
      @excelisfun  3 года назад

      Yes, FILTER is amazing in that semi colon gets us the rows and commas gets us the columns!!!! XMATCH with a function argument array operation is rad!!!!

  • @Abioladavid01
    @Abioladavid01 3 года назад +2

    Amazing video. Indeed, Excel Is Fun 🤩👍👍🤠

  • @lucaviglio1206
    @lucaviglio1206 3 года назад +1

    Wow i think i will study it more the once because the logic within in so versatile.
    Thanks a lot Mike for another great video

    • @excelisfun
      @excelisfun  3 года назад +1

      You are welcome, luca !! Study makes us smarter : )

    • @lucaviglio1206
      @lucaviglio1206 3 года назад

      @@excelisfun So true😊

  • @darrylmorgan
    @darrylmorgan 3 года назад +1

    Boom!Now That's What I Call A Super Cool Formula!!Simply Awesome...Thank You Mike :)

    • @excelisfun
      @excelisfun  3 года назад

      Thanks for the boom on the super cool formula, darryl : ) : )

  • @deepk82
    @deepk82 3 года назад +2

    Made my day! Simply Amazing!

    • @excelisfun
      @excelisfun  3 года назад

      Glad it is amazing for you, Deepak!!!!!

  • @edge5817
    @edge5817 3 года назад +1

    Wow... just wonderful Mike! Thank you!

    • @excelisfun
      @excelisfun  3 года назад

      You are welcome, Edge!!!

  • @davorercegovac3674
    @davorercegovac3674 3 года назад +2

    Thank you, the best... as always :)

    • @excelisfun
      @excelisfun  3 года назад

      Glad you liked it, Davor!!!!

  • @mattschoular8844
    @mattschoular8844 3 года назад +2

    Awesome! Thanks Mike. XLOOKUP and FILTER are so powerful. These have become "daily drivers" in my workflow. Combine these with XMATCH and all the classic functions and you can do just about whatever your mind thinks of in Excel.

    • @excelisfun
      @excelisfun  3 года назад +1

      I totally agree. I think I use FILTER even more than XLOOKUP too. Because FILTER just seems to be able to do anything. Lucky for us : ) : ) : )

  • @bondniko
    @bondniko 3 года назад +1

    I am not a novice in excel, but this is totally new. Great job!

    • @excelisfun
      @excelisfun  3 года назад

      Yes, it is definitely new and awesome! Glad you liked it, bondniko!!!

  • @pcodello
    @pcodello 3 года назад +2

    Very good video. You are the best.

    • @excelisfun
      @excelisfun  3 года назад

      Glad it was very good for you, Paulo!!!

  • @usmaniqbal1836
    @usmaniqbal1836 3 года назад +2

    Amazing! Mike love you, God bless you..

    • @excelisfun
      @excelisfun  3 года назад +1

      Glad it is amazing for you, usman!!! Thanks for the love!!!!

  • @GeertDelmulle
    @GeertDelmulle 3 года назад +2

    I like the Power Query solution the best because it's so easy.
    I like easy. :-)

    • @excelisfun
      @excelisfun  3 года назад +1

      I like worksheet formulas in lookup situations where I am changing conditions often. But Power Query definitely is awesome!!! Do you think it is easier than worksheet formulas?

    • @GeertDelmulle
      @GeertDelmulle 3 года назад

      @@excelisfun In this case: yes. The right combination of unpivot-merge-group-index-... will do the trick. :-)

    • @excelisfun
      @excelisfun  3 года назад +1

      @@GeertDelmulle To me, long time formula guy, formulas seem easier. Easier is in the eye of the beholder sometimes ; )

  • @wayneedmondson1065
    @wayneedmondson1065 3 года назад +2

    Awesome Monday lookup goodness Mike! Thanks for stepping through this great problem and super solution :)) Thumbs up!!

    • @excelisfun
      @excelisfun  3 года назад +1

      You are welcome for the step through. Thanks for the thumbs up : )

  • @SantiagoMolero
    @SantiagoMolero 3 года назад +2

    Although I have to admit that this video complicated for me, it was amazing. Thank you!

    • @excelisfun
      @excelisfun  3 года назад

      You are welcome! Watch a few times and study and you will have most of what you need for advanced lookups : ) : )

  • @chrism9037
    @chrism9037 3 года назад +3

    Epic formula Mike, outstanding!

    • @excelisfun
      @excelisfun  3 года назад

      Glad it is epic for you, Chris : )

  • @MySpreadsheetLab
    @MySpreadsheetLab 3 года назад +2

    Amazing as usual !

    • @excelisfun
      @excelisfun  3 года назад

      Long time no hear - great to hear from you Kevin : )

  • @nadermounir8228
    @nadermounir8228 3 года назад +1

    Super nice tricks. Thanks Mike

    • @excelisfun
      @excelisfun  3 года назад

      You are welcome, Nader!!!!

  • @johnborg5419
    @johnborg5419 3 года назад +2

    Thanks Mike. That was mind blowing!!! : ) : )

    • @excelisfun
      @excelisfun  3 года назад

      Glad it was mind blowing, John!!!

    • @excelisfun
      @excelisfun  3 года назад +1

      Formulas rule!!!!! ; )

  • @Excelambda
    @Excelambda 3 года назад +4

    Great Video!! I was missing this brilliant formulas videos !!😂✌. I've liked the ingenious way of using hybrid formula with LET inside.👍👍
    For fun:
    =LET(x,XLOOKUP(F30,I16:L16,I17:L26),y,(F17:F26=F28)*(G17:G26=F29)*x,z,IF(y,y),sm,SMALL(z,SEQUENCE(F31)),h,MAX(IFERROR(sm,"")),SORT(FILTER(CHOOSE({1,2},E17:E26,y),z

    • @excelisfun
      @excelisfun  3 года назад +2

      Amazing, Exceλambda!!!!! Thanks for the teammate awesomeness : ) I added the formula to the download workbook so that the Team can be happier and smarter : ) : )

    • @GeertDelmulle
      @GeertDelmulle 3 года назад +1

      Cesar, your formula is the best!! :-)

    • @Excelambda
      @Excelambda 3 года назад +1

      @@GeertDelmulle Thanks a lot!! Coming from you means a lot to me.😊✌

    • @excelisfun
      @excelisfun  3 года назад

      @@Excelambda I agree : ) : ) : ) : )

  • @jaichander87
    @jaichander87 3 года назад +2

    You are always awesome...🙏🙏

  • @djcabrera
    @djcabrera 3 года назад +2

    Incredible, as usual...

  • @ExcelatWork55
    @ExcelatWork55 3 года назад +2

    Great problem and solution. :)

    • @excelisfun
      @excelisfun  3 года назад

      Yes, it is a fun problem!!!! Go Team!!!!

  • @GeertDelmulle
    @GeertDelmulle 3 года назад +2

    Great fun exercise! :-)

    • @excelisfun
      @excelisfun  3 года назад +1

      Fun is good!!!! Thanks for those cool intros and outros : ) : )

    • @GeertDelmulle
      @GeertDelmulle 3 года назад

      @@excelisfun Thanks Mike. You're welcome.
      BTW: I just sent you my PQ-M solution to this EMT. Hope you like it.

  • @brianxyz
    @brianxyz 3 года назад +4

    This is one of those videos that will require more than one viewing to fully understand everything that is going on.

    • @excelisfun
      @excelisfun  3 года назад

      Yes, a lot going on. But less complicated that formulas before Microsoft 365 : )

    • @ExcelInstructor
      @ExcelInstructor 3 года назад

      @@excelisfun Mr. mike a have a question in regards to arreys.
      if in o365 i type: "={1\2\3\4\5}" I'll get an array spilled into 5 columns .
      now what If i need to change those hardcoded numbers to relative cell references?
      i tried:
      =INDIRECT("{"&A2&"\"&B2&"\"&C2&"\"&D2&"\"&E2&"}")
      and
      =INDIRECT("={"&A2&"\"&B2&"\"&C2&"\"&D2&"\"&E2&"}")
      to no avail.
      any hints how can I achieve inserting relative cell references into an array?

    • @excelisfun
      @excelisfun  3 года назад

      ​@@ExcelInstructor I do not really understand your question. For relative cell references, can't you just use: =A2:E2

    • @ExcelInstructor
      @ExcelInstructor 3 года назад

      @@excelisfun yeah I could. im just wondering if there is a way to create arrey syntax like: {1\2\A2\A3\3\4} so that some parts o the array are static and some are dependent on the cell value.

    • @excelisfun
      @excelisfun  3 года назад

      @@ExcelInstructor I do not know how to do that : ( I am not that smart, though. You can tray THE best Excel question web site for back and forth dialog to get Excel solutions: mrexcel.com/board

  • @OzduSoleilDATA
    @OzduSoleilDATA 3 года назад +2

    Good stuff. Intriguing. 🤔

  • @kishorpanara4191
    @kishorpanara4191 3 года назад +1

    Excellent mike

    • @excelisfun
      @excelisfun  3 года назад

      Glad it was EXCELlent for you, kishor!!!!

  • @sideshowbobby71
    @sideshowbobby71 2 года назад

    I was trying to figure out how to make the filter function dynamic
    With rows. I like how you used xmatch and is number. Thank you.
    I would love to see a video of how you solve a problem and see your trial and error process.

  • @tomnicolle195
    @tomnicolle195 3 года назад +1

    Wow! Amazing video. I only wish I could do that lol

    • @excelisfun
      @excelisfun  3 года назад +1

      You can do it!!!! Just go slow and build it piece by piece : )

  • @hectorricardus
    @hectorricardus 2 года назад +1

    just found the answer! amazing !

    • @excelisfun
      @excelisfun  2 года назад +1

      Yes!!! with over 3,600 videos posted over last 14 years, I have answers to many questions, as long as you search my channel : )

    • @hectorricardus
      @hectorricardus 2 года назад +1

      @@excelisfun I follow you for more than 8 years and I thank you very much for your efforts! It’s amazing

    • @excelisfun
      @excelisfun  2 года назад +1

      @@hectorricardus Glad to help! Thanks for the support with those thumbs ups : )

  • @rsanthoze
    @rsanthoze 3 года назад

    nice video as usual , was expecting the power query explanation

    • @excelisfun
      @excelisfun  3 года назад +1

      Not going to do that Power Query version because a scenario like this needs to be instant update and only formulas do that. But I did put the Power Query solution in download workbook : )

  • @saju212ali6
    @saju212ali6 3 года назад

    Thanks for you amazing tutorials I love and learned a lot from them. Do you also teach programming courses as well love your teaching style

    • @excelisfun
      @excelisfun  3 года назад

      I am sorry I only have Excel worksheet formulas, M Code and DAX programming at this channel.

  • @roderickmose4691
    @roderickmose4691 3 года назад +2

    It's Super EIF !!

    • @excelisfun
      @excelisfun  3 года назад

      Glad you like it, roderick!!!

  • @yunwohyow6861
    @yunwohyow6861 3 года назад

    I have a question on macro that involves calculation with moving range of data (all in numbers).
    At stage 1, the range of data is A3:M51. (49 rows in all)
    calculation for cell "I3" is "=COUNTIF($B$44:$H$51,A3)"
    and calculation for cell "M3" is "=RANK($L3,$L$3:$L$51)”.
    Then, “I3” and “M3” are to copy down all the way to “I51” and “M51” respectively.
    Stage 1 ends here.
    Next, stage 2,
    2 sets of fresh data are added into A52:H53, and J52:K53.
    Data in row 3 and 4 (A3:K4) are now no longer involved in this stage 2 calculation, but calculation is still on 49 rows. i.e. the data range had moved down, hence the new calculations are:
    A
    1) calculation cell "I3" changed to cell "I5" and
    2) formula for "I5" is changed to "=COUNTIF($B$46:$H$53,A5)"
    B
    1) calculation cell "M3" changed to "M5" and
    2) formula for "M5" is changed to "=RANK($L5,$L$5:$L$53)
    And this (moving of data range down 2 rows) is to repeat and continue.
    Can you suggest a way to record a macro to perform stage 2 and every subsequent stages after fresh data are added into the 2 bottom rows and the 2 rows of oldest data at the top are dismissed? Thanks.

  • @adamgoodrich80
    @adamgoodrich80 3 года назад +1

    Bonus #1. 7:15 is it faster or more efficient to use the if statement instead of just a min function? min(countifs criteria, hurdle)

    • @excelisfun
      @excelisfun  3 года назад

      Yes!!!!!!! That is a hot tip : ) LOVE IT!!!!

  • @sophearumthach2169
    @sophearumthach2169 3 года назад

    Hey I've taken your class before and It made me realize I really enjoy using excel for finances and just helping with life in general. I was wondering if you had a recommendation for what degree would be good for somebody pursuing a career using excel, finances, data science, and python. I get that its a bit of a request but your videos have helped me a lot and I really appreciate it. I really believe I would love pursuing a degree for this purpose but its so hard finding a route that covers all of this. I have a plan for completing college without student loan debt. I should probably talk to an advisor and I will, but I thought you would have a better idea than an advisor about this specific niche. If you do respond thank you so much, if you don't have a good day!

    • @excelisfun
      @excelisfun  3 года назад +1

      Finance uses Excel 100% of the time. It is the field that uses it the most. Accounting is second. Those are both of the majors that I earned.

    • @sophearumthach2169
      @sophearumthach2169 3 года назад

      @@excelisfun This makes a lot of sense, thanks a lot for letting me know!

  • @mohammadbadady6954
    @mohammadbadady6954 3 года назад

    if you please , how to shifting rows in power query??

  • @sujik1003
    @sujik1003 3 года назад

    Very useful. Thanks a lot.
    Pl help me out to sort out the following error in power query.
    I have a large data consisting of various formulae. Few headers include special character like backslashes. When i tried to transform this using power query, it works at the first time. But when i refresh it, it is throwing an error external table not in expected format. How do i sort out this.. Pl help

    • @excelisfun
      @excelisfun  3 года назад

      Try this great dialog to get solutions web site: mrexcel.com/board

  • @HusseinKorish
    @HusseinKorish 3 года назад

    This is amazing Mike ... and i have a question on excel CSV files ... once i used it for dynamic arrays formula it worked fine but it doesn't save ... so if i close and open ...everything is converted to values and no formulas .... any suggession ?

    • @excelisfun
      @excelisfun  3 года назад +1

      I am sorry but I do not understand your question.

    • @HusseinKorish
      @HusseinKorish 3 года назад

      @@excelisfun i used Excel .csv extension file … and inserted Filter formula … it worked fine … but after saving and closing then reopen the file again …the formula isn't there … only the values of the formula

    • @excelisfun
      @excelisfun  3 года назад +1

      @@HusseinKorish That is because a .csv file is NOT an Excel file. When you open a .csv file in Excel, it just uses Excel to display the .csv file. When you use Excel to open the .csv file, you can not add Excel features to that file. If you do, they will always be lost when you save it. If you open a .csv file in Excel and want to add formulas and use other features, you must Save As (F12) and save it as an Excel file.

    • @HusseinKorish
      @HusseinKorish 3 года назад

      @@excelisfun Thanks Mike ... that saved me lots of work

  • @zaibakhanum203
    @zaibakhanum203 3 года назад

    Hi Sir.. just need ur help..
    I need to find the total sell plan for products that are priced greater than 15000 and less than 15000
    Data set field are in this order
    Product, Brand, Selling Price, Sell Plan

  • @makelifeeasy6035
    @makelifeeasy6035 3 года назад +2

    * is for logical AND, what's the equivalent for OR

    • @jimfitch
      @jimfitch 3 года назад +2

      +

    • @excelisfun
      @excelisfun  3 года назад +3

      Yes, like Jim says, plus is for OR and multiplication is for AND. Usually in school, this is taught in a statistics class.

    • @jimfitch
      @jimfitch 3 года назад

      Usually taught in statistics. Didn’t know that. Or, more likely, didn’t remember that from the last statistics class I took - 46 years ago! 😀 Good stuff - among the most useful courses I took.

  • @blackwhite2361
    @blackwhite2361 3 года назад

    *UNRELATED. I CHOSE YOUR MOST CURRENT VIDEO SO YOU SEE THIS QUESTION SOONER*
    So. I your tutorials I notice you use fact tables with only one date column. What if I have a fact table with more than one date columns. How do I go about creating date dimension in power BI and modelling it and creating visuals. for example, I have an rdbms where the fact table has [order date], [shipping date], AND [required date]. I wish you could do a tutorial on it since all the answers I am getting from forums are all confusing. some say i should connect the date dimension to all date columns in the fact table and use something called USERELATIONSHIP in my DAX measures but i have no clue how to do that

    • @excelisfun
      @excelisfun  3 года назад

      Maybe this video from my MSPTDA class: MSPTDA 30: Order & Ship Dates in Fact Table: DAX Formulas and Data Modeling to Create Reports, ruclips.net/video/HJ9NMJpqJjE/видео.html

  • @vinaytyagi4088
    @vinaytyagi4088 3 года назад

    could you please make a formula for find negative and positive same values which set off each other with in same series.
    Thanks in advance!
    Example
    series amount
    1501 -100
    1501 100
    1501 -100
    1501 100
    1501 -100
    1501 -100
    2501 100
    2527 -100
    gbpq 100
    gbpj -100

    • @excelisfun
      @excelisfun  3 года назад

      Try this great dialog to get solutions web site: mrexcel.com/board