Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Please Help to write Formula

Status
Not open for further replies.

happyIndian100

Programmer
Jul 20, 2003
66
US
Hi All,

i have a crystal report out put like this:

Code Total Rcvd Total Outstanding
-----------------------------------------
ADD 100 10
ADC 50 5
ADC_CD 12 10
ADC_AB 100 15
CSF 30 5


Now the requirement is to sum all the codes which start with "ADC"
The output should be like the following:

Code Total Rcvd Total Outstanding
-----------------------------------------
ADD 100 10
ADC 162 30
CSF 30 5

Please help me to write the Formula to acheive this.

Thank you in advance
 
Right click on total received, select insert summary, and group by code. Do the same for Total Outstanding. Hide the details section and place the code field in the group footer.

Software Sales, Training, Implementation and Support for Macola, eSynergy, and Crystal Reports
 
Hi HappyIndian100

Are the values displayed in the detail section ? In that case you can create formula and use that formula as a group.

The formula will be something like this

If {Table.field}[1 to 3] = "ADC" then "ADC"
else
{Table.field}

Now you can suppress the detail section and create a summary field for Total Rcvd and Total Outstanding

kutoose@yahoo.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top