Sanman wrote: ↑Wed Apr 30, 2025 4:02 am
Because I thought i had all my syntax correct.
Menu View → Value Highlighting will show B2:B10 as black indicating that they contain text, not a formula. A formula must use = as its
first character. B11:B13 and B15 show in green because they are formulas, but have a #NAME? error because sheet name $sheet1 must be followed by a period, not by a semicolon. Calc does not understand $sheet1 as the second parameter of VLOOKUP. B14 is green but with a #REF! error because the sheet name preceeding .A61:A67 is incorrect. Turn off View → Value Highlighting when you are not using it to detect problems, because it will disable formatting in your cells.
Sanman wrote: ↑Wed Apr 30, 2025 4:02 am
Some examples have the $ sign in front of the sheet name, some don't. some examples have $ sign in front of the number but not the column letter.
It does not matter if you use $ in formulas
until you want to copy them to other cells. Then you must use $ whenever you don't want the parameter to increase
in the direction of the copy. In the first parameter, A2, you must
not use $ before the 2 because you want that to increase as you copy down. It does not matter if you put $ in front of A because you are copying down (changing the row), not left or right (changing the column). Similarly it does not matter if you put $ in from of sheet1 because you are copying down, not to different sheets.
Normally, in VLOOKUP formulas are copied down, thus is it common to not use any $ in the first parameter. But the search table should be the same for each copy of the formula, thus it is common to put $ in front of everything, though usually only the row specifications need to be protected against change since column and sheet references are not changed when copying down.
$ creates absolute references for a sheet, column, or row. Its absence means the reference is relative. It will be very difficult for you to use Calc until you understand how to use absolute and relative references.
Sanman wrote: ↑Wed Apr 30, 2025 4:02 am
Yep , the site malfunctioned when I attached the file and clicked send.
The site was under attack from Artificial Intelligence servers in Singapore. The administrator has blocked them, for now. This problem began last year. This has been a continuing problem for the forum since AI servers started sending thousands of requests to this forum, and many other sites like Wikipedia, since the compaines working on AI seem to think they are free to do so even though they surely must realize that this will cause a lot of problems for websites.
Mr. Programmer
AOO 4.1.7 Build 9800, MacOS 13.7.5, iMac Intel. The locale for any menus or Calc formulas in my posts is English (USA).