Excel -- automated "find" formula

Experts:

Per attached XLS, I have a cell range (A1:B300) which has 9 paired values as part of the 300 records.   Thus, there are 291 rows which currently don't have values.  

I would like to create a formula that "screens" through the 300 rows and then (in column D and E) adds the 9 paired values into cell range D1:E9.    In the attachment, this process was done manually; however, as additional values may be added/removed from cell range A1:B300, I would like to automate the screening/finding process in cell range D:E.

A picture is worth a thousand words... so, please see the attached XLS for additional details.

Thank you,
EEH
Automated-Find.xlsx
ExpExchHelpAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Saurabh Singh TeotiaCommented:
Assuming your each item is unique then the best solution that i can tell you is create a pivot table as it will automatically give you the output in the same format which you are looking for..

Enclosed is the sample file for your reference...

Saurabh...
Automated-Find.xlsx
0
ExpExchHelpAuthor Commented:
Saurabh:

Thank you... a pivot table is NOT going to work for me.   As indicated, I would like to get a formula/function that allows me to achieve the results.

Thank you,
EEH
0
Rgonzo1971Commented:
Hi,

pls try

=INDEX(A:A,MATCH(SMALL(IFERROR(SEARCH(,A:A),2^32)+ROW(A:A)/1000,ROWS(E1:E$1)),IFERROR(SEARCH(,A:A),2^32)+ROW(A:A)/1000,0))

Open in new window


Regards
Automated-Findv1.xlsx
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

ProfessorJimJamCommented:
please find attached.

it is with formula and it is dynamic, automatically.

if you want eliminate duplicate then my formula works becuase it ignores duplicates and extracts non blank unique IDs. if you want duplicates then  Rgonzo's formula works for you to include duplicates.
Automated-Find.xlsx
0
Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
Try this Array Formula which requires confirmation with Ctrl + Shift + Enter instead of Enter alone.

In D1
=IFERROR(INDEX(A$1:A$300,SMALL(IF($A$1:$A$300<>"",ROW($A$1:$A$300)-ROW($A$1)+1),ROWS(D$1:D1))),"")

Open in new window

and then copy across and down until you get blank cells.

I have applied the formula in the column G and H, please refer to the attached.

******************************************
Remember that an Array Formula is confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER.  You will know the array is active when you see curly braces { } appear around your formula.  If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.  Press F2 on that cell and try again.
Automated-Find.xlsx
0
ProfessorJimJamCommented:
:-)  Sktneer

that is what i like about EE.  friendly competitions that results on different ways of getting things done.
1
ExpExchHelpAuthor Commented:
Rgonzo1971 -- your solution is most BRILLIANT!!!   (It even fixed where I made a sorting error in column E for 3.3.4).   Again, this works absolutely fantastic.

Thank you!
EEH
0
ExpExchHelpAuthor Commented:
All:

Thank you for your great contributions... all of them work good... some of them were better.  

Based on the first-come, first serve basis, points were awarded to expert Rgonzo1971.

Again, I thank all of your for contributing to this post.

EEH
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.