PC Review


Reply
Thread Tools Rate Thread

Creating a formula in Macro

 
 
Govind
Guest
Posts: n/a
 
      9th Sep 2008
I have a Excel sheet wherein i have several columns with some numbers. I want
to come out with a statistics based on these values in the columns.

For Ex, the 1st column contains the App name, 2nd contains the response
time, 3rd contains the resolution time, 4th contains criticality etc.

Now i want to come out several outputs like the no. of calls per
application, criticality in each application, time taken to respond /resolve
each call etc.

How can i create a macro for this. Any help is really appreciable.

Many thanks in advance.

 
Reply With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a
 
      9th Sep 2008
Why not just use SUMIF

=SUMIF(A:A,"AppName",B:B)

etc.

--
__________________________________
HTH

Bob

"Govind" <(E-Mail Removed)> wrote in message
newsBB4BDDB-AE3F-470C-A912-(E-Mail Removed)...
>I have a Excel sheet wherein i have several columns with some numbers. I
>want
> to come out with a statistics based on these values in the columns.
>
> For Ex, the 1st column contains the App name, 2nd contains the response
> time, 3rd contains the resolution time, 4th contains criticality etc.
>
> Now i want to come out several outputs like the no. of calls per
> application, criticality in each application, time taken to respond
> /resolve
> each call etc.
>
> How can i create a macro for this. Any help is really appreciable.
>
> Many thanks in advance.
>



 
Reply With Quote
 
zzqv9p
Guest
Posts: n/a
 
      9th Sep 2008
for more complicated calculations you could create a function.

in VB edit insert a module
function abc(parameter1, parameter2, parameter3)
' do some stuff
abc = parameter1 * parameter2 + parameter3
end function

in excel cell you would code
=abc(a2,b2,c2)
or whatever cells you want to use

using functions helps when you have long IF statements, they are easier to
read in VB than in a cell


"Bob Phillips" wrote:

> Why not just use SUMIF
>
> =SUMIF(A:A,"AppName",B:B)
>
> etc.
>
> --
> __________________________________
> HTH
>
> Bob
>
> "Govind" <(E-Mail Removed)> wrote in message
> newsBB4BDDB-AE3F-470C-A912-(E-Mail Removed)...
> >I have a Excel sheet wherein i have several columns with some numbers. I
> >want
> > to come out with a statistics based on these values in the columns.
> >
> > For Ex, the 1st column contains the App name, 2nd contains the response
> > time, 3rd contains the resolution time, 4th contains criticality etc.
> >
> > Now i want to come out several outputs like the no. of calls per
> > application, criticality in each application, time taken to respond
> > /resolve
> > each call etc.
> >
> > How can i create a macro for this. Any help is really appreciable.
> >
> > Many thanks in advance.
> >

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro for creating a formula daverunt Microsoft Excel Programming 1 2nd Jun 2009 08:53 AM
Creating formula or macro Vecah Microsoft Excel Worksheet Functions 0 5th Nov 2008 03:19 PM
Creating Macro/Formula =?Utf-8?B?RGlhbmE=?= Microsoft Excel Programming 2 20th Feb 2007 06:14 PM
Help creating Formula (or macro) =?Utf-8?B?Ym1hbjM0Mg==?= Microsoft Excel Misc 3 9th Apr 2006 06:13 PM
Help creating a Macro or Formula lhernan1219@hotmail.com Microsoft Excel Programming 1 12th Aug 2004 03:16 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:49 PM.