Solved

Adding subtotal formulas to the excel output from Crystal Reports

Posted on 2008-10-28
6
942 Views
Last Modified: 2011-09-20
So far, it doesn't look like you can easily add formulas to the excel output from Crystal Reports.

I have a report that has one column of values, with subtotals throughout. Does anyone know how I can convert those to formulas and not text when I export Crystal Reports to excel?
0
Comment
Question by:tiehaze
  • 4
  • 2
6 Comments
 
LVL 17

Expert Comment

by:MIKE
ID: 22825535
Can't do it.

Whatever appears in your preview window is what will export to EXCEL. Keep in mind that exporting from one program into another program is a VERY, VERY complicated process. Crystal does a great job as designed.

So tell me exactly what kind of formulas you are needing. What are trying to accomplish...there may be another solution.

Thanks
M
0
 

Author Comment

by:tiehaze
ID: 22825563
The report I am creating is for mutual funds. This report shows all of the securities that a mutual fund invests in, grouping them by security type (i.e. Stocks, Bonds, Government Securities). The first column shows the shares, the second column shows the name of the security, and the 4th column shows the market values.

The 4th column has has subtotals at the bottom of each section, which when exported to excel, I would like it to be the subtotal formulas, not the string value.
0
 
LVL 17

Expert Comment

by:MIKE
ID: 22825640
Does your report ROW counts and ROW positions CHANGE with each run...OR...are they pretty much in the SAME position each time when you export the data.

In the past when I've had this type of requirement, I used an EXCEL SHEET as a EXPORT TEMPLATE....and then  "exported" the data from Crystal into it..I then had my MAIN EXCEL REPORTING FILE SHEET ....."linked" to those cells with in the TEMPLATE. Once the data was exported INTO the template...the MAIN excel sheet was automatically updated.

Again, this works fine for me because my export data rarely if ever changed cell positions.

M
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 17

Expert Comment

by:MIKE
ID: 22825655
so...you could have your main excel sheet formatted with the formulas you wanted and they would auto calcuate any data that comes into the template via the export....
0
 

Author Comment

by:tiehaze
ID: 22825664
Yes, row positions will change (i.e. if securities are sold or bought into the fund).

What are my options since the export data changes cell positions?
0
 
LVL 17

Accepted Solution

by:
MIKE earned 500 total points
ID: 22825725
2 options as far as I can tell...

1. CREATE THE EXACT REPORT including the FORMULAS that you desire WITHIN Crystal itself. I think this is your first BEST option. I'm not understanding yet why you need to change the export from Crystal to Excel....so...why not just use Crystal to create your report EXACTLY as you need it to appear?

2. CHANGE YOUR CRYSTAL REPORT to export the DATA ONLY needed for your calcs into excel. IN essence you would be exporting a data table FOR USE within EXCEL. You could then...AGAIN,...use Excel to manipulate that data anyway you need, formula wise.

I think option 1 is the easiest.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now