When extending formula across table, formula loses ref point

I have the following formula.


IF(B2<13.5,"",VLOOKUP(B2,SpD Text Lookup::A$1:B$6,2,close-match))


When I extend the formula to the other cells in the row, after two cells the VLOOKUP table ref is lost and it just says "REF!".


Any ideas why?

MacBook Pro 13″, macOS 10.13

Posted on May 29, 2020 4:37 AM

Reply
Question marked as Top-ranking reply

Posted on May 29, 2020 11:57 AM


IF(B2<13.5,"",VLOOKUP(B2,SpD Text Lookup::A$1:B$6,2,close-match))


Your formula, when filled to the right will increment all of the column references one column to the right for each column the formula is filled into.


Example: If the formula above is entered as shown in B4, then filled right three cells to E4, it will read:


IF(E2<13.5,"",VLOOKUP(E2,SpD Text Lookup::D$1:E$6,2,close-match))


The REFerence error likely is due to the table, SpD Text Lookup, having only four columns.


The likely cure is to remove the $ operator from the row value (where it is needed only if you are filling down (or up) and place it before the column value ($A and $B)


Normal practice is also to make your lookup table with only as many columns and rows as needed, then reference the full columns (excluding header and footer rows if any have been set), specifying only the column letters.


Your formula would then become:


IF(B2<13.5,"",VLOOKUP(B2,SpD Text Lookup::$A:$B,2,close-match))


Regards,

Barry



2 replies
Question marked as Top-ranking reply

May 29, 2020 11:57 AM in response to INDY-GO


IF(B2<13.5,"",VLOOKUP(B2,SpD Text Lookup::A$1:B$6,2,close-match))


Your formula, when filled to the right will increment all of the column references one column to the right for each column the formula is filled into.


Example: If the formula above is entered as shown in B4, then filled right three cells to E4, it will read:


IF(E2<13.5,"",VLOOKUP(E2,SpD Text Lookup::D$1:E$6,2,close-match))


The REFerence error likely is due to the table, SpD Text Lookup, having only four columns.


The likely cure is to remove the $ operator from the row value (where it is needed only if you are filling down (or up) and place it before the column value ($A and $B)


Normal practice is also to make your lookup table with only as many columns and rows as needed, then reference the full columns (excluding header and footer rows if any have been set), specifying only the column letters.


Your formula would then become:


IF(B2<13.5,"",VLOOKUP(B2,SpD Text Lookup::$A:$B,2,close-match))


Regards,

Barry



This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

When extending formula across table, formula loses ref point

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.