Find and place number between two numbers

MaxL76

New Member
Joined
Dec 22, 2022
Messages
9
Office Version
  1. 2010
Platform
  1. Windows
Hi All,
How all you going?
My question is:
I have row of random numbers from 1 to 70 on A1 - Q1.
I would like find and place on S1 number between 29 - 42 that exist on row A1 - Q1.
On T1 i would like find and place number that between 29 - 42 but not equal to S1.

1671702590136.png


Thanks a lot
 
Try this in S1 and copy to right:

=IFERROR(AGGREGATE(15,6,$A$1:$Q$1/($A$1:$Q$1>=29)/($A$1:$Q$1<=42),COLUMNS($S$1:S1)),"")
 
Last edited:
Upvote 0
Solution

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Try this in S1 and copy to right:

=IFERROR(AGGREGATE(15,6,$A$1:$Q$1/($A$1:$Q$1>=29)/($A$1:$Q$1<=42),COLUMNS($S$1:S1)),"")
Thanks a lot Phuoc,
it's do a work, wow.
Can you give me small explanation how it work.

Thansk,
 
Upvote 0
Another challenge:
Same situation but now i have to ranges
1: 1 - 8;
2: 61 - 70;

Thanks a lot
 
Upvote 0
Another challenge:
Same situation but now i have to ranges
1: 1 - 8;
2: 61 - 70;

Thanks a lot

1. 1-8

=IFERROR(AGGREGATE(15,6,$A$1:$Q$1/($A$1:$Q$1>=1)/($A$1:$Q$1<=8),COLUMNS($S$1:S1)),"")

2. 61-70

=IFERROR(AGGREGATE(15,6,$A$1:$Q$1/($A$1:$Q$1>=61)/($A$1:$Q$1<=70),COLUMNS($S$1:S1)),"")

...
 
Upvote 0
1. 1-8

=IFERROR(AGGREGATE(15,6,$A$1:$Q$1/($A$1:$Q$1>=1)/($A$1:$Q$1<=8),COLUMNS($S$1:S1)),"")

2. 61-70

=IFERROR(AGGREGATE(15,6,$A$1:$Q$1/($A$1:$Q$1>=61)/($A$1:$Q$1<=70),COLUMNS($S$1:S1)),"")

...
Hi Phuoc,
Thanks,
Sorry but i meant check two ranges in same time.

BR
Max
 
Upvote 0
Hi Phuoc,
Thanks,
Sorry but i meant check two ranges in same time.

BR
Max
What i meant it if i cad do that:
=IFERROR(AGGREGATE(15,6,$A$1:$Q$1/($A$1:$Q$1>=1)/($A$1:$Q$1<=8),COLUMNS($S$1:S1)),"") and IFERROR(AGGREGATE(15,6,$A$1:$Q$1/($A$1:$Q$1>=61)/($A$1:$Q$1<=70),COLUMNS($S$1:S1)),"")
Thanks,
 
Upvote 0

Forum statistics

Threads
1,214,952
Messages
6,122,457
Members
449,083
Latest member
Ava19

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