code and vlookup problem

d0wnt0wn

Well-known Member
Joined
Oct 28, 2002
Messages
771
Hi Guys,

I am wondering if this is possible. I currently have a vlookup formula for materials and prices. my results page is sheet 1 lets say and the vlookup table is on sheet 2

so lets say that a material I buy (shingles) is in A1 and the vlookup result for B1 is $10.00 but I know the price just went up... using code could I enter the new value in B1 and have a popup box ask me if I want to make the change permanent and if yes then the corresponding cel in the vlookup table changes to that value and keeps the vlookup formula in cel B1... if the answer is no it then pops up a box saying "this will erase your formula, are you sure?" and if yes it simply erases the vlookup formula and puts in the value entered?

im trying to figure out a way for someone to enter a new value..... but not lose the formula which so often happens.
 

Some videos you may like

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)

JoeMo

MrExcel MVP
Joined
May 26, 2009
Messages
17,206
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
If you know the price has changed, why not make the change directly in the lookup table?
 

d0wnt0wn

Well-known Member
Joined
Oct 28, 2002
Messages
771
Hi Joe..... its because the vlookup table is quite large and I am hoping to do this on the fly while I am building an estimate to save time... if I have to stop at each instance... then go to the table its quite cumbersome

Ken
 

Watch MrExcel Video

Forum statistics

Threads
1,108,956
Messages
5,525,883
Members
409,669
Latest member
JDCupps

This Week's Hot Topics

Top