Help with excel filter formula

manekankit

Board Regular
Joined
Feb 1, 2019
Messages
72
Office Version
  1. 365
Platform
  1. Windows
Dear members, having below query with excel filter function.

Given below is data set, formula 1 and formula 2.

Having query with formula 2 given below.

I am not getting why result of formula 2 is including item with units sold =4 when my condition for filter is unit sold is >5. (formula 2 is also not including units sold =7 item).

I am using office 365 desktop version.

Thanks.

A
1 Employee
B
Units Sold
C
Average Price
2 Tom
4​
2.99​
3 Jack
3​
2.95​
4 Suzie
7​
2.75​
5 Rajesh
4​
2.64​
6 Kevin
4​
3.05​
7 Belinda
3​
2.52​
8 Sally
8​
3.18​
9 David
9​
2.52​
This is a data set range (a1 to c9)
Result of formula 1
Suzie
7​
2.75​
Sally
8​
3.18​
David
9​
2.52​
Formula 1

=FILTER(SORTBY(A2:C9,B2:B9,1),SORTBY(B2:B9,B2:B9,1)>5)
This formula is giving correct result providing list where unit sold quantity is >5
Result of formula 2
Tom
4​
2.99​
Sally
8​
3.18​
David
9​
2.52​
Formula 2
=FILTER(SORTBY(A2:C9,B2:B9,1),B2:B9>5)
The query is why this formula is including "Tom" when it has unit sold = 5 but filter condition is >5
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.

Forum statistics

Threads
1,224,823
Messages
6,181,178
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