Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Can you send an IF statement to an Excel cell from QlikView?

Hi, I am trying to find a way of exporting data from QlikView into an Excel spreadsheet with IF statements pasted into certain cells. I would have thought that QlikView could handle this, as it does with SUMs, text, numbers, etc. but it appears not to work. Does anybody have any experience of this, and hopefully an answer?

The code that I am trying to send goes along these lines:

XLSheet.Range("B11")="=IF(A11<>"",(B48+B61)/SUM(B22:E22),"")"

As I say, the SUMs code works fine, as in:

XLSheet.Range("B96")="=SUM(B89:B95)-L56"

There are reasons why this needs to be done in Excel rather than in QlikView, basically the number of records that I deal with here at DTCC are far more than Excel can handle, which is why I use QlikView, but the IF statement not copying across has been a problem.

Thanks,

Steve.

3 Replies
m_woolf
Master II
Master II

The problem is that the formula string contains double quotes:

XLSheet.Range("B11")="=IF(A11<>"",(B48+B61)/SUM(B22:E22),"")"


Try something like this:

XLSheet.Range("B11")="=IF(A11<>"""",(B48+B61)/SUM(B22:E22),"""")"



Not applicable
Author

THANKS SO MUCH!!!! You have saved my skin!!!!

m_woolf
Master II
Master II

I'm glad I could help.

If you are satisfied with the answer, please mark it as Correct.