Returning one single numer.

serge

Well-known Member
Joined
Oct 8, 2008
Messages
1,446
Office Version
  1. 2007
Platform
  1. Windows
Hello everyone,
I have those 9 numbers in that example in row 7 and I have 4 separate position columns A:D and 3 separate row 3:5.
If I type digit 2 in A:3 which is the 1st position I need a formula starting in F:3 and dragging right to return all numbers that start with a 2.

Same thing if I would type a different digit in the 3rd position it would return all the numbers that have that digit in their 3rd position.

Then in row 4, I have a 0 as a 3rd position so it would return all numbers that have 2 in 1st position and 0 in 3rd position with here reduce to 3 numbers.

Then the final digit here the 2 in the 4th position will return a single number.
I hope it's clear enough to understand ?
Thank you.

Capture.PNG
 
Try:

Book1
ABCDEFGHIJKL
1Pos 1Pos 2Pos 3Pos 4
2
3      
40210322022301310232014101
520210322022301   
6
7210321212202221123013102311132014101
Sheet3
Cell Formulas
RangeFormula
F3:K5F3=IF(COUNTA($A3:$D3)=0,"",IF(ISERROR(SMALL(IF(MMULT((MID(TRANSPOSE($A$7:$I$7),IF($A3:$D3="",9,{1,2,3,4}),1)=$A3:$D3&"")+0,{1;1;1;1})=4,TRANSPOSE($A$7:$I$7),""),COLUMNS($F:F))),"",SMALL(IF(MMULT((MID(TRANSPOSE($A$7:$I$7),IF($A3:$D3="",9,{1,2,3,4}),1)=$A3:$D3&"")+0,{1;1;1;1})=4,TRANSPOSE($A$7:$I$7),""),COLUMNS($F:F))))
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
PERFECT you did it, I wont other you no more Thank you so much.
 
Upvote 0

Forum statistics

Threads
1,224,817
Messages
6,181,149
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