200,000 Lines of data, Searching and Displaying All relevant Data

Noobllianz

New Member
Joined
Jul 1, 2018
Messages
18
Hi Experts of Excel!

Please help me if you can! I am a complete Newbie and addicted to Excel.


There are 2 Components to my problem, and I think there is surely a better way to achieve it!

I will set out the Raw Data Template first!

Part 1
_________________________________________________________________________________________
MY SEARCH INPUT CELL IS Z1


[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]Y[/TD]
[TD]Z[/TD]
[TD]AE[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD][/TD]
[TD]SEARCH : John Doe[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]1[/TD]
[TD]Results[/TD]
[TD]Adjacent Results[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]2[/TD]
[TD]Results etc[/TD]
[TD]Adjacent Results[/TD]
[/TR]
</tbody>[/TABLE]


[TABLE="class: grid, width: 700"]
<tbody>[TR]
[TD]
[/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Customer Name[/TD]
[TD]Customer No#[/TD]
[TD]Order #[/TD]
[TD]Order Price[/TD]
[TD]Order Date[/TD]
[TD]Description[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]John Doe[/TD]
[TD]Cust001[/TD]
[TD]1000item[/TD]
[TD]$1000[/TD]
[TD]2011/01/01[/TD]
[TD]Laptop[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Jane Doe[/TD]
[TD]Cust002[/TD]
[TD]2000item[/TD]
[TD]$2000[/TD]
[TD]2012/01/01[/TD]
[TD]Monitor[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]John Smith[/TD]
[TD]Cust003[/TD]
[TD]3000item[/TD]
[TD]$3000[/TD]
[TD]2013/01/01[/TD]
[TD]Motherboard[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Jane Smith[/TD]
[TD]Cust004[/TD]
[TD]4000item[/TD]
[TD]$4000[/TD]
[TD]2014/01/01[/TD]
[TD]Keyboard[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]Doe Smith[/TD]
[TD]Cust005[/TD]
[TD]5000item[/TD]
[TD]$5000[/TD]
[TD]2015/01/01[/TD]
[TD]Mouse[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]John Doe[/TD]
[TD]Cust001[/TD]
[TD]6000item[/TD]
[TD]$6000[/TD]
[TD]2016/01/01[/TD]
[TD]SSD[/TD]
[/TR]
</tbody>[/TABLE]

I have around 200k Lines of raw data, and I would like to find items that the Customers have purchased by Name or Customer No# and display all relevant purchases in a list like above.

This is the forumla I have used to get the Order No# from a partial/full search of Name or Cust No#.

=IFERROR(VLOOKUP(SMALL(IF(IF(ISERROR(SEARCH($Z$1,$A2:$A7&" "&$B$2:$B$7)),FALSE,TRUE),ROW($C$2:$C$7)),$Y2),CHOOSE({1,2},ROW($C$2:$C$7),$A2:$A7),2,0),"")

This has been able to give me a result of all matches that relate to my SEARCH : John Doe.
Even if I were to use a partial SEARCH : John , all the John Doe, John Smith Order number will appear.

The problem is, I heard that using a double =vlookup(vlookup is a faster way to search through large data numbers. I have been trying to get the partial search to work with the vlookup and I have not been able to.
_________________________________________________________________________________________

Part 2

If I am able to get a whole list of Relevant info using the formula above, a single SEARCH: of John, or Jane will bring about information that is actually irrelevant to the information I need.

How can i compile and combine data from 2 different name searchs?

SEARCH : John Doe, SEARCH : Jane Doe.

How can i combine these 2 data lists together to fit in a dynamic table. Can the Tables function accommodate this feature?

Some Customers might have 10 or 100 purchases.
_________________________________________________________________________________________


Thank you in advance, If any of this doesn't make any sense, please let me know if you can help or guide me along the right way to research and study a feature of Excel.
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).

Forum statistics

Threads
1,223,911
Messages
6,175,323
Members
452,635
Latest member
laura12345

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