SuperCarter
New Member
- Joined
- Jun 1, 2018
- Messages
- 4
Hi, All!
Carter here.
New to posting; long time forum reader.
Decently familiar with Excel formulas; aware of but new to VBA.
I have 2 Sheets. The 1st Sheet is for entering information into a Table for a Bill of Materials (BOM). One of the pieces of information for the BOM is the Vendor of the part. The 2nd Sheet holds a list of Vendors used by my company. The Vendor name in the BOM needs to be very specifically entered, to be referenced later by a Vlookup, to output a Vendor ID used in purchasing software. There are near 4,000 vendors and typing the vendor name perfectly every time is a big ask.
Using Data Validation and a drop-down list is inefficient because of the large number of names.
The ideal solution would be to have a drop-down list which auto-completed, but data validation does not do this.
I have seen the drop-down auto-complete solution of making a Combo Box. This does not seem feasible for my use, because it would mean making a new Combo Box for every line of the BOM, including when a new row gets inserted. Also, because I need to reference the selection of the vendor name later, each Vendor ID lookup would have to be unique to the corresponding Combo Box name.
I have dealt with this by making a helper column (column A), to hard-enter a close approximation of the vendor name. The official Vendor name column (column B) then uses a Vlookup to pull the exact name.
=IF(ISBLANK(A1),"",(VLOOKUP(A1&"*", VendorNames,1,0)))
Notes about the formula:
1. IF statement and IsBlank statement used to keep blank A cell from causing formula to result in 1st name in list.
2. "VendorNames" is a named range from the 2nd sheet.
3. Vlookup is using wildcard to get around the formula inherently rounding down from nearest match.
The helper column is undesirable, from an aesthetic point of view. Moving it off to the side is undesirable, user friendliness-wise. I would love to somehow merge these actions: hard-entering an approximation of the vendor name, and having the closest actual name override the cell.
Since a cell cannot have both a hard-entered value and a formula, it seems like it would have to be a VBA code to replace the approximate text. Does anyone have a proposed solution to this?
*Again, I am aware of VBA and can copy and paste code and make small alterations, but am not well versed in the language.
Thank you for any and all help!
Carter here.
New to posting; long time forum reader.
Decently familiar with Excel formulas; aware of but new to VBA.
I have 2 Sheets. The 1st Sheet is for entering information into a Table for a Bill of Materials (BOM). One of the pieces of information for the BOM is the Vendor of the part. The 2nd Sheet holds a list of Vendors used by my company. The Vendor name in the BOM needs to be very specifically entered, to be referenced later by a Vlookup, to output a Vendor ID used in purchasing software. There are near 4,000 vendors and typing the vendor name perfectly every time is a big ask.
Using Data Validation and a drop-down list is inefficient because of the large number of names.
The ideal solution would be to have a drop-down list which auto-completed, but data validation does not do this.
I have seen the drop-down auto-complete solution of making a Combo Box. This does not seem feasible for my use, because it would mean making a new Combo Box for every line of the BOM, including when a new row gets inserted. Also, because I need to reference the selection of the vendor name later, each Vendor ID lookup would have to be unique to the corresponding Combo Box name.
I have dealt with this by making a helper column (column A), to hard-enter a close approximation of the vendor name. The official Vendor name column (column B) then uses a Vlookup to pull the exact name.
=IF(ISBLANK(A1),"",(VLOOKUP(A1&"*", VendorNames,1,0)))
Notes about the formula:
1. IF statement and IsBlank statement used to keep blank A cell from causing formula to result in 1st name in list.
2. "VendorNames" is a named range from the 2nd sheet.
3. Vlookup is using wildcard to get around the formula inherently rounding down from nearest match.
The helper column is undesirable, from an aesthetic point of view. Moving it off to the side is undesirable, user friendliness-wise. I would love to somehow merge these actions: hard-entering an approximation of the vendor name, and having the closest actual name override the cell.
Since a cell cannot have both a hard-entered value and a formula, it seems like it would have to be a VBA code to replace the approximate text. Does anyone have a proposed solution to this?
*Again, I am aware of VBA and can copy and paste code and make small alterations, but am not well versed in the language.
Thank you for any and all help!