Listing numbers conditionally

Usercode

Board Regular
Joined
Aug 18, 2017
Messages
107
Office Version
  1. 2016
Platform
  1. Windows
I need a formula to separate and list desired numbers in a certain range from the data i have.

For example, if my data is 4,7,15,19,35,41,8,51,56,64,65,71,75,76,42,38 in A2:P2, then if I want to separate and list the numbers between 50 and 59, the desired outcome should be 51,56 in U2:V2. I attached an example file. It would be good to have the numbers in ascending order. Thanks in advance.

Example file: https://1drv.ms/x/s!AoGkZUHlKui9gR44xEi-kQBlTFs1
 
Last edited:

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Thanks Ingolf. I tried it without Ctrl-Shift-Enter too. but still doesn't work for me. Excel 2007. if its not a lot to ask, can you share a example file where it works?
 
Upvote 0
Updated formula for Excel 2007

in AO2
=IFERROR(INDEX($A$2:$P$2,1,SMALL(IF(($A$2:$P$2>=70)*($A$2:$P$2<=79),COLUMN($A2:$P$2),9.9E+100),COLUMN(A2))),"")
Array formula, use Ctrl-Shift-Enter
copy across the columns

Amend the lower/upper limits of 70 and 79 for other ranges.
 
Upvote 0
Thanks a lot, Special-K99. it works on my excel now. This formula better suits my task! thanks again.
 
Upvote 0
Thanks Ingolf. I tried it without Ctrl-Shift-Enter too. but still doesn't work for me. Excel 2007. if its not a lot to ask, can you share a example file where it works?

In Excel 2007 does not exist function AGGREGATE.

I use Excel 2016 and office 365 and that function exist.
 
Upvote 0

Forum statistics

Threads
1,221,814
Messages
6,162,131
Members
451,743
Latest member
matt3388

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