tring to add a search cell

jamtay317

Well-known Member
Joined
Mar 6, 2013
Messages
769
I have a data base that I want to search where if I type Sm* it will bring up all of the last names that start with Sm. also useing the same cell I would like to be able to search lot numbers and sales order numbers. I have a data set, please tell me what or where I need to add for someone can help me with the VBA code.
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
count1
clip_image001.png
4

<tbody>
</tbody>
Searchjeff
dateSorder NumberLast NameFirst NameAddressCityFlooring typeTotal
GearriesJeff5821 Mustang CtIndianapolisRetail full spread$334.74

<colgroup><col><col><col><col span="2"><col><col><col><col span="2"></colgroup><tbody>
</tbody>

<tbody>
</tbody>
is where I'm tring to index it


SOrderNumberinvoiceNumberDateBilling NumberLastFirstAddressSq FootageFlooring TypeGroutColorTotalCityState
1360613818 Hampton020902 Freemont Moore Road20Builder backsplash diagonal $300.00WestfieldIN
1358613824 LoyalJoyce3617 Tiara Ct00 $45.00IndianapolisIN
1375013825 ArchieBetsy10923 firefly Ct00 $160.00IndianapolisIN
1387313871 Sumerset5811624 Cannington Cir00 $130.00FishersIN
1337813858 Place4 Stafford14534 Alderbrook Trail1Builder fireplace $95.00CarmelIN
13682-013857 Brookheaven1022708 Benmore Ct505Builder straight $2,144.00ZionsvilleIN
1332013738 BuildersShamrock9800 Westpoint Dr0none $277.00IndianapolisIN
1350613977 lakeside21313995 amblewind place24.5Builder backsplash straight $294.00carmelIN
1394113949 BashamVirginnia5801 Lawton Loop E. Dr Unit 5264Retail full spread $205.92IndianapolisIN
13682-113857 Brookheaven1022708 Benmore Ct90Builder diagonal $698.00ZionsvilleIN

<colgroup><col><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><tbody>
</tbody>



this is where the data is....
 
Last edited:
Upvote 0
did anyone have any other ideas?

The sample is, posted in 2 parts:

A:F, say, from row 1 on...
SOrderNumberinvoiceNumberDateBilling NumberLastFirst
1360613818 Hampton0
1358613824 LoyalJoyce
1375013825 ArchieBetsy
1387313871 Sumerset58
1337813858 Place4 Stafford
13682-013857 Brookheaven102
1332013738 BuildersShamrock
1350613977 lakeside213
1394113949 BashamVirginnia
13682-113857 Brookheaven102

<colgroup><col style="width: 96pt; mso-width-source: userset; mso-width-alt: 4551;" width="128"> <col style="width: 112pt; mso-width-source: userset; mso-width-alt: 5290;" width="149"> <col style="width: 48pt;" width="64"> <col style="width: 101pt; mso-width-source: userset; mso-width-alt: 4778;" width="134"> <col style="width: 105pt; mso-width-source: userset; mso-width-alt: 4977;" width="140"> <col style="width: 101pt; mso-width-source: userset; mso-width-alt: 4807;" width="135"> <tbody>
</tbody>

and G:M...
AddressSq FootageFlooring TypeGroutColorTotalCityState
20902 Freemont Moore Road20Builder backsplash diagonal $300.00 WestfieldIN
3617 Tiara Ct00 $45.00 IndianapolisIN
10923 firefly Ct00 $160.00 IndianapolisIN
11624 Cannington Cir00 $130.00 FishersIN
14534 Alderbrook Trail1Builder fireplace $95.00 CarmelIN
2708 Benmore Ct505Builder straight $2,144.00 ZionsvilleIN
9800 Westpoint Dr0none $277.00 IndianapolisIN
13995 amblewind place24.5Builder backsplash straight $294.00 carmelIN
5801 Lawton Loop E. Dr Unit 5264Retail full spread $205.92 IndianapolisIN
2708 Benmore Ct90Builder diagonal $698.00 ZionsvilleIN

<colgroup><col style="width: 208pt; mso-width-source: userset; mso-width-alt: 9841;" width="277"> <col style="width: 84pt; mso-width-source: userset; mso-width-alt: 3982;" width="112"> <col style="width: 181pt; mso-width-source: userset; mso-width-alt: 8561;" width="241"> <col style="width: 97pt; mso-width-source: userset; mso-width-alt: 4579;" width="129"> <col style="width: 103pt; mso-width-source: userset; mso-width-alt: 4864;" width="137"> <col style="width: 86pt; mso-width-source: userset; mso-width-alt: 4067;" width="114"> <col style="width: 48pt;" width="64"> <tbody>
</tbody>

Would you specify in words, not with formulas, what you need to do with this data?
 
Upvote 0
I would likeif I type in the criteria cell from any of these " SOrderNumber, Last, or Flooring_Type" ranges to display the records for that criteria
 
Upvote 0
I would likeif I type in the criteria cell from any of these " SOrderNumber, Last, or Flooring_Type" ranges to display the records for that criteria

All of SOrderNumber, Last, or Flooring_Type or a combination of them, including just one of them?
 
Upvote 0
if i type just "man" in f3 and in SOrderNumber, flooring_type, and last have something with"man" in it I want it to pull up
 
Upvote 0
if i type just "man" in f3 and in SOrderNumber, flooring_type, and last have something with"man" in it I want it to pull up

Probably missed, but I don't see any item containing "man". Don't take this observation wrong. It's vital to know what happens if the substring one is looking for appears more than once in the same row (record) under the relevant fields. I assume the record (the whole record actually) constitutes a result to report. Right?
 
Upvote 0
ok, I would say that if there is a number look up, like sales order number, then yes it could be in the address portion of the row, but if I'm looking up "man" that would just be under the last name
 
Upvote 0
also, there is about 2000 records in this data that is the reason that there isnt a "man" in the data set that you saw.
 
Upvote 0

Forum statistics

Threads
1,214,630
Messages
6,120,634
Members
448,973
Latest member
ChristineC

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