CBauer00010010
New Member
- Joined
- Apr 6, 2017
- Messages
- 2
I have a workbook with a sheet that uses VLOOKUP to select they type of goods we buy from a vendor from another workbook.
In some cases this will return a null string as the vendor is not on the list I reference. In these cases I need to allow the user to select from a list of valid options.
My first though was to add the formula to the list of options so the user is selecting an automatic formula or a manual override when they get nothing. This did not work as the VLOOKUP is then referencing the cell the formula that is actually in on the second sheet, 'Class Types'!$A$2, instead of the cell it is being displayed in, 'Processed Data"!$E3:$E9999. Is there a way to make excel use the address of the cell the formula is being displayed on instead of the cell that it resides in on my list? I have tried various uses of INDIRECT and ADDRESS but still get the reference to the cell on the list sheet instead of the display sheet.
My second attempt was to copy my formula into all my display cells and add data validation of list with the options to use if VLOOKUP fails. This somewhat works at first. I have all my results, where I see a blank I can click in the drop down and select an override. But I can not then go back to selecting the formula that was all ready stored in the cell. Is there a way to create a validation that allows what is written in the cell all ready, or an option from a list?
Code:
=IFERROR(VLOOKUP(TEXT($C7,0),'[Type Resource.xlsx]Class Type Resource'!$B$3:$C$9999,2,FALSE), "")
In some cases this will return a null string as the vendor is not on the list I reference. In these cases I need to allow the user to select from a list of valid options.
My first though was to add the formula to the list of options so the user is selecting an automatic formula or a manual override when they get nothing. This did not work as the VLOOKUP is then referencing the cell the formula that is actually in on the second sheet, 'Class Types'!$A$2, instead of the cell it is being displayed in, 'Processed Data"!$E3:$E9999. Is there a way to make excel use the address of the cell the formula is being displayed on instead of the cell that it resides in on my list? I have tried various uses of INDIRECT and ADDRESS but still get the reference to the cell on the list sheet instead of the display sheet.
My second attempt was to copy my formula into all my display cells and add data validation of list with the options to use if VLOOKUP fails. This somewhat works at first. I have all my results, where I see a blank I can click in the drop down and select an override. But I can not then go back to selecting the formula that was all ready stored in the cell. Is there a way to create a validation that allows what is written in the cell all ready, or an option from a list?