Announcements
 Crystal Reports Forum : General Information : Announcements
Message Icon Topic: How to create a group name like in Excel Post Reply Post New Topic
Author Message
lassaad33
Newbie
Newbie


Joined: 20 Sep 2011
Location: Tunisia
Online Status: Offline
Posts: 4
Quote lassaad33 Replybullet Topic: How to create a group name like in Excel
    Posted: 20 Sep 2011 at 2:52am

Hello,
I am starting to Crystal Reports. Net
Question:
How to create a group name like in Excel:

Example:

Groub by: Start:10

          End:100

          with:15?

I had as results:

10-25
25-40

40-55

....

many thanks in advance :)



Thanks in advance :)
IP IP Logged
lassaad33
Newbie
Newbie


Joined: 20 Sep 2011
Location: Tunisia
Online Status: Offline
Posts: 4
Quote lassaad33 Replybullet Posted: 20 Sep 2011 at 2:54am
Anyone, please?
IP IP Logged
lassaad33
Newbie
Newbie


Joined: 20 Sep 2011
Location: Tunisia
Online Status: Offline
Posts: 4
Quote lassaad33 Replybullet Posted: 20 Sep 2011 at 2:56am
Hi,

Anyone, please?
IP IP Logged
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet Posted: 20 Sep 2011 at 7:57am
Hi Iassaad,

First off, this is a voluntary forum. No one is getting paid here. Posting your question every two minutes and sending me multiple emails during the middle of the night is not going to get your question answered any faster.

Anyway, you need to create a formula that returns a group number and then create your group on this formula. I would do something like this:

NumberVar GroupNumber;
GroupNumber = Int(({yourtable.yourfield} - 10)/15);

By subtracting 10 from the field, that is your starting number. Then by taking the Int() of dividing that number by 15, you will get a group number.

I just typed this in without testing it, so you might have to tweak it a bit. But this should be pretty close to what you need and will get you started in the right direction.


Brian
Please support the forum! Tell others by linking to it on your blog or website:<a href="http://www.crystalreportsbook.com/forum/">Crystal Reports Forum</a>
IP IP Logged
lassaad33
Newbie
Newbie


Joined: 20 Sep 2011
Location: Tunisia
Online Status: Offline
Posts: 4
Quote lassaad33 Replybullet Posted: 20 Sep 2011 at 9:22pm
Hi BrianBischof,

Sorry :)

I apologize for the disturbance

many thanks to your response.



IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.031 seconds.