Array formula to lookup for values and create a data Validat

lovallee

Board Regular
Joined
Jul 8, 2002
Messages
220
Hello:

I am trying to use and array formula to extract certain values from a database and return a list of extracted value which will be use later for data Validation list (tools / Validation / list). Here is an example of what I tried so far:
Classeur1.xls
ABCD
1TheData:
2Database
3Field1 (Scannedvalues)Field2-option1 (valuetobereturnedtotheValidationlist)Field2-option2 (valuetobereturnedtotheValidationlist)
4Hello1013S345s
5Bye20410-10-34-409
6Goodbye4056a1D45
7Hello234g56jJ
8Goodmorning5600d459s
9Hello45551jsj8-js2
10
11Lookupvalue(rangecreateonlyforarrayformulapurpose
12Hello
13Hello
14Hello
15Hello
16Hello
17Hello
18
19Progresstodate:
20RangeofarraysformulathatcreatestheValidationlist
21FormulaValuereturnedbytheformula
22{=LARGE(IF(EXACT(B$5:$B$10;$D$5:$D$10);OFFSET($D$5:$D$10;0;1;;););1)}4555
23{=LARGE(IF(EXACT(B$5:$B$10;$D$5:$D$10);OFFSET($D$5:$D$10;0;1;;););2)}1013
24{=LARGE(IF(EXACT(B$5:$B$10;$D$5:$D$10);OFFSET($D$5:$D$10;0;1;;););3)}234
25{=LARGE(IF(EXACT(B$5:$B$10;$D$5:$D$10);OFFSET($D$5:$D$10;0;1;;););4)}0
26..
27{=LARGE(IF(EXACT(B$5:$B$10;$D$5:$D$10);OFFSET($D$5:$D$10;0;1;;););n)}0
28
Feuil1


Problems:
1 - The above template only works with numeric data to be returned (field2)
2 - I need to copy the "Lookup value" in a range of the same size than the "Scanned values" range

Needed:
1 - I need to return text value to the data Validation list (as in Field2 - option 2).
2 - I would prefer not to have to create a range for the Lookup value.
The Lookup value need to be in one cell only in order to simplify the template.
3 - How can I do that???

Thank you !

Louis
 

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.

Forum statistics

Threads
1,214,789
Messages
6,121,593
Members
449,038
Latest member
Arbind kumar

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