VLOOKUP code deleted if user types in cell

ipbr21054

Well-known Member
Joined
Nov 16, 2010
Messages
3,570
Office Version
2007
Platform
Windows
Hi,
I have this code in various cells,obvioulsy each with a different cell reference.

Code:
=IFERROR(VLOOKUP($B12,INDIRECT("INFO!$CV$2:$DB$"&COUNTA(INFO!$CV:$CV)),5,FALSE),"")
I select a customers name in cell B then VLOOKUP populates cells C D & E
Now column D refers to how much the customer has paid me.
9/10 the fee is always the same but today it was different.

So if like normal i select a customers name & the cell in column D has £30 applied todays fee was £50
If i manually type £50 into the cell then the VLOOKUP code is deleted.

Is there a workaround for this please so the VLOOKUP isnt deleted.
Or what can you advise

Thanks
 

Some videos you may like

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.

mumps

Well-known Member
Joined
Apr 11, 2012
Messages
9,372
When you type anything into a cell that contains a formula, the formula will always be over-written by the value.
 

ipbr21054

Well-known Member
Joined
Nov 16, 2010
Messages
3,570
Office Version
2007
Platform
Windows
ok
so what do you advise in a situation like this please
 

mumps

Well-known Member
Joined
Apr 11, 2012
Messages
9,372
Perhaps a macro would be able to do what you want. Perhaps you could upload a copy of your file to a free site such as www.box.com or www.dropbox.com. Once you do that, mark it for 'Sharing' and you will be given a link to the file that you can post here. Include a detailed explanation of what you would like to do using a few examples from your data and referring to specific cells, rows, columns and worksheets. If the workbook contains confidential information, you could replace it with generic data.
 

Subscribe on YouTube

Watch MrExcel Video

Forum statistics

Threads
1,106,545
Messages
5,511,958
Members
408,871
Latest member
Usman21

This Week's Hot Topics

  • Sort code advice please
    Hi, I have the code below which im trying to edit but getting a little stuck. This was the original code which worked fine,columns A-F would sort...
  • SUMPRODUCT with nested If statement
    Hi everyone, Hope you're all well. I'm hoping someone will be able to point me in the right direction with a problem I'm having with a SUMPRODUCT...
  • VBA - simple sort is killing me!
    Hello all! This should be so easy, but not for me, apparently! I have a table of data that can be of varying lengths and widths. My current macro...
  • Compare Two Lists
    I have two Lists and I need to be able to Identify differences between them. List 100 comes from a workbook - the other is downloaded form the...
  • Formula that deducts points for each code I input.
    I am trying to create a formula that will have each student in my class start at 100 points and then for each code that I enter (PP for Poor...
  • Conditional formatting formula required for day of week and a value
    Hi, I have a really simple spreadsheet where column A is the date, column B is the activity total shown as a number and column C states the day of...
Top