Well, you shouldn't be trying (however carefully) to type in a formula which

is given here. There is always a likelihood of typing errors, so instead of

reading and typing, just copy the formula from here and paste it into the

formula bar for the relevant cell on your worksheet.

Having said that, the problem in this case wasn't yours, as the formula

given by the previous poster had invalid syntax.

I wonder whether he had intended not to say

=if(ISNA(VLOOKUP(G7,$AM$1:$AN$29,2,FALSE))) but

=IF(ISNA(VLOOKUP(G7,$AM$1:$AN$29,2,FALSE)),"",VLOOKUP(G7,$AM$1:$AN$29,2,FALSE))When Excel tell you that the formula is invalid, it tries to help by puttingthe cursor where the error is, and Excel help for the function in questionwill tell you the required syntax (and usually give you examples and in a"Show Also" link will often show related functions).In this case your IF function has a condition [the first parameter of theIF], but it doesn't have the consequence if true [2nd parameter of the IF],nor does it have the consequence if false [which is the 3rd parameter of theIF, which is optional in the syntax, but probably a significant parameter inthis case as the 2nd parameter is presumably handling the error case and youneed to handle the non-error case too].David Biddulph"CAT" <

[email protected]> wrote in messageHi VMohan,> Thank you very much for taking the time.> I have typed your formula in (several times, and carefully) but keepgetting> "error in formula" by Excell. Unfortunately, I wouldn't know where theerror> is as I am very much a newbie!> For the record, what I am exactly getting in col R (with no data in col G)> is as follows:> (sign for number (don't have it on the keyboard), then attached to it:N/A.> Does that make any sense?>> "vmohan1978" wrote:>>> use>> =if(ISNA(VLOOKUP(G7,$AM$1:$AN$29,2,FALSE)))>>>> "CAT" wrote:>>>> > Hi H2fcell,>> >>> > Thanks a lot; that works great, I am getting exactly what I was lookingfor>> > and it's so simple to enter.>> >>> > Just one thing: If I leave any cell in the G column blank, I am gettinga>> > //N/A in column R and I wanted it blank, I suppose I could just erasethe>> > formula, since it does not happen that often and it does not seem to>> > interfere with the working of it in the following cells.>> > Comparing to what I had to do before,it's all so simple; thanks againfor>> > your help, you've saved me a lot of time.>> >>> > "h2fcell" wrote:>> >>> > > Hi,>> > > I think you want to change your VLOOKUP to include a reference tocolumn G>> > >>> > > Type below in R7:>> > > =VLOOKUP(G7,$AM$1:$AN$29,2,FALSE)>> > >>> > > You can then copy that down column R and the G7 will changeautomatically to>> > > G8,G9,G10....>> > >>> > > Let me know if that's what you're looking for.>> > >>> > >>> > > "CAT" wrote:>> > >>> > > > Hi everyone, hope someone out there can help me with this one, abit long!>> > > > I'm a fairly new user and using Excell 2007.>> > > >>> > > > Outside the main body of my worksheet I have set a LookUp table,with 2>> > > > columns starting with cell AM1 and finishing with cell AN29, withprecise>> > > > values that will be needed in the spreadsheet:>> > > > Col AM Col An>> > > > 20 10>> > > > 18 9>> > > > 16 8.50>> > > > 14 7.50>> > > > 12 6.50>> > > > 11 6.00>> > > > 10 5.50>> > > > .... .... etc. etc., to>> > > > 2.00 1.25>> > > > 1.88 1.20>> > > > 1.75 1.00>> > > > 1.63 0.91>> > > > 1.50 0,83 in cell An29, this being the last value of theseries.>> > > > (A total of 29 values that are not all listed here).>> > > >>> > > > In my worksheet, the two columns involved are:>> > > > Col G - Manual data entry>> > > > Entering randomly one value per cell out of the list>> > > > in col AM of the LookUp table (or none)>> > > > Col R - Calculated data>> > > > Returning the equivalent value in col AN of the LookUp table (ornone)>> > > >>> > > > *What I do - Row 7 : First entry>> > > > In col R, cell R7, I enter the following function:>> > > > =VLOOKUP(8,$AM$1:$AN$29,2,FALSE) (the figure "8" being temporary)>> > > > and copy it right down the column (up to 400 entries)>> > > > Then, for each new entry that I enter (manually) in each cell ofcol G, I>> > > > modify the formula, in the same row in col R, to match my entry, inother>> > > > words I delete the "8" and replace it with the figure I have justtyped in:>> > > > Example:>> > > > Cell G7 : type in 16,>> > > > Cell R7 : delete the 8 and replace by 16 to read:>> > > > =VLOOKUP(16,$AM$1:$AN$29,2,FALSE)>> > > > (which will give me the value 8.50 - col N of LookUp table)>> > > > and so on (for up to 400 cells) until I have completed the entries;in the>> > > > case of any blank cell in col G, I delete the formula in col R.>> > > > The whole process is really time consuming and I make quite a fewerrors.>> > > >>> > > > *What I would like to achieve:>> > > > Have a function (in column R?) that would automatically return, inthe>> > > > equivalent cell in col R, the relevant value that is listed in thecolumn AN>> > > > of the LookUp table, everytime a new entry is inserted in any ofthe cells of>> > > > column G, but giving a blank when there are no equivalents.>> > > >>> > > > Sorry this is so longwinded, but I wanted to present this asclearly as>> > > > possible so as not to confuse the issue in order to get an answer!>> > > >>> > > > Thank you for any help, as it will be much appreciated>> > > >