Hello,
I have what would seeming be a simple question but for the life of me I cant fathom it out and Google isn't helping me very much.
What I am trying to do is have a drop down list when selected it does a VLOOKUP and if it matches a value put that value in the cell two right of it. This works perfectly. However what I want is if there is no match then to run some code to ask the user the amount and then place that in the cell.
So this is what is currently in the cell:
=IF(VLOOKUP(B4,Input!$C$1:$D$60,2,FALSE),VLOOKUP(B4,Input!$C$1:$D$60,2,FALSE),AddCost())
AddCost() is the Function I am having issues with so here it is:
As yuo can see I am trying to get the input out by using a messagebox for testing but ideally it would need to be in the column two cells to the right so the Vlookup is in Column B and the value should go into the same row on Cell DPlease Login or Register to view this content.
Can anyone see where I am going wrong?
Thanks
Bookmarks