# large formula with criteria

#### Dickeymint

##### New Member
Hello,

I have the following table of data: -

 2294944487994 Leeds 3 5060926*2 115000 57155 91000 52278.9 2294944100061 Leeds 5 5060934*2 400000 198800 315000 193471 44565000100106 Forest Heath 1 5057641*4 157000 78029 156000 76357.9 00001430154010 Cambridge 2 5057633*1 28500 14164.5 28500 13309.5 1310113317008 Broadland 2.5 5061015*1 22500 10140.8 27000 12496.3 01030000903338 Ipswich 2.5 5066980*1 14250 2437.57 15500 7223 2040766 Nuneaton and Bedworth 6 5059126*1 392500 195072 417500 200400 2520600900020045 Bridgend 1 5057674*2 139000 67554 101000 50399 321080000335000600 Cardiff 2 5057658*1 13750 6682.5 13750 6861.25

<tbody>
</tbody>

I am trying to find the top 5 in the list based on value (column 8) where the item number is not 2 or 2.5 (column 3)

I also need the same where the item number is 2 and 2.5 (column 3)

I am currently using the following but its not working with column 3: -

=IF(OR('LSH Data'!\$D\$2:\$D\$250<>2,'LSH Data'!\$D\$2:\$D\$250<>2.5),LARGE('LSH Data'!\$K\$2:\$K\$250,1))

### Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Try using AND instead of OR

Try the following formulas (both to be entered using Ctrl+Shift+Enter, not just Enter):

Excluding 2 and 2.5 =LARGE(IF(('LSH Data'!\$D\$2:\$D\$250<>2)*('LSH Data'!\$D\$2:\$D\$250<>2.5),'LSH Data'!\$K\$2:\$K\$250),1)
Only 2 or 2.5 =LARGE(IF(('LSH Data'!\$D\$2:\$D\$250=2)+('LSH Data'!\$D\$2:\$D\$250=2.5),'LSH Data'!\$K\$2:\$K\$250),1)

Note: if your 2's and 2.5's are calculated, make sure they are properly rounded.

Try the following formulas (both to be entered using Ctrl+Shift+Enter, not just Enter):

Excluding 2 and 2.5 =LARGE(IF(('LSH Data'!\$D\$2:\$D\$250<>2)*('LSH Data'!\$D\$2:\$D\$250<>2.5),'LSH Data'!\$K\$2:\$K\$250),1)
Only 2 or 2.5 =LARGE(IF(('LSH Data'!\$D\$2:\$D\$250=2)+('LSH Data'!\$D\$2:\$D\$250=2.5),'LSH Data'!\$K\$2:\$K\$250),1)

Note: if your 2's and 2.5's are calculated, make sure they are properly rounded.

Worked a treat, much appreciated.

Glad to be of a help.

1,196,328
Messages
6,014,670
Members
441,834
Latest member
GHOSTOF309

### 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.

### Which adblocker are you using?

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

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