Sorting several "0" values / Xlookup

dbx

New Member
Joined
Apr 24, 2012
Messages
13
Office Version
  1. 365
Platform
  1. Windows
Hello all,

I'm trying to create a small dashboard in Excel where I could monitor monthly sales results of 3 clients - Player 1, Player 2, Player 3
I need to see their names sorted based on their numbers and It's easy to do it when they have values bigger than zero.

Here is what I did:
A​
B​
C​
D
Player 1
15​
=LARGE($B1:$B3;1) -> 26=XLOOKUP(C1;$B1:$B3;$A1:$A3) -> Player 3
Player 2
3​
=LARGE($B1:$B3;2) -> 15=XLOOKUP(C2;$B1:$B3;$A1:$A3) -> Player 1
Player 3
26​
=LARGE($B1:$B3;3) -> 3=XLOOKUP(C3$B1:$B3;$A1:$A3) -> Player 2

The problem comes when two of the clients have 0 (zero) values:

Player 1 -> 15
Player 2 -> 0
Player 3 -> 0


Then the XLOOKUP function doesn't work properly and I see the following:

Player 1 -> 15
Player 2 -> 0
Player 2 -> 0


I need to see the names of all clients, no matter what their values are:

Player 1 -> 15
Player 2 -> 0
Player 3 -> 0

Please, advise if there is a solution to do it with a formulas.

Thanks in advance.

BR,
Nick
 
how about below formula, i see it is a sort problem:
工作簿2.xlsx
ABCDE
1AB
2Player 115Player 326
3Player 23Player 115
4Player 326Player 23
5
6AB
7Player 115Player 115
8Player 20Player 20
9Player 30Player 30
10
Sheet1
Cell Formulas
RangeFormula
C2:D4,C7:D9C2=SORT(A2:B4,2,-1)
Dynamic array formulas.
 
Upvote 0

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