Given A List Of Numbers (ID) Pair Up (roundrobin) Without Duplicating

Mar 19, 2008

This is my Excel dilemma: creating roundrobin pairs.

For a given list of numbers, I need to generate pairs where each number is paired with all the other numbers without creating a duplicate pair.

For example: 1,3,4,6... (dynamic)

Pairs: 1-3, 1-4, 1-6, 3-4, 3-6, 4-6

Results should be generated in two columns. Column A would be ID1, Column B would be ID2 (the combination of both would be the pair created)

ID1ID2131416343646

I have basic ideas for a macro but the loop within a loop and the OFFSET for the next row is something I really can't put together.

View 9 Replies


ADVERTISEMENT

Pair Up Positive And Negative Numbers

Jan 5, 2009

************************************************************************>Microsoft Excel - Book2.xls___Running: 11.0 : OS = Windows XP (F)ile (E)dit (V)iew (I)nsert (O)ptions (T)ools (D)ata (W)indow (H)elp (A)boutB2B3B4B5B6B7B8B9B10B11B12B13B14B15B16B17B18B19B20B21B22B23B24B25B26B27B28B29=ABCD1 amount Abs amtMark x when paried up 2             (43,746.73)43746.73x 3               43,746.73 43746.73x 4               43,746.73 43746.73  5             (60,579.30)60579.3  6             (60,579.30)60579.3x 7               60,579.30 60579.3x 8             (98,416.85)98416.85x 9               98,416.85 98416.85x 10               98,416.85 98416.85  11           (500,000.00)500000  12           (500,000.00)500000  13           (500,000.00)500000  14           (500,000.00)500000x 15             500,000.00 500000x 16           (700,000.00)700000  17           (700,000.00)700000  18           (700,000.00)700000x 19           (700,000.00)700000x 20           (700,000.00)700000x 21           (700,000.00)700000x 22           (700,000.00)700000x 23           (700,000.00)700000x 24             700,000.00 700000x 25             700,000.00 700000x 26             700,000.00 700000x 27             700,000.00 700000x 28             700,000.00 700000x 29             700,000.00 700000x Sheet1 [HtmlMaker 2.42] To see the formula in the cells just click on the cells hyperlink or click the Name boxPLEASE DO NOT QUOTE THIS TABLE IMAGE ON SAME PAGE! OTHEWISE, ERROR OF JavaScript OCCUR.

****** http-equiv="Content-Type" content="text/html; charset=utf-8">****** name="ProgId" content="Word.Document">****** name="Generator" content="Microsoft Word 11">****** name="Originator" content="Microsoft Word 11"> Hi everyone,

I can't figure out how to mark a "x" for the paired up figures in column A as shown in the above spreadsheet using a formula(e) and/or VBA. At the moment I'm doing this manually. Imagine doing this for thousands of line... once a week

View 9 Replies View Related

VBA Code To Random Pair List Of Names

Oct 23, 2013

I want to create a simple worksheet that takes a list of names (All of the members of my family) and Randomly selects another name from that same list and matches them to it ( I don't want to say "paired" because I want each person to have a one way relationship to the other, in other words just because personA is matched to personB, i don't want personB to automatically be paired to personA) I hope that makes sense. Once every name on the list is matched with a person I would like to move that name to a database that I can track each year. The practical application of it is this: Each year our family randomly draws names and we are tasked to buy a new x-mas ornimate for that person, ideally you would not get the same person 2 years in a row, and the person that you have does not have you in return simply to add more variety and the database would track who had who each year.

Code:
Sub test()
Dim a, i As Long, temp, n As Long
a = Range("b2", Range("b" & Rows.Count).End(xlUp))
Randomize
With CreateObject("System.Collections.SortedList")
For i = 1 To UBound(a, 1)

[Code] ......

View 1 Replies View Related

Placing Numbers In Sequence Down Rows And Duplicating If Information Matches?

Mar 7, 2013

I have 2 columns,

column A has a series of 8 digit numbers (some will match some will not) sorting in A-z order from lowest to highest value.

Column B is blank at the moment.

What I want

In column B i need to add numbers starting at 1 and moving down in sequence.

If more than one rows have the same number in column A they get the same numbe rin Column B

It's really a pain or have to hand type in the numbers and I can't figure out a easy way to do this.

Attached example.

Tab 1 = Origanl Data
Tab 2 = results i'm lookin for.

View 2 Replies View Related

Filling ComboBox List Is Duplicating/Retaining Old Values

Sep 29, 2006

I am currently trying to add some functionality to an Excel workbook and I have a combo box that I am unable to get the values to populate. On the same worksheet I have a command button. Here is the code I am using to attempt to populate the combo box:

Private Sub cmdSendSave_Click()

Call SendSave

End Sub

Private Sub bxLocation_Change()

With bxLocation
.AddItem "Mt. Hope"
.AddItem "Summersville"
.AddItem "Huntington"
.AddItem "Pulaski"
.AddItem "Coastal Bend"
.AddItem "Odessa"
.AddItem "Wheeling"
.AddItem "Hollywood"
End With

End Sub

View 9 Replies View Related

Pair Of Digits In Col B

Nov 4, 2008

I have a pair of digits in col B, that I would like to match with the digits in in col D, and display those matches in col E. If possible I would delete the duplicates in col E, and show results in col F.

View 9 Replies View Related

Search For All Unique Numbers Down A Column And Print List Of Those Numbers In Another

Jun 5, 2014

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 Related

Randomly Pair Up Players

Nov 19, 2012

I am trying to make code to randomly pair up players. I have found code which makes a button that randomly pairs up players in a list but I want to make it so that ? players are paired with ? other players instead of everyone at the same time so that a person dosn't get paired with more then one player at a time.

E.g. take the first 6 players in a last and pair them with the second 6.

This is the code I found:

Private Sub CommandButton1_Click()
Dim x As Range, RanRng As Range, z As Range, oRes, Ray
Dim i As Integer, j As Integer, real, oSt As Integer, cl As Range
Dim oCol As Integer
Set RanRng = Range(Range("A1"), Range("A" & Rows.Count).End(xlUp))

[Code] ........

View 1 Replies View Related

Slaved Listbox Pair

Apr 23, 2007

I have two lists that represent pairs of electrical connectors. List_1 is Male Connectors, and List_2 is the mating Female Connectors. The lists are built so that when side-by-side, a mating pair line up next to each other.

I'm trying to build a User Interface that presents the connectors as pairs, but also aloow the user to select EITHER member of the pair.

My first thougt was to use a Listview or a Listbox with 2 columns. Either way, the user selects a full row, rather a single entry in a row.

I finally ended up building a userform with 2 Listboxes adjacent to each other, and a Vertical Scrollbar Control to the right of the pair. I added the following code to the form, to scroll both Listboxes simultaneously:

Private Const Display_Lines As Long = 7

Private Sub ListBox1_Click()

Me.ListBox2.ListIndex = -1

End Sub

As far as that goes, it works fairly well. The user scrolls up and down using the Scrollbar control, and paired entries remain adjacent to each other. The user can select an entry from either Listbox, and I can easily harvest that choice through code.

I was hoping, however, that I could support people who use the keyboard for navigation.

Focus on one of the Listboxes, then navigate using the up and down arrow keys. When the user gets to the end of the list, the value of the Scrollbar control increments or decrements as required, thus re-populating the lists. I just can't get this to work in a way that is not cludgey. I have worked through about a half-dozen possible methods, and each one has some hitch that makes it either hokey or unworkable.

View 9 Replies View Related

Rumble 3 Digits From Pair's

Dec 11, 2009

How to make Rumble 3 digits from pair's

View 9 Replies View Related

Pair Matching/linking

Jun 2, 2007

I have used excel to create a list of matching pairs, which I want to link together. The problem is, all I have been able to create is a very long list of matching pairs, and no way to link all the pairs together. My sheet looks like this.

a b
1 100 200
2 200 300
3 300 400
4 300 500
5 600 700
6 800 700

The first row shows that 100 goes with 200, and the other rows continue defining which blocks go together. What I need is a way to summarize all the blocks that link up, ie get 100-200-300-400-500 and 600-700-800 from this list of relationships. Can't do it with a lookup because some blocks link to multiple other blocks.

View 4 Replies View Related

How To Pair / Concatenate Values Of First Column With Each Other

Feb 4, 2014

we want to add/concatenate the values of first column and show the result in next column. The problem is fully explained in the comment section of the sheet attached. But still if you are having in getting the problem

View 6 Replies View Related

Organize Data By Odd Number And Pair

Mar 16, 2014

I have list of county roads and would like to organize them by odd number and pair. Macro that can change the pair number first then the odd number here is an example

ORIGINAL LIST
COUNTY ROAD 32 & COUNTY ROAD 55
COUNTY ROAD 36 & COUNTY ROAD 55
COUNTY ROAD 51 & COUNTY ROAD 48
COUNTY ROAD 48 & COUNTY ROAD 35

[Code] ...........

View 4 Replies View Related

Relating List Of Random Numbers To A List Of Names To Create Rota

Nov 21, 2013

I'm trying to create a staff rota which will populate a rota randomly when prompted - I have been trying to find some way of connecting the random lists and the staff names, though this has proved difficult (to say the least!). How best to proceed? I'm also fully aware of the possibility that my present design will also double book people (place then on reception and telephone duty simultaneously).

View 3 Replies View Related

Excel 2007 :: Create List Of Barcodes From List Of Numbers On Worksheet?

Feb 25, 2014

Is it posible and how to create a list of barcodes from a list of numbers on the worksheet?

Strokescribe seems to have some ind of solution but the data can't come from the worksheet.

View 8 Replies View Related

Remove Pair In Sheet1 If Exist In Sheet 2

Dec 22, 2009

I have two sheets of data: sheet1 and sheet2. Data in sheet 1 and sheet 2 are in pair, ex: row1 and row2 is 1 pair, row 3 and row 4 is one pair ect…I need a program that start from each pair in sheet1 and search for it in sheet2, if that pair already exist somewhere in sheet2, then cut that pair from sheet1 and paste it into sheet3.

View 12 Replies View Related

Combining Values To Create 2 Digit Pair?

Jan 17, 2013

In A1
01234

In B1:k1
01 02 03 04 12 13 14 23 24 34

I am looking for a formula that will combine each digit together as a 2 digit value

Is this even posible?

The value in A1 could range from a 3 to 9 digit value.

View 3 Replies View Related

Comparing 2 Column (pair) And Returning Count

May 30, 2014

Excel user that has been manually computing a 6000 row spreadsheet. Here is sample data and what I need. Column A goes through the alphabet (A,B, C, etc.) and Column B is numbers from 1-65. I need Column C to count the number of rows for each alphabet/number pair. K, 28 has 3 rows; K, 33 has 1 row; L, 21 has 4 rows; etc.

Column A
Column B
Column C

K
28
3

K
28
3

K
28
3

[code]....

View 2 Replies View Related

Randomly Pair Players Together To Form Teams

Jun 10, 2008

I need to randomly pair players together to form teams.

For example:
Saturday morning, there are 19 golfers signed up to play together, but want to paired randomly.

This is what we currently do:
In cells A1:A27 I type their names. In B1:B27, I type their handicaps.

We then use a deck of cards to randomly draw teams. We do this by pulling 4-A's, 4-k's, 4-Q's, 4-J's, and 3-10's from the deck. We shuffle these cards and then go down the names in colum A and assign each palyer a card and place the card value into column C. We then highlight all three columns and sort by column C to form teams.

This works ok, but the problem is they all tee off at the same time and need a "super quick" process to form teams in seconds.

The only variable that I might see being a problem is the # of players vary each time they play. There might be 12 one day and 51 the next. We have to form teams into 4 somes and 3 somes, based on the total number of players we get.

View 9 Replies View Related

Compare And Pair Rows Within Tolerance Range

Apr 8, 2008

I have an unknown number of rows that represent parts and 6 columns that represent part dimensions. I need to find and output matching pairs of parts that are within certain dimensional tolerance ranges.

For example:
Dimension 1 Dimension 2 to Dimension 6
Part 1
Part 2
to Part X

-I would need the code to check if Dimension 1 of Parts 1 & 2 were within a certain range and if Dimension 2 of Parts 1 & 2 were within a range etc. then (if all of them were true) output them as a pair. Otherwise, it would continue to search for paired parts. Once a pair is found, those parts can't be used again. How can I do this?

View 6 Replies View Related

Duplicating A Number According To Value?

Aug 12, 2014

Is there a simple way to duplicate a number according to a given value? For example, i want the input to be 8 and the number is 1 so the output would be 11111111.

View 3 Replies View Related

Duplicating A Row And Numbering?

Mar 3, 2009

I've been given an excel file with 75 addresses (1 address entry per row) and I have to make 150 copies of each address while also numbering column D for each row 1-150.

So in the end it would go from: (sorry for the periods.. extra spacing didn't work!)
A........B................C.......D
AAA...123 Street...City...<blank>
BBB...456 Street...City...<blank>
CCC...789 Street...City...<blank>

To:
A........B................C.......D
AAA...123 Street...City...1
AAA...123 Street...City...2
AAA...123 Street...City...3~
AAA...123 Street...City...150
BBB...456 Street...City...1
BBB...456 Street...City...2
BBB...456 Street...City...3~
BBB...456 Street...City...150
CCC...789 Street...City...1
CCC...789 Street...City...2
CCC...789 Street...City...3~
CCC...789 Street...City...150

I don't mean to be lazy and just ask for a macro code, but I'm a complete excel novice and just looking for a quick and easy fix rather than copy/pasting these entries manually.. edit: this file has a deadline for it, which is the reason for the quick fix not to just get out of learning how to do it

I've tried to make a macro consisting of inserting a row, copying a row then pasting it, but that only worked for the first row that I'm duplicating.

View 2 Replies View Related

Duplicating The Last Row Of Figures?

Jul 15, 2009

I am trying to make an inventory cover page - that shows data of separate products on different sheets with the following;

Product
Date
Previous Total
Amount Taken
New Total
and occasionally there is a Re-issue of stock to the previous total.

This is at the moment an historical record as anyone can see the usage across the dates for any particular product by looking at the sheet. Each time there is a change to the inventory it is recorded on a new row. But what I am trying to do is to copy the last row of data from each sheet to the cover page to show an overall inventory.

The part where I get stuck is making the selection of the last entered row of data [from each sheet] automatically updating the coverpage, when each sheet will get new data added frequently.

I thought about somehow making a duplicate of the last row and locking it in place and linking that to the coverpage - but I still do not have a clue on how to get it to automatically select the last row of the data.

View 7 Replies View Related

Counting - Without Duplicating

Apr 23, 2006

I have attached a spreadsheet here showing when people have had squash coaching.
What I would like to do is have a summary section at the bottom showing how many sessions each person has had throughout the month, at which club.
So where a club code such as the "C" "N" or "NO" is used I would like to insert the person's name in the summary section at the bottom.
If the same person's name occurs again I would like to simply (that's the hard bit for me!) use one cell to continue to count his number of sessions - rather than duplicating his name over and over in a list, as would be done by using COUNTIF.
I'm well lost on how this might be done but am sure that it must be possible?

View 9 Replies View Related

Excel 2013 :: Can Sort List A-Z Then Numbers At Bottom Of List

Jun 5, 2014

Does excel 2013 have a fence way to sort a list of alpha numeric numbers and alphabetize in this order A - Z and then 0 - 9.

Ex) Apple, Greg, Rob, Sand, 123, 126, 1000, 2001

View 2 Replies View Related

Adding List Of Numbers But Only Numbers With $ Infront

Aug 18, 2014

[URL] .... If you take a look at the picture, what I'm trying to do is add the list of Prices up so that I can differentiate the amount received in $ and in £.

I need to add up all the numbers that don't have a $ in front into the 1 cell, and all the ones with the $ in front into another cell.

FEdLkuj.jpg

View 2 Replies View Related

Script For Generate 6 Numbers Of These Numbers From The List?

Mar 15, 2014

Is there any script that I generate 6 numbers of these numbers from the list? so they do not recur after another example 7,12,13,19,26,33

View 2 Replies View Related

Some Entries Are Not Give The Exact Matching Pair But One Upper

Mar 14, 2009

I am having a problem in using lookup formula. Unfortunately for some entries it does not give the exact matching pair but one upper. I have attached the excel sheet. Please correct me where is the mistake. More about the sheet:

One column contains the alphabets from a certain language and second column contains corresponding unicodes. I want to search the unicode of a particulat alphabet using "lookup". Cell C4 is the key value. D4 uses lookup to get unicode value

View 2 Replies View Related

Pivot Table: Associate With Each Pair Of Code And Customer

Feb 1, 2007

I have a master worksheet that contains a lot of datas. Example below:

Invoice # Code Customer Money
1 1101 a 10
2 1102 a 20
3 1102 b 30
4 1103 c 40
5 1104 d 50
6 1101 a 60
7 1103 c 70

After creating a pivot table with code, customer as Row and money as Data, I get this:

Sum of money
Code Customer Total
1101 a 70
a Total 70
1102 a 20
a Total 20
b 30
b Total 30
1103 c 110
c Total 110
1104 d 50
d Total 50
Grand Total 150

Suppose now, I have another data named Rate that I need to associate with each pair of Code and Customer. See below:

Sum of money
Code Customer Total Rate..................

View 2 Replies View Related

Duplicating A Current Workbook For Others Use?

Apr 30, 2014

I am in need of duplicating a current workbook for others use such that when I update information in the original all those who have a copy of the duplicate will get the updates I have made. I have searched all over for linking workbooks together and I am familiar with linking cells and other small bits of information from other workbooks but in this case I want a duplicate workbook that is updateable from my source workbook.

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved