Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Urgent problem needs help in solving


I was given 10 numbers from A1-A10 (all are integers). Say they are
represented as a1, a2, a3 .... a10.

_*-Tasks_and_Conditions-*_

1. Need to generate a further 5 columns of random numbers (from column
B
to F) and say again the numbers are represented as b1, b2 ... b10
for
column B and respectively for columns C to F.

2. The random numbers generated for each column must be:-

i) Mathematically,

b1 =a1-10 and also
b1 =< a1+10
(b1 must be equal or more than a1 minus 10 and equal or less than a1
plus 10)

b2 =a2-10
b2 =< a2+10

and the same condition applies to c1-c10 ..... f1-f10

ii) g1 (which is the average number from the random numbers generated
from
b1-f1) should be equal to a1. The same applies again for g2-g10.

iii) g1-g10 can be integers or non-integers.

This looks like a simple problem but I am new to Excel and not familiar
with VB programming at all. I would think this is a few lines of
programming and any help regarding this matter is greatly appreciated
as this is really urgent. Thanx in advance.


--
copu2000
------------------------------------------------------------------------
copu2000's Profile: http://www.excelforum.com/member.php...o&userid=31112
View this thread: http://www.excelforum.com/showthread...hreadid=507778

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Urgent problem needs help in solving

You don't need VBA:

In B1 put =RANDBETWEEN(A1+10,A1-10) and fill in B2 thru F10 in a similar
fashion.
In G1 put =AVERAGE(B1:F1) and fill G2 thru G10, etc.
--
Gary's Student


"copu2000" wrote:


I was given 10 numbers from A1-A10 (all are integers). Say they are
represented as a1, a2, a3 .... a10.

_*-Tasks_and_Conditions-*_

1. Need to generate a further 5 columns of random numbers (from column
B
to F) and say again the numbers are represented as b1, b2 ... b10
for
column B and respectively for columns C to F.

2. The random numbers generated for each column must be:-

i) Mathematically,

b1 =a1-10 and also
b1 =< a1+10
(b1 must be equal or more than a1 minus 10 and equal or less than a1
plus 10)

b2 =a2-10
b2 =< a2+10

and the same condition applies to c1-c10 ..... f1-f10

ii) g1 (which is the average number from the random numbers generated
from
b1-f1) should be equal to a1. The same applies again for g2-g10.

iii) g1-g10 can be integers or non-integers.

This looks like a simple problem but I am new to Excel and not familiar
with VB programming at all. I would think this is a few lines of
programming and any help regarding this matter is greatly appreciated
as this is really urgent. Thanx in advance.


--
copu2000
------------------------------------------------------------------------
copu2000's Profile: http://www.excelforum.com/member.php...o&userid=31112
View this thread: http://www.excelforum.com/showthread...hreadid=507778


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,339
Default Urgent problem needs help in solving

Further to Gary's solution:

If G1=A1 then in F1 put =A1*5-SUM(B1:E1) and copy down.

"Gary''s Student" wrote:

You don't need VBA:

In B1 put =RANDBETWEEN(A1+10,A1-10) and fill in B2 thru F10 in a similar
fashion.
In G1 put =AVERAGE(B1:F1) and fill G2 thru G10, etc.
--
Gary's Student


"copu2000" wrote:


I was given 10 numbers from A1-A10 (all are integers). Say they are
represented as a1, a2, a3 .... a10.

_*-Tasks_and_Conditions-*_

1. Need to generate a further 5 columns of random numbers (from column
B
to F) and say again the numbers are represented as b1, b2 ... b10
for
column B and respectively for columns C to F.

2. The random numbers generated for each column must be:-

i) Mathematically,

b1 =a1-10 and also
b1 =< a1+10
(b1 must be equal or more than a1 minus 10 and equal or less than a1
plus 10)

b2 =a2-10
b2 =< a2+10

and the same condition applies to c1-c10 ..... f1-f10

ii) g1 (which is the average number from the random numbers generated
from
b1-f1) should be equal to a1. The same applies again for g2-g10.

iii) g1-g10 can be integers or non-integers.

This looks like a simple problem but I am new to Excel and not familiar
with VB programming at all. I would think this is a few lines of
programming and any help regarding this matter is greatly appreciated
as this is really urgent. Thanx in advance.


--
copu2000
------------------------------------------------------------------------
copu2000's Profile: http://www.excelforum.com/member.php...o&userid=31112
View this thread: http://www.excelforum.com/showthread...hreadid=507778


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
Solving #REF! Problem DMD Excel Discussion (Misc queries) 2 November 13th 07 03:54 AM
Help Solving a problem jocpinmn Excel Discussion (Misc queries) 1 May 25th 07 07:32 PM
Need help solving problem doing vlookup Kathrine Excel Worksheet Functions 0 March 28th 07 12:15 AM
Need help solving problem doing vlookup Curtis Excel Worksheet Functions 0 March 28th 07 12:03 AM
problem solving ClayTele Excel Worksheet Functions 0 February 16th 05 06:55 PM


All times are GMT +1. The time now is 02:18 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"