ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Formula Error when entire row is deleted (https://www.excelbanter.com/excel-worksheet-functions/118120-formula-error-when-entire-row-deleted.html)

Dileep Chandran

Formula Error when entire row is deleted
 
Hi,

I have given a vlookup formula in A1 which is refering to A1 in sheet2.
Its working fine except when we delete or insert a row. If we delete
row A1, then the formula in A1 is refering to A2 in sheet2 and not A1.

The formula I have given is
=IF(SEARCH("Test",A1,1),"Test",VLOOKUP(LEFT(A1,19) ,'sheet2'!$A$1:$B$250,2,))


And if I delete the first row, the formula in A1 says:

=IF(SEARCH("Test",A1,1),"Test",VLOOKUP(LEFT(A2,19) ,'sheet2'!$A$1:$B$250,2,))

Any idea how to sort out this?

-Dileep


Dileep Chandran

Formula Error when entire row is deleted
 
Sorry, a small change. The formula is in B1 and not in A1.



All times are GMT +1. The time now is 10:40 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com