Categories
- All Categories
- 15 Oracle Analytics Sharing Center
- 16 Oracle Analytics Lounge
- 216 Oracle Analytics News
- 43 Oracle Analytics Videos
- 15.7K Oracle Analytics Forums
- 6.1K Oracle Analytics Idea Labs
- Oracle Analytics User Groups
- 79 Oracle Analytics Trainings
- 15 Oracle Analytics Data Visualizations Challenge
- Find Partners
- For Partners
Conditional display in Excel templates

Summary
Conditional display in Excel templates
Content
Hi All,
I have an xls template, where I need to display cell data (Egs Column A) only if another cell (Egs Column contains data.
Is there a way to use <?if:condition?> <?end if?> in Excel templates similar to how we used them in RTF?
If this is not the right format, how can we display field data conditionally in the template?
Thanks!
Answers
-
Hi,
You can use Excel if condition .
In your case "I need to display cell data (Egs Column A) only if another cell (Egs Column
contains data"
in this case for cell A you can write like below
=IF(B1="","",A1) --it means If B is blank then A also will be blank and if B is not blank then it will display value of A
Above is easiest way,
Another way is to define the Template tags and use it on you excel
e.g. as below
Regards,
Brajesh
0 -
Brajesh - Could you please share the conditional tags that you used in XDO_METADATA tab? I was not able to use the traditional IF - END IF in this tab.
It would be of great help.
0 -
Hi ,
Can you create the XDO_METADATA for if condition and use it on excel.
<xsl:if test=".//INVOICE_TYPE='PREPAYMENT'"> </xsl:if>
Regards,
Brajesh
0 -
Thanks Brajesh for the pointers,
It helped:
Provide xsl:if condition in column B:
<xsl:if test="GST_TAX_RATE_CODE!=''"> <xsl:value-of select=".//TAXABLE_AMOUNT"/> </xsl:if>
(Display Taxable Amount only if a given Tax is applied)
Thanks!
0