borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2011 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Next Topic (How to Add a Formula for Excel) New Topic New Poll Post Reply
AndreaVB Forum : VB.Net : Srray Formula or any other Formula
Poster Message
jake21ph
Level: Trainee

Registered: 28-02-2011
Posts: 1

Ads by Lake Quincy Media
icon Srray Formula or any other Formula

I would seek to have a formula or array statement that will give me the required figures in the attachment.
1) In the attachment, Column E should give me the figure on how many times the Grade Code of the employee have changed based on Column D (it is GC 8, 9, 11, 12 , 13, 14 = 6 for Mr. A and Grade Code 7, 8, 9 and 10 = 4 for Mr. B)
2) Lkewise, in Column G should give me the number of times the Job Title have been changed based on data in Column C.


____________________________
Attached:
SheetSample.jpg (39 KB)

28-02-2011 at 12:35 PM
View Profile Send Email to User Show All Posts | Quote Reply
GeoffS
Level: VB Lord


Registered: 29-09-2004
Posts: 606
icon Re: Srray Formula or any other Formula

You don't specify the database type used to store this information, but since this is posted in the VB.NET forum I am assuming that you have probably used SQLExpress. Whatever the database type the SELECT statement will be very similar to:-

SELECT     COUNT(*) AS Changes
FROM         (SELECT  Grade
                       FROM EmployeeChanges
                       GROUP BY Grade) A



____________________________
multi-tasking - the ability to hang more than one app. at the same time.

01-03-2011 at 02:32 PM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : VB.Net : Srray Formula or any other Formula
Next Topic (How to Add a Formula for Excel) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2011 Andrea Tincaniborder