# Find Matching Combinations In Any Order

Dec 24, 2006
How do I create a formula that will count the occurrences on each row within the range F7:H106 where the single digit in FJ6 is paired with the 2 digit value in FF7. Match in any order.

example

If FF7=00 and FJ6=1 (Match 00 with 1 in any order)

f7:h7=010, match, count 1

f8:H8=059, no match

f9:h9=100, match, count 1

f10:h10=001, match, count 1

f11:h11=007, no match

Result=count=3

View 9 Replies
ADVERTISEMENT
Mar 9, 2012

I have an excel file, with roughly 1000 rows and about 6 columns per sheet of data, and about 10 sheets. I need to find combinations of numbers (in a single row) that match exactly with any of the other sheets.

For example, if Sheet 1 row 345 has the values (5,8,10,100,35,49), I want to find any other rows in any other sheets (including the sheet with row 345 values) that match exactly (5,8,10,100,35,49) and somehow identify a matching pair (possibly highlighting the cells).

I want to search every row in every sheet with all the rows/sheets in the excel file.

We could also probably add up all the values in a row into a 7th column, and find any of those #'s that match throughout the project (only in the 7th column), and I can go through and manually look for combinations myself.

View 1 Replies
View Related
Feb 11, 2009

I need to find possible combinations for the following example:

a*x + b*y + c*z = t

p = 10

Where

a = 0

b = 5

c = 10

t = 30

x + y + z has to = p

a, b, c, t, and p would be variables that I would specify. The numbers above are just examples. What I would need to see as output would be:

7a, 0b, 3c

4a, 6b, 0c

5a, 4b, 1c

etc...

View 8 Replies
View Related
Feb 3, 2014

I have a simple list of names with associated numerical values.

I would like to create a formula that will produce a series of all possible series of 8 of those names whose combined numerical values are at or below a certain threshold (or between two thresholds, if that's easy). Bonus points if the total combined value for each group is easily shown, but that'd just be gravy.

View 9 Replies
View Related
Feb 19, 2010

I have so many part codes in column A with their Group in Column B.I want to arrange in ascending orders only those part codes which have almost matching in Column A with other part codes with different group.Please see the attached file and expected result.

View 4 Replies
View Related
Jun 9, 2013

I have a spreadsheet that contains two input tables: Parallel and Perpendicular. Next, the user can select a group (from a drop down) which a certain entry belongs to. Now what I want is a "summary" of these entries in a table that has no blank rows and combines both Parallel and Perpendicular entries by the Group. There is no fixed number of inputs for any one group i-e the solution has to be dynamic.

Attached is a file illustrating the inputs and the required output. I would prefer a formula based approach but not against VBA based suggestions either.

Sample_file_summary.xlsx

Also posted at: [URL] ....

View 2 Replies
View Related
Jun 25, 2014

I have the following Data:

Full Drum

247

Full Drum

247

Full Drum

261

Full Drum

261

[code]....

I need to know how to find the best combination of combining these drums to get the highest average from each combination. Each combo will have 3 drums except for one which will have two and a half.

View 2 Replies
View Related
Jan 29, 2008

i found this vb code the other day on this forum from a post made way back in 2005 i think it was. I've found it really useful for what i wanted to do, but i wonder if it can be expanded or changed to allow for more sets of imformation.

This is the Code, it finds all possible combinations from 3 sets of 3 results.

Option Explicit ...

View 8 Replies
View Related
Apr 28, 2008

I have another challenging solve for a VBA macro. So here it goes, as I have become frustrated trying to make an array formula with no joy. On my sample worksheet provided below this is what I am trying to accomplish:

(Solution cells) B4:I4 looks to the (Combination cells) M5:R10 for a match

If a match is present then cell J4 gives a "win" ,

If no match then cell J4 gives a " lose ".

Next if a win is present in cell J4, then cell K4 looks for when the draw number that matches occurred on from cells A4:A10, then subtracts the two(e.g. solutions cells from combination cells) to give the actual " # of draws to a win ". If no win is present in cell J4, then the default is zero for cell K4

The formula would be copied down thru cells J4:K12

Please refer to sample worksheet attached so that you can understand more clearly of just what I'm trying to do.

View 8 Replies
View Related
Dec 15, 2008

I have 25 random numbers and I would like to get a possible 5 digit combinations of these numbers. Can anybody help me with the possible formula?

View 9 Replies
View Related
Jun 17, 2008

The aim is to find those combinations of variable values which generate highest total gain. I attached the spreadsheet which shows the variables (A through K) and a Gain column. I created 5 additional tabs which show all possible 2,3,4 and 5-member combinations of the variables. These tabs are like coordinates of which variable combinations should be examined. As an example I used the first combination from the second tab = A and B. If you look at these two columns on the EXAMPLE CALCULATION tab you will see 7,7 in the Number combination which is the first number pair for these two variables. The headings of the red and the yellow columns calculate the total count for this number pair and the total gain. These were recorded on a separate EXAMPLE RESULTS tab along with some other pairs which appear afterwards (these were recorded only from the first 39 rows of the AB data). I need a macro which will cycle through each variable pair (only using the combinations from the tab 2 for now, annd later from 3,4 and 5 tabs) collecting statistics for each unique number combination it encounters (printing to a separate sheet one after one), such as shown on the EXAMPLE RESULTS.

View 9 Replies
View Related
Jun 30, 2008

What I am looking for is to select between 7 and 15 numbers in total, I want all the possible 6 digit combinations for this.

EG: if I choose 2,9,11,13,15,17&26, it would look something like this

2,9,11,13,15,17

2,9,11,13,15,26

9,11,13,15,17,26

And so on.

If I chose more numbers (10) 1,2,3,4,3,6,7,8,9,10 it would start something like this

1,2,3,4,5,6

1,2,3,4,5,7

1,2,3,4,5,8

1,2,3,4,5,9

1,2,3,4,5,10

And so on.

Please remenber I would like to be able to secelt between 7 and 15 number and be given all the possible combinations.

I would like it to be in one sheet but if that can not be done on as many as it takes.

It would be good if I could just type the required number into A1,B1,C1 and so on and they just gave the combinations required.

View 9 Replies
View Related
Jan 14, 2014

I have a sheet that lists all of the suppliers that we use (A2:A10). I have code that pulls the total number of reject by month for each supplier (C2:C10). What I would like is a formula that takes those values for the supplier and places them next to each other in columns E (see E2:E6) and does the same with the total reject values next to the applicable supplier (see F2:F6) without all of the zeros.

I think it is some kind of index and match function but cannot figure it out. I have attached an example of what I am trying to achieve.

Also, if at all possible, I would like to know if there is a way to auto populate a chart with those values and not the blanks that are generated (row 7 down in my example) so that my chart does not contain a bunch of blank space.

View 6 Replies
View Related
Jun 3, 2014

I have attached an example. If I have a set of numbers such as the one attached, is it possible to create a formula that will show me all the combinations of numbers that add up to 55.52? In the attached I have highlighted in different colours all the number combinations that add up to 55.52. The numbers highlighted in blue appear within more then one combination. Is there a formula that can do this for me, instead of randomly adding numbers hoping they add up to 55.52.

View 1 Replies
View Related
Jun 4, 2014

I have attached an example. If I have a set of numbers such as the one attached, is it possible to create a formula that will show me all the combinations of numbers that add up to 55.52? In the attached I have highlighted in different colours all the number combinations that add up to 55.52. The numbers highlighted in blue appear within more then one combination. Is there a formula that can do this for me, instead of randomly adding numbers hoping they add up to 55.52.

examples.xlsxâ€Ž

View 1 Replies
View Related
Aug 2, 2014

I have been playing around with some data and can't seem to get it the way I want it. I have played around with Pivot tables and grouping but I can't seem to figure out how to accomplish what I need in Excel. To better explain I have attached some test data of what I am trying to accomplish.

View 14 Replies
View Related
Aug 9, 2013

I'm looking to use the Find function in order to search through a protected worksheet. Currently I can use it to search, however, I am unable to click on the results to bring me to each instant.

View 2 Replies
View Related
Jul 20, 2014

I use this formula, but it only works if I provide the first name on the list, otherwise I get 0 in all rows, instead of the unique values in alphabetical order.

Code:

={IFERROR(INDEX($A$2:$A$200;MATCH(TRUE;COUNTIF($A$2:$A$200;"

View 8 Replies
View Related
Oct 8, 2008

I’m getting data from query. My data has fields: Item No, Customer ID & Sales rep.

I need to find out for each Item number which customer put order and who was the sales rep. (Excel 2002). see file attached.

View 4 Replies
View Related
Feb 9, 2006

Col cCol dFormula

Lease TermCompany #6023%

3637%

4843%

6052%

12620%

247FALSE

368FALSE

48105%

609FALSE

Residual Table

Company #

127

438

569

10

Col b

Lease TermResidual %

1210%20%9%

245%9%6%

364%7%3%

483%5%2%

602%3%1% ......

View 10 Replies
View Related
Jun 2, 2006

I have a very large spreadsheet where i have orders, product and line status listed. I neeed to find the line staus of each product in production against the order. I'm using an array sumif formula but since the spreadsheet reachs 10000 rows of information I dosn't alway calculate correctly.

ORDERPRODUCTSTATUS

ABCDAPPLEPICKED

ABCDORANGEON HOLD

ABCDPEACHSHORT

ABCDYAMSSTAGED

EFGHAPPLEPICKED

EFGHORANGEON HOLD

EFGHPEACHSHORT

EFGHYAMSSTAGED

Required Result

Order

ABCDAPPLEORANGEPEACHYAMS

PICKEDON HOLDSHORTSTAGED

View 5 Replies
View Related
Apr 10, 2014

I have a list for example...

Ian

Andy

John

David

Ian

Andy

John

David

Max

I want to search or filter the list and find the only non matched record in the list and put this in another sheet ie max as this is the only unique name in the list, all the others are matched. Everything I have tried eg filter for unique records returns ian andy john david max, which is not what I want.

View 4 Replies
View Related
Apr 19, 2014

I have a Meeting Place and Cities Table(too large).An example attached as a file and explained waht is wanted.

View 2 Replies
View Related
Oct 2, 2008

=MID(M11,FIND($V$6,M11),LEN($V$6))

I use the formula above to return the the matching word in v6, from text within m11. If theres is no match it returns #value. is it possible when theres no match to return "Not Match" in the cell instead

View 2 Replies
View Related
May 6, 2013

See the attached workbook.

Alright: Sheet2 is a list of lines that have a parallel match, sometimes more than one. This example has 3 lines with slope 0.18 and I've added a few extra at the bottom for the sake of the example.

Worksheet Intersect is a working page where in the Bordered Box, highlighted in Green is full of parallel lines from Sheet 2. Sometimes there's none so I have a column to the right that says true if the line is on sheet2 and false if not. There's a helper column to the right to count up the trues and false.

I need to have laid out below, all the matches on Sheet2 to the green highlighted lines but not the original line that made the True. There could be lots of them, there could be one, this example has two for the slope of 0.18 and one for all the rest.

How do I write formulas to pull the matching slopes (column A) and y-intercepts (column B) from sheet 2, if there's an unknown amount and then list them on the intersect page?

The results will look something like:

True 1...............True 2...............True 3..............True 4................True 5

.36........2.00.......18.......24.01.....-0.32.....3.00....1.04......4.00 .......0.83.......5.00

..........................18.......21.32

View 12 Replies
View Related
Jun 11, 2009

I want to loop through ID Column and find the matching number in Record No.column, and hightlight the entire row when match is found. The code I am running can only work for one cell at a time, but I want to run one time.

View 11 Replies
View Related
Feb 14, 2010

how to reference the drang (named range) and the cell propertly as i keep getting an error.

Everything in the below code works except the parts below in blue

details:

I have in column X lots of names and in column Y (dynamic column

anges as the users chooses them as per the code) and I want to loop through all names in 'X' and if there are multiple of the same names then for the corresponding 'Y' row entry of each be checked and if they are equal (same $ value) then for one of them of cells in the Y column to be cleared.

Basically if the same name appears more than once it will most likley have the same $ value and if i do a calculation on the $'s it will be 2,3,10 times the amount it should be, hence the need for this .

As per the below code I am trying to use 2 for Each loops though I keep getting an error when trying to reference the drng range which has the values in them..

View 12 Replies
View Related
Feb 21, 2010

I have a total of six columns divided in to 3 columns. Each column has a number in it. I need a formula to tell me which number from the 2nd 3 columns match the number or numbers from the 1st 3 columns.

EX.

123 367 ..... the #3 is a match. the number 3 is in the 1st position. I need a column to relay this information

View 7 Replies
View Related
Oct 14, 2011

I have two worksheets each of which includes a left column of unique email addresses (at least, unique within each lsheet)

The data on each sheet is structured identically. What I want is to generate a list of records that appear on both sheets.

View 2 Replies
View Related
Sep 9, 2013

i have a worksheet that is about 100rows x 100columns.

i would like to create some code to find a certain record. for example..

a1 a2 a3 a4

the record might be " tony tony alex tony"

basically, this group of cells could be any where in the group and i need some code to search the worksheet and then outline it. i just want to be able to find a certain block of cells and outline it.

View 2 Replies
View Related