How to find large fuel consumption in Excel

primasatria

New Member
Joined
Dec 3, 2023
Messages
9
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
Dear all,

I have data of monthly fuel consumption, let's say January 2024.
Using large function, I can get the list of top ten based on quantity of fuel consumption.

In "summary" sheet, column F (quantity in liter) based on "Dataset" sheet:
1. 500
2. 500
3. 500
4. 450
5. 400

In "Dataset" sheet:
column A = ID Badge
row 1: 22001
row 2: 22002
row 3: 22004
row 4: 22003

column B = First Name
row 1: Jim
row 2: Andrew
row 3: Mike
row 4: Greg

Column C = Fuel Quantity
row 1: 500
row 2: 500
row 3: 400
row 4: 500

How do I know or lookup value in "Summary" sheet from "Dataset" sheet that the duplicate value is belong to a certain driver.
for the first 500 should be Jim, ID Badge 22001
for the second 500 should be Andrew, ID Badge 22002
for the third 500 should be Greg, ID Badge 22003

If can not solve using Excel functions, is there any chance to do it in Excel VBA? And how is the code?

Thank you very much for kind assistance and helpin hand.
Best regards,
prima - Indonesia
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Try this

Excel Formula:
=SORTBY(A2:C5,A2:A5,1,B2:B5,1,C2:C5,1)


1705638416659.png
 
Upvote 0
Solution

Forum statistics

Threads
1,224,821
Messages
6,181,163
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top