Changing Values With = RAND()?
Dec 29, 2009
When I use the =RAND() function, everytime I do anything within my spreadsheet the number changes. Is there a way to get that number to change after(for example) 10 refreshes of my spreadsheet instead of every single time I do something to it?
View 6 Replies
ADVERTISEMENT
Sep 16, 2009
This may have been answered on here but can not seem to find it. My situation is I have values in A1,A2 & A3 that are like counter reading so the value is always changing. What I am looking to do is change the cell color if one of the values is over 500 from the other two values. Say A1 is 3000, A2 is 3250 and A3 is 3500. I would like the cell for A3 to change color.
View 2 Replies
View Related
Nov 12, 2009
I need to use a function that is not onyl random, but only uses a person's name on a list once. On a list of ten people, RANDBETWEEN picked the same person three times in ten key strikes. How can I use RANDBETWEEN but also make sure ever person's name gets picked ONLY once? This is for a drawing for secret santa.
View 9 Replies
View Related
Nov 10, 2013
I have a workbook that calculates a RAND function based on input in another cell. Specifically, the formula in E2 selects a random text string from another range depending on data entered in D2. I want to be able to fill this formula down for use multiple times.
The formula works fine on its own, but the problem comes when I, say, move on to D3 to input more data. E3 does its random calculation as it should, but E2 also recalculates; I want E2 to remain static once it calculates the first time.
I'm attaching the workbook in question. The calculation I'm referring to is in the 3rd worksheet.
TLL Injury Machine.xlsx
View 2 Replies
View Related
Mar 6, 2009
I have been using the RAND and Vlookup functions for the following without success.
I have 4 numeric Pools or Groups;
1. A1:A18 (1-18)
2. B1:B18 (19-36)
3. C1:C17 (37-53)
4. D1:D17 (54-70)
I also have E1:E20 (20 existing Numbers from 1-70)
I want Excel to select at random a total of 20 numbers
and place them in F1:F20.
I will specify a quantity from each of the 4 groups.
Eg.
In cell A20 I enter 4 to obtain 4 numbers from grp 1,
In cell B20 I enter 6 to obtain 6 numbers from grp 2,
In cell C20 I enter 8 to obtain 8 numbers from grp 3,
In cell D20 I enter 2 to obtain 4 numbers from grp 4,
However there must not be any duplicates between
E1:E20 and F1:F20!
View 9 Replies
View Related
May 23, 2013
How do I use RAND to generate random numbers between 0.25 & 0.5?
View 9 Replies
View Related
Oct 9, 2007
Is there a way to control the number generation. I would like to be able to run different scenarios with the same set of random numbers, then regenerate the random numbers and do it again. Right now every time I do anything in the spreadsheet, I get a new set of numbers.
View 4 Replies
View Related
Apr 29, 2014
I have 379 sample identities in my Excel spreadsheet in A2:A380. I want to randomly assign a number from 1-5 to each of these.
View 1 Replies
View Related
Oct 24, 2007
How can I use the RAND function to generate a list of simulated phone numbers.
View 9 Replies
View Related
Aug 25, 2013
I'm making a custom BINGO board in Excel 2010 for a family reunion, so it doesn't contain numbers; instead it has words (like "has brown eyes" or "served in the military"). the first sheet is the board and looks like a traditional BINGO board with the same number rows and columns with a center FREE space. On the second sheet is the list of all the phrases I'm going to use, one phrase per cell, all in Column A.
In BINGO cells, I want it to use one item (phrase) in each box but NOT repeat within the board. I have the following code in each cell and it works EXCEPT, there is no code telling it to make each cell unique, so sometimes it may repeat.
=UPPER(INDEX(ColumnA,((RAND()*(Data!A1-1))+1),0))
View 8 Replies
View Related
May 29, 2009
I have two worksheets. One is called "Orders" and the other is "Invoice2".
On my "Orders" sheet I have a listed of product codes and ordered quantity. One column being ordered quantity and the other being product codes.
For instance it is like this:
Product Codes Ordered Quantity
TH1 5
AB3 0
JC5 10
LFK 11
On my "Invoice2" sheet I have a column for product codes and ordered quantity. Basically, I want the "Invoice2" sheet to reference the "Orders" sheet in relation to these columns. However, on the invoice I only want to display the product codes ordered and ordered quantity. For instance TH1 would be the first line and JC5 the second line. This is because AB3 is less than 0. So ever product code on the "Invoice2" sheet must be greater than 0 in ordered quantity on the "Orders" Sheet. This is what the invoice2 sheet would look like:
Product Codes Ordered Quantity
TH1 5
JC5 10
View 5 Replies
View Related
Dec 21, 2011
I have a code that clears the content of a cell if the value of that cell exceeds two.
Code:
Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
If Cells(1, 1).Value > 2 Then Cells(1, 1).ClearContents
End Sub
My problem is the value of this cell comes from a function and changes every second automatically (linked to a data feed). So I'm not changing it manually, therefore my code is not working unless I touch it. I just wanted to ask if I can add a code onto this which checks the values and runs the ClearContents macro if there is any change.. I've got a few sheets like this so I need this to run in the background..
View 2 Replies
View Related
May 28, 2012
i have a spreadsheet that has 3 shifts. its a weekly data sheet. i have 52 sheets for every week of the year. so far i have a "data" sheet aswell. this is the first sheet. I use this data sheet to generate the information or the other 52 sheets. example is you enter the date of the first monday of the year and it generates the dates on all of my sheets for the whole year. i would like to do something similar for the shifts. i would like to have a cell the enter the shift of the first supervisor on that first monday and have all the shifts generate. 1=nights,2=days,3=afternoons. but i do not want the number to appear i would like the word. the set up goes like this:
DATA E9 = the first number for shift to generate all other numbers
A5 = cell to display first shift
A22= cell for the next shift
A39= cell for last shift
on sheet1 i have A5 as =sum(DATA!E9)
i would like A22 to be the shift after example if A5 as 2 for days than A22 would be 3 for afternoons and A39 would be 1 for nights.
preferably displayed as DAYS/AFTERNOONS/NIGHTS
View 1 Replies
View Related
Dec 2, 2013
I'm designing a spreadsheet currently. I want to input a number into cell A1 - for example 13. Now the number 13 has a percentage value of 67.3%. When I enter the value into A1 I want excel to automatically fill cell A5 with the percentage value of 67.3%.
I need to have the numbers from 1-20 all with varying percentage values.
1 = 100%
2 = 97.8%
3 = 94.3% etc..
So essentially I would like to enter 13 into cell A1 and for cell A5 to automatically fill in the value of 67.3%, if I was to change the value in A1 to 10 it would also automatically change the percentage from 67.3% to 74.7%..
View 10 Replies
View Related
May 6, 2009
I am looking for a way to simply change the values in column B (start time) back by one hour, for instance 06:00:00:00 would become 05:00:00:00. Because this schedule is a broadcast schedule, time is shown in 4 fields hour, minutes, seconds, and frames (hh:mm:ss:ff).
I can't find a way to quickly adjust it, and because my company broadcasts in a lot of different timezones, I spend a lot of time manually adjusting the values myself. It seems frustrating because I know excel recognizes the values, because it is capable of sorting them, of course that may mean absolutely nothing. I have attached a sample file that I hope should make my problem a little clearer.
View 5 Replies
View Related
Oct 5, 2009
I have two defined ranges, and they keep changing to include the workbook name. XV2 =
View 3 Replies
View Related
Dec 4, 2012
I'm looking to change raw data into a "point" system. One of my value exchanges is every $1,000 equals 5 points. So if cell A1 equals $4,685 I am looking for cell A2 to give me a value of 20. (5pts times 4 increments of a $1k) The point value only changes at the $1k milestones, so the remaining $685 does not change the point value. What would the formula look like for something like this?
View 3 Replies
View Related
Oct 29, 2009
i have one row of values ie c4="-121" d4="122" e4="123" f4="124"
and h4="test" like this .
if h4="right" (i change the value test to write) i want to change the
c4,d4,e4,f4 signs positive to negative
ie c4=+121 d4=-122 e4=-123 f4=-124
i write sample code like this
View 11 Replies
View Related
Jul 26, 2006
I have a spreadsheet that has multiples ranges. Some values are displayed as negative values. I would like to create a macro that allows me to first select the range/s, (maybe using a input box) I want to change and then display the negative values as positive values.
Would I need to create a separate macro to do the opposite (change the values that are positive to a negative value)?
The other macro I’m trying to create is a similar type. What I would like this macro to do is first select the range I want to change and then divide all the cells in the range by 100000
View 3 Replies
View Related
Oct 25, 2006
I currently maintain a program that creates an Excel report. The report is full of formulas (mostly vlookups).
After the report is built, I'd like to get rid of the formulas. The only way I know to do this is to copy the report and do a paste special values.
View 3 Replies
View Related
Feb 9, 2007
When I type in a ticker into TextBox2 the form is prepopulated. Sometimes the info that is prepopulated is incorrect and the user should just be able to click in the textboxes and make the changes. The problem is that when the user does click on the boxes and makes the changes and hits submit the combobox values do not change and stay that of the vLookup results. So, the vLookup results can't change even if the user makes the change and hits submit. What am I missing. Do I have to declare somehwere that ComboBox1.value (for instance) is actually the value as of the submit button ebing clicked and not when the vlookup happens?
Private Sub TextBox2_Change()
On Error Resume Next
TextBox1.Value = WorksheetFunction.VLookup(TextBox2.Value, Range("Data_Company_Names"), 2, False)
ComboBox1.Value = WorksheetFunction.VLookup(TextBox2.Value, Range("Data_Company_Names"), 4, False)
ComboBox8.Value = WorksheetFunction.VLookup(TextBox2.Value, Range("Data_Company_Names"), 3, False)
ComboBox11.Value = WorksheetFunction.VLookup(TextBox2.Value, Range("Data_Company_Names"), 5, False)
On Error Goto 0
End Sub
View 9 Replies
View Related
Apr 29, 2008
i have 118 cells and they are changing every 10 second so, how to gather the max value from these cells and displaly them in Marquee box or in pop message?
View 3 Replies
View Related
Feb 4, 2014
I want a functionality in a sheet wherein if i select a value from a drop down, i will get specific fields to be entered in the sheet below and when i select a different value from the drop down the fields to be entered should change.
View 3 Replies
View Related
Oct 14, 2008
I m trying to get around here within the company I work for.
I'm interested to know how to set a specific range value e.g. "5 to 10" once a value is between those 2 numbers, and then if the value in the next row below is 34.12 it will be "30 to 35".
Here's an example code I constructed, but the darn thing just keeps on running
View 4 Replies
View Related
Jan 12, 2009
Based on the attached (much simplified) spreadsheet, I want the values in the green cells on the "Month" page (B6:B10) to vary depending on the value in the yellow cell (B4), and for these cells to to look up the relevant column in the "Full Year" page - i.e. if B4 (on "Month") = Jan, look up C6:C10 in "Full Year"; if B4 = Feb, look up D6:D10, and so on. I know I can nest IF functions in order to achieve this, but could be a bit messy. I'm sure there must be a simpler formula within Excel ... just don't know what it's called!
View 3 Replies
View Related
Mar 27, 2009
Made a macro to Copy a value and paste is as "Special" for Value only.
The problem is it won't function correctly Unless I force a switch to the sheet where the calculations are. (Which I want to avoid)
The current code is:
View 5 Replies
View Related
Sep 25, 2011
I have 50 share returns for 2009 (A2:A51). I am solving for optimal portfolio by allocating weights to my 50 shares in 2009. in solver, i am changing cells B2:B51, but the criteria is that if any of the 2009 returns is greater than 75 then the weight on that share should be 0. i tried to write an if function in column C of the changing cells but solver overrides the command when i solve.
View 4 Replies
View Related
Mar 4, 2013
I have an array that refers to a range of values:
Dim vtimeheader As Variant
vtimeheader = Worksheets("output").Range("e4:xfd4").Value
(1) I now want to delete all values in the array
(2) I want to apply the format "General" to all the cells in the array
View 2 Replies
View Related
Jun 26, 2014
I'm trying to execute something like this: [URL] ......
but without changing the cell value... I basically want a button that will wrap/unwrap all of the cells in the "B" column with one click. If i have to do the cell range for every individual cell in column B that's fine, but I can't seem to make the above example work while keeping the cell contents the same.
View 3 Replies
View Related
Dec 10, 2008
In Sheet1 from row 12 on down in columns A to E I have numerical values.
Column F has letters, either N or S
Column G has numerical values
Column H has letters, either E or W
and columns I, J and K have numerical values again
On a new sheet (Sheet2), I want everything copied but the numerical values
in columns G need to be changed to negative if the cell to the right, column F,
have an S and the values in column G need to be changed to negative if the cell
to the right, column H, has a W.
Columns F and H are therefor not copied to Sheet2
(Sheet1 has quadrant readings and Sheet2 will end up with azimuth readings)
The result is that Sheet2 will have all numerical values from column A to column I
with columns E and F either positive or negative values.
Currently I use the following
Sub CopyTNS()
Sheets("Sheet1").Range("A12:D" & Range("D65536").End(xlUp).Row).Copy _
Destination:=Sheets("Sheet2").Range("A12")
Sheets("Sheet1").Range("I12:K" & Range("K65536").End(xlUp).Row).Copy _
Destination:=Sheets("Sheet2").Range("G12")
View 9 Replies
View Related