Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Steel Bananana
 
Posts: n/a
Default Generating a percentage...

Hi!
I'm running an online body jewelry business, and I would love to do a
"roulette" type of promotion. Basically, I want to enter a coupon code into
one column, and create a random percentage in the second column. There
doesn't need to be any correlation between the two columns, and repitition is
not an issue.
If it's possible, I don't mind copying and pasting the formula from one cell
to the next to generate the number as I go along...
One issue that I will have is that I want it to generate one of the following:
10%, 15%, 20%, 25%, 30%, 35%, 40%, and 50%.
(Obviously, I want to keep the 50%'s to a minimum, but random is random...)
Thanks in advance for the help!
Kim

PS: Excel 2003 (or I could do it at work with 2000 if it's easier...)
http://www.steelbanana.com
  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

One way

=TEXT(ROUND(RAND()*(0.5-0.1)+0.1,1),"0%")


Regards,

Peo Sjoblom

"Steel Bananana" wrote:

Hi!
I'm running an online body jewelry business, and I would love to do a
"roulette" type of promotion. Basically, I want to enter a coupon code into
one column, and create a random percentage in the second column. There
doesn't need to be any correlation between the two columns, and repitition is
not an issue.
If it's possible, I don't mind copying and pasting the formula from one cell
to the next to generate the number as I go along...
One issue that I will have is that I want it to generate one of the following:
10%, 15%, 20%, 25%, 30%, 35%, 40%, and 50%.
(Obviously, I want to keep the 50%'s to a minimum, but random is random...)
Thanks in advance for the help!
Kim

PS: Excel 2003 (or I could do it at work with 2000 if it's easier...)
http://www.steelbanana.com

  #3   Report Post  
RagDyer
 
Posts: n/a
Default

Since you expressed an inclination to perhaps have the 50% show up
*slightly* less often then the rest of the discounts, you could try this
approach, where the chances of what discount is *randomly* chosen is based
on how many 50's are in your list, compared to the number of lesser
percents.

You could still say it is a "random" pick of your discount list.
Just don't show anyone what your discount list looks like.

In an out of the way section of your sheet, say in Column Y, enter your
discounts in an "unbalanced" list (Y1:Y20).
5,10,15,20,25,30,35,40,50,5,10,15,20,25,30,35,40,5 ,10,15

In Z1 enter:
=RAND()
And copy down to Z20.

Now, use this formula to generate your discount percent:

=INDEX($Y$1:$Y$20,RANK($Z$1:$Z$20,$Z$1:$Z$20))

You can use this formula as is, if it's entered in Row 1 to Row 20.
If it's used beyond those rows, it must be entered as an array formula,
<Ctrl <Shift <Enter.

You can of course, adjust the "chances" in your list to suit your *honesty*,
or your pocket book.<bg
--

HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================




"Steel Bananana" wrote in message
...
Hi!
I'm running an online body jewelry business, and I would love to do a
"roulette" type of promotion. Basically, I want to enter a coupon code into
one column, and create a random percentage in the second column. There
doesn't need to be any correlation between the two columns, and repitition
is
not an issue.
If it's possible, I don't mind copying and pasting the formula from one cell
to the next to generate the number as I go along...
One issue that I will have is that I want it to generate one of the
following:
10%, 15%, 20%, 25%, 30%, 35%, 40%, and 50%.
(Obviously, I want to keep the 50%'s to a minimum, but random is random...)
Thanks in advance for the help!
Kim

PS: Excel 2003 (or I could do it at work with 2000 if it's easier...)
http://www.steelbanana.com

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
changing the value of each cell in a range by a certain percentage Aaron Excel Discussion (Misc queries) 5 December 15th 04 10:30 PM
Excel 2003 -- I need to know how to calculate a percentage of uni. Kelly Excel Discussion (Misc queries) 1 December 11th 04 03:10 PM


All times are GMT +1. The time now is 07:08 AM.

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"