Forum Discussion
Including Excel formulas in custom columns
- 3 years ago
Hi dbooksta ,
When you import data in PQ, PQ purely loads whatever data you have. One thing PQ doesn't like is #N/A, #REF!, etc. I am referring to source data. Once data is imported, you can load the data into excel, and then apply the add-in function - LastPrice(), but don't add it between columns in the loaded table. Instead, you can add columns at the end of the table and apply the add-in function.
Please note that LastPrice() is an add-in for excel (I assumed it is a VBA custom function) not for PQ, so the solution is to replicate the formula in PQ, providing we know the logic of LastPrice(), then we should be able to replicate it.
I hope the explanation is clear.
Regards
KT
The "LastPrice()" function I am using in this case is provided only through an Excel Add-In. So is there a way to get PQ to ignore the fact that it doesn't recognize the function instead of raising the Expression.Error? Because once the formula is back in Excel it appears to work!
Hi dbooksta ,
When you import data in PQ, PQ purely loads whatever data you have. One thing PQ doesn't like is #N/A, #REF!, etc. I am referring to source data. Once data is imported, you can load the data into excel, and then apply the add-in function - LastPrice(), but don't add it between columns in the loaded table. Instead, you can add columns at the end of the table and apply the add-in function.
Please note that LastPrice() is an add-in for excel (I assumed it is a VBA custom function) not for PQ, so the solution is to replicate the formula in PQ, providing we know the logic of LastPrice(), then we should be able to replicate it.
I hope the explanation is clear.
Regards
KT