Jump to content
Server Maintenance This Week. ×

Grouping and summing a list


This topic is 3729 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Hi there...! Calling all Custom Function wizards I need your help!!

 

I am trying to make a custom function that can take a list of values like so:

 

Bob|5

Mary|3

Anne|3

Bob|5

Frank|1

Bob|5

Anne|2

 

 

And turn it in to a group summed list like this:

 

Bob|15

Mary|3

Anne|5

Frank|1

 

Link to comment
Share on other sites

Sorry, this is a non-question. The real problem lies elsewhere. Why don't you use records and fields to store your data? Then the problem of summing and grouping becomes trivial.

 

Well, in comparing whether to use a proper relationship with records versus a custom function, my vote is the relationship. 

And I have to say that I'm surprised that other seasoned developers on this thread aren't supporting the same concept.

Link to comment
Share on other sites

This topic is 3729 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.