Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default continous assessment help with vba

Hi im required to write an asessment for vba, and was wondering if
someone could give me an example of how to do it, i really want to
learn how to do it because it will come up in my exam. so if someone
could show me an example of how to do it i would be grateful.

write a programme that takes a number X from cell A3 and a positive
integer from cell B3 - then return it into cell C3.

the value of X raised to the power N divided by N factorial

could anyone help me as to how to approach this and what it means??

thanks please

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 167
Default continous assessment help with vba

Just so we're all clear here...

Are these problems you present actual exam questions or sample problems? I
wouldn't want to facilitate cheating, after all...

In any case, these aren't too bad. Regarding the first problem, what do you
want to do with the two values obtained from A3 and B3? Multiply? Also, the
second problem can be solved with the following formula:

=(X ^ N) / FACT(N)

or the following VBA function:

Function test(x As Range, N As Range) As Double
test = (x ^ N) / Application.WorksheetFunction.Fact(N)
End Function

Functions are special VBA programs that can be called from a cell within
Excel. That is, put this function in a module in a workbook, and then you
can type
=test(2,5)
in a cell to obtain the result of 0.2667. Search the VBA help files for
"Function" for more information on this.

HTH,
Pflugs

"paul" wrote:

Hi im required to write an asessment for vba, and was wondering if
someone could give me an example of how to do it, i really want to
learn how to do it because it will come up in my exam. so if someone
could show me an example of how to do it i would be grateful.

write a programme that takes a number X from cell A3 and a positive
integer from cell B3 - then return it into cell C3.

the value of X raised to the power N divided by N factorial

could anyone help me as to how to approach this and what it means??

thanks please


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
ASSESSMENT FORMULA Tia[_3_] Excel Worksheet Functions 2 June 12th 08 02:08 PM
Possible questions on assessment test Richard Champlin Excel Discussion (Misc queries) 1 March 18th 08 10:40 PM
Assessment Worksheet japc90 Excel Discussion (Misc queries) 1 January 17th 08 08:11 AM
employee assessment test mctwist Excel Discussion (Misc queries) 2 August 2nd 06 05:21 PM
Capacity Assessment NG Excel Discussion (Misc queries) 0 January 21st 05 10:41 PM


All times are GMT +1. The time now is 03:00 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"