HI Gomic,
Here is the formula in my example: IF(LEN(A1)<1,"",LOOKUP(A1,Table 2::A,Table 2::B))
Here is the formula in your example: IF(LEN(D6)>1,,LOOKUP(D6,'Table 1-1'::A2:A15,'Table 1-1'::B2:C15))
I see several differences:
LEN(xx)<1,"",...
LEN(xx)>1,(nothing),...
The first returns TRUE if the cell (xx) contains less than one character (ie. is empty). On TRUE, IF returns the result "" - a text string with no content (and no length).
If the cell contains one or more characters, the comparison returns FALSE, and IF calls LOOKUP.
The second returns TRUE if the cell (xx) contains more than one character. On TRUE, IF goes to the space after the first comma, finds no instructions, and returns an error message: "You must specify a value for all the required arguments.".
If the cell contains 0 characters (ie. is blank or empty) or one character (suche as an integer between 0 and 9 inclusive), IF calls LOOKUP
LOOKUP(xx,tablename::A,tablename::B)
LOOKUP(xx,tablename::A2:A15,tablename::B2:C15)
A in the first example references all the cells (except those in header rows or Footer rows) in column A.
A2:A15 in the second references cells A2 to A15 of column A.
If your lookup table has 15 rows, including one row (row 1) defined as a Header row, the two forma are equivalent.
B in the first references all…in column B
B2:C15 in the second references cells B2 to B15 AND C2 to C15, and will cause this error message to be returned whenever LOOKUP is called: "Vector arguments can contain only one row or column."
Change B2:C15 to either B2:B15 or C2:C15, depending whether the results you want in the cell containing the formula will come from column B or from column C.
I'm having difficulty seeing the connection between your formula and the columns of data beneath it. The formula names the lookup table "Table 1-1", but none of the lists in your post are labeled as being on a table with this name.
The Formula is looking for a value in column D, which in your original description was a column where formula results were expected.
Should edits to the formula based on the information above not be enough to solve the issues, please supply some accurate information applying specifically to your table. I (or anyone else jumping in here) need to know the location of a formula you are asking about, the actual formula as it appears in that cell, the location of each cell and/or range of cells referenced by that formula, and the content of any error messages presented.
Clicking once on an error triangle will allow you to read (and to select and Copy) the error message. The copied message can be pasted into your message here (as I've done above).
Regards,
Barry
What is the address of the cell that contains the formula shown?