nested formula with if condotion

R

ramana

Hi everybody,


can anybody helpme out to put formula using if or any other
function, to get a desired value using a random formula.
My problem is:

I will have integer values in thhe cells A1,A2,A3,......An.
Then I need to have a formula in B column cells such that they should
return me the values between a specified range real numbers.

the formula should look like this.

If(A1=1,then B1 should be random number betweenX1&X2, if A1=2, then B1
shoulbe random number between X3&X4, if A1=3 then B1should be a random
number between X5&X6and so on)
where X1,X2,X3,.....Xn are real numbers.

Can any body help me regarding this formula.

Thanks & Regards

Ramana
 
B

Bob Phillips

=IF(A1=1,RANDBETWEEN(1,10),IF(A1=2,RANDBETWEEN(11,50),IF(A1=3,RANDBETWEEN(51
,100),"")))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top