moe10134
Board Regular
- Joined
- Sep 8, 2005
- Messages
- 162
- Office Version
- 2019
- Platform
- Windows
Hello,
i am looking for a function, formula or macro that allows me to tally results of a RAND()+1 in A2. Using =MROUND(A2,1) in B2. I will either get a result of 1 or 2 in B2. I am looking for a way to give me a total/count/sum (recorded tally) of how many times I get a result of 1 or how many times I get a result of 2. This could also be a TRUE or FALSE result. I'm looking to tally or keep track of a total of how many times a 1 or 2 result. If I get a result of 1 three times a cell will total to 3. If I get a result of 2 five times a cell will total 5 and continue to sum/count each time RAND() runs and I get each 1 or 2 result. It can be in separate cells as a range to SUM. One cell to count 1's and/or One cell to count 2's. Or a Macro that each time the result is 1 or 2 then it will total each result to be recorded and continue to sum the number of times I get a 1 or 2 result. I can also use an IF statement to equal a text result of "Yes" or "No" =If(b2=1,"yes","no") but i still need to determine how many times I get a specific result.
The function/macro/formula, I am looking for is to total each time a new 1 or 2 result appears.
Anyone have any suggestions?
Thank a bunch!
i am looking for a function, formula or macro that allows me to tally results of a RAND()+1 in A2. Using =MROUND(A2,1) in B2. I will either get a result of 1 or 2 in B2. I am looking for a way to give me a total/count/sum (recorded tally) of how many times I get a result of 1 or how many times I get a result of 2. This could also be a TRUE or FALSE result. I'm looking to tally or keep track of a total of how many times a 1 or 2 result. If I get a result of 1 three times a cell will total to 3. If I get a result of 2 five times a cell will total 5 and continue to sum/count each time RAND() runs and I get each 1 or 2 result. It can be in separate cells as a range to SUM. One cell to count 1's and/or One cell to count 2's. Or a Macro that each time the result is 1 or 2 then it will total each result to be recorded and continue to sum the number of times I get a 1 or 2 result. I can also use an IF statement to equal a text result of "Yes" or "No" =If(b2=1,"yes","no") but i still need to determine how many times I get a specific result.
The function/macro/formula, I am looking for is to total each time a new 1 or 2 result appears.
Anyone have any suggestions?
Thank a bunch!