Formula That Turns Doubles Into Unique Numbers
Apr 16, 2008formula that turns doubles into unique numbers example:
7788873 = 783
each number is in a cell each....
formula that turns doubles into unique numbers example:
7788873 = 783
each number is in a cell each....
I am currently using Excel 2010. How to Count Singles, Doubles, Triples and Quadruples in a group of number.
Frankie
0
1
2
9
Count how many single numbers (numbers all different). Example: 0129
7
8
8
8
4
8
3
6
[Code] .......
Count how many double numbers (two numbers the same in a draw). Example: 8830
9
2
6
2
8
3
5
4
[Code] ......
Count how many triple numbers (three numbers the same in a draw). Example: 7888
8
6
1
2
9
5
9
6
[Code] ......
Count how many quadruple numbers (all numbers the same in a draw). Example: 2222
6
4
5
1
5
1
0
2
[Code] .........
When I write out ranges in cells like:
1-10
10-20
20-30
30-40
Etc.
Excel turn some of these ranges into dates such as 01-Oct, which is extremely annoying. But trying to change to different date formats but it still keep it to dates. what I can do?
I have a workbook with two worksheets. I added a formula to the first worksheet
= COUNTIF(Scorecard!H3,"K"). It works fine when I add another COUNTIF that references another column (baseball fans may realize I'm counting total strikeouts for a batter): =COUNTIF(Scorecard!H3,"K")+COUNTIF(Scorecard!L3,"K") However, when I try to expand this to cover more columns, =COUNTIF(Scorecard!H3,"K")+COUNTIF(Scorecard!L3,"K")+COUNTIF(Scorecard!P3,"K")
Excel automatically changes the format of this cell to "Text" and it shows the formula as text instead of calculating it. What could be wrong here? Excel's documentation is woefully inadequate for cases like this. Is there an undocumented limit on how many times I can add COUNTIFs together?
I need to count how many unique ID numbers there are per month.I have figured out how to count the unique ID's for the first month (Jan) but after that I'm having trouble trying to get the count right for Feb and Mar. Formula I used in cell E2 is: {=SUM(IF($A$2:$A$14
View 7 Replies View RelatedI need a formula that will add .1, .2, .3, etc. to a repeating list number. See the example below.
Project Work Id
8069000
8069000
8069000
8069000.1
[Code]....
I have a list in rows where I have a ranking formula =COUNT($G$5:$G$81)-(RANK(G5,$G$5:$G$81)+ COUNTIF($G$5:G5,G5)-1)+1 When I sort the rank, ascending. All of the unique numbers sort ascending, but the non-unique numbers sort descending
ex) 1.751
2.52
3.753
418
417
416
I have a column with employee id's. Sometimes two or more employee ID's are double. I need to dedect if there are ID numbers that appears more then ones. If I found such a number I can copy that.
Has someone an idea or is there a build in function to handle this?
I need a macro that keeps any row that has a cell value that shows up twice and only twice in column A. All other rows would be deleted (except the header row, row 1). For example, If it's found only once, a third time or more than three times, delete those entire rows.
This is different than "keeping only duplicates" which would be 2 OR MORE.
A couple of things,
1. The workbook might not be sorted by column A, so a cell named "ABC0011" could show up in row 3, then again in row 8, in this case, keep both.
Say column A has either numbers or text in each cell, I need a macro to only get each number in each cell that is not a duplicate of a number in any previous cell and list each number found down column B.
View 5 Replies View RelatedI have a problem in terms of summing unique numbers in a set of reoccurring numbers. Due to the restrictions in the spreadsheet I am unable to use a filter / advanced filter or pivot table. What I basically want to do is sum every time there is a different number. In this case it's:
37.85+80.61+129.38+185.85+1259.69+104.96
The unique numbers have a maximum of 6 and a minimum of 3. Is there a generic formula that I can apply so that it only counts / sums the number once. I can use VBA code or just a simple array. I'm just not familiar with any sort of functions that can do this.
37.9537.9537.9537.9580.6180.6180.6180.61129.38129.38129.38129.38185.85185.85185.85185.851259.691259
.691259.691259.691259.691259.691259.691259.691259.691259.691259.691259.691259.691259.691259.691259
.691259.691259.691259.691259.69104.96104.96104.96104.96104.960.000.000.000.000.000.000.000.000.000.000.000.000.000.000.00
I have a file that uses dates, when a cell is in date the cell is "GREEN" but when the cell is out of date after 3 years it turns "RED". I want to add another formular so that when it gets to 2 years & 11 months the cell will go "YELLOW" for 1 month only before it turns "RED".
View 3 Replies View RelatedI have a list numbered 0 to 300. What I am looking for is a formula to randomly select 150 unique sets of two numbers and list them in separate columns for a competition draw and should appear as per the example below
HomeAway
7v96
11v4
146v25
I am looking for a way to create a random order of numbers in a given range. For example, A1:a100 to be populated with a random number between 1 and 100, but not to duplicate, using every possible number within that range. I use the RANDBETWEEN function to generate the numbers, but I cannot prvent them from duplicating.
View 2 Replies View Relatedhave been using the simple formula below to determine between a friend and myself whos turn it is next.
=IF(Q22
I have a spreadsheet full of data and in one column the are a set of text codes some of them start with a -... ie -AGEST excel automatically turns this into #NAME?
View 9 Replies View RelatedI am trying to paste in a decimal equivalent chart, loacted here:
http://www.advancedtool.com/prod02111.asp
which basically has a mixture of whole numbers and fractions, and how they equate in decimals.
When I paste this in, all the fractions turn into dates. So for instance 1/64 turns into Jan/64, and 1/32 is Jan/32. Now, I could go in and change each one, but I would like to know how to do this with cell format on the entire sheet....
I have tried to change the cell formats to "general" or "text" and of course fraction, but in this case, I have to go in and do each fraction cell individually. Now maybe I am being too lazy, and in the time it took me to look up my login information, and type this out, I likely could have re-done the worksheet, each cell individually, but I would like to know the way to fix this automatically.
I have a form in Excel that has comments fields. Each comments field is a merged cell consisting of four rows and four columns. My understanding is that Excel should be able to display 1024 characters. The input that's causing me trouble has 360 characters. At around 300 characters, the text box gets filled with ############################# instead of text.
If I size the font down significantly to where there would be absolutely no question that the text would fit, it is still #######. I may have to end up using text boxes, but they are a bit troublesome for the less Excel-savvy users of the form.
I'm trying to keep some basketball stats, and from ESPN the field goals are reported as 10-16, or 5-14, to indicate how many field goals were made out of attempts.
When I paste this into Excel it automatically interprets it as a date. So 10-16 turns into Oct-16, and 5-14 turns into May-14. How do I stop this?
Ignore the screenshot!
I have put together a simple example of my problem. There is two buttons and one text-box "TextBox 1". When I use the following code:
[Code] .........
I get one button to hide the textbox and the other to show it. Initially the textbox has the textbox properties (you can type in it) but when I hide it and show it again using the two buttons the textbox becomes like a rectangle shape which I can not type in and can only click.
How do I hide and show the text box whilst keeping it as a text box?
A little context:
Searching this forum for "sleep", "delay" or "animation" will bring up a host of threads referring to the kernel32 function, sleep. This is a great way of putting small delays into code without the potential "synchronisation" problems of application .ontime calls or the "ugliness" of multiple-thousands looping.
My question:
When I call sleep (with values in the hundreds of milliseconds) several times in a macro, it seems like the computer just "gives up" screen updating after a few (maybe 50) iterations. The macro still takes the time I'd expect, accounting for all the sleeps, but it stops showing the intermediate steps and just shows the end result after the macro ends.
Is this something to do with RAM? Is there something about calling this command too much or too frequently that kernel32 doesn't like? Is my computer a useless bag of nails and spit?
I'd like to count the number of unique numbers in a cell
For instance, in cell a1 I have a number, 38831422. This contains 5 unique numbers, 3,8,1,4 and 2. Is there a formula that can calculate this for me?
jill
I have a column full of Invoice No's. I want to count the number of Invoices that are unique, ir avoiding duplicates.
I know I can use the Advanced filter facility but I'd rather do it in a formula if possible.
I'm working in Excel 97, trying to use a formula I found in the archives here to count unique numbers in a column.
=SUMPRODUCT((V2:V10000"")/COUNTIF(V2:V10000,V2:V10000&""))
I'm not exactly sure what this formula is doing, but it seems to work reasonably well, except that it's adding one to my total.
i.e. I have a total of 15 and it returns a value of 16 or I have 0 and it gives me 1.
In a column in my spreadsheet i have to input a number; either: 51-61 and next to it is either m or o. so in Column A row 1 : 51m, Column A row 2 60m, etc Example:
51m
51o
55o
60m
I want to conditionally format this such that for 51 it turns the cell background green, for 52 red, 53 orange,etc. with a number having a specific color associated with it. 03' does not have a text choice.
i have the volume of a reservoir in column A for lets say, 2 years, with monthly data (so 24 numbers in my list)
I also have some variables that feed into this list such as rainfall (fixed), and population (i.e water use, which i can manually change)
if i increase the population too much, the volume of the reservoir will at certain times of the year, fall into negative digits.
what i'm looking for, is a cell which works out the maximum value (in whole numbers) for my population, without any of the numbers in the reservoir volume list falling below zero.
I have to create ranges of unique numbers that follows the below rules.
1) Have to start with 3 standard digits (ie 101 or 102 etc)
2) The total length of the is has to be 10 digits (ie 1010123456)
3) The second part (the last 7 numbers) must be unique!
4) Can create a lot of numbers (more that 5000 rows)
5) thats all with the unique numbers
Continue,
Somewhere in the sheet has to be a search function to find where a specific id is located, make it red and copy/cut in to another sheet.
I am looking for a formula that matches two unique numbers in a table based on two numbers that are entered in two other cells. This will be clearer by looking at the example below and the attached.
The goal is to find the number entered for the home field (cell c2) in the "home" row (B5:K5) with the number entered for the away field (cell c3) in the "away" column (A6:A15) and result in the data element where the row and columns come together. The expected result for this example in the attached would be "JPD".
Another example would be if a 6 was in cell c2 and an 8 was in c3, the expected result would be "RBK". I think this can be done by indexing and matching but my memory has gone blank with how this works.
How to generate all the possible combinations of 5 numbers, e.g. 1,2,3,4,5. Then 2,3,4,5,1 and so on, in a series of excel columns and rows. Also for 6 numbers etc.
View 14 Replies View RelatedPlease refer to attached sheet.
I have numbers in column A thru G.
I need unique numbers from this list in column J as shown.