Compare Two Columns / Summarize Results

Jul 17, 2012

I have Columns A and Column B. I want to find a way to choose two items from Column A. Ex Coats and Shoes and return the values from Column B,but only if they match.

it would look something like this:

Criteria 1 Criteria 2 Results
Shoes Coats New York
Texas

Column A Column B
Coats New York
Coats Texas
Shoes Washington
Shoes New York
Coats California
Shoes Ohio
Shoes Texas
Coats Texas

the Results would be dynamic, meaning there is no gaps in the results,I am only interested in the a concise list that summarizes.

View 8 Replies


ADVERTISEMENT

Compare 2 Different Columns Of Data - Find Unique Results

Mar 2, 2007

I would like to compare some keyword lists if possible.

I have a large list of Unique keywords in Col A (From A3),

This Column is called Keyword List A - Large"

I then have a keyword list in Column C (From Cell C3),,

This Column is called "Keyword List B - Small.

I then have a column called "Unique Keywords Found",, This is Col E,, with hopefully returned results being entered from cell E3 downwards.

What I would like to be able to do if possible is run a Macro that would compare all the unique words in ColA and C and return only the difference, (The Unique words not found in ColC as Col A is the "Master List")

If possible could a pop up box appear saying
===================
List A No Rows:xyz
List B No Rows: xyz
No of Uniques Found : xyz
Time Elapsed (sec): xyz
===================

I'm running windows XP and Excel 2007.

View 9 Replies View Related

Excel 2003 :: Compare Characters Between Two Columns And Output Results In Same Worksheet?

Feb 6, 2013

I have a worksheet with five columns (A, B, C, D and E)

The cells in Column B contain letters and/or numbers (without spaces) in no particular order.
The cells in Column C contain letters and/or numbers (without spaces) in no particular order.

I want to compare all characters in 1st Cell of Column B with all characters in 1st Cell of Column C, and display the matching characters in 1st Cell of Column D, and the character count of 1st Cell in Column D must be displayed in 1st Cell of Column E. note that multiple instances of the same character must not be treated as duplicates. When execution on 1st Row is finished then repeat procedure for Row 2, etc... Stop execution when first empty cell in Column B is located.

Example:

B1 = LJLM12
C1 = KY2MLK
B2 = ZCG4GM
C2 = X4GGGC
B3 = KTCBNG
C3 = GNBTBB

The script/code/formula must output the following:

D1 = LM2
E1 = 3
D2 = CG4G
E2 = 4
D3 = TBNG
E3 = 4

I am using Excel 2003. Y

View 2 Replies View Related

Summarize Results Onto 1 Row Per Person

Feb 2, 2009

I am trying to write a series of macros to automate the creation and population of a summary tab for transmission of patient results to our Laboratory computer system and have hit a bit of a brick wall. One of our analysers creates an Excel workbook for each analytical run with each patient sample analysed on the run assigned to a separate worksheet. These worksheets contain the patient ID (lab number) in cell C1 with results for the different analytes in cells F7 to F56. We need to be able to present this data with each patient having a row to themselves (i.e. Patient ID for patient 1 being in cell A2, test result 1 in cell B2, test result 2 in cell C2 etc, then patient 2 taking row 3 etc). Row one is populated with the field Sample name in cell A1 and the cross-referenced test IDs running across the rest of the row. As analytical runs can contain varying numbers of samples we need the Summary tab to be able to cope with a indeterminate number of worksheets.

View 2 Replies View Related

Compare Data-set With List & Summarize Matches

Jul 16, 2009

1) Background Info

We are trying to summarise some data that has been exported from an ancient database into a poorly delimited csv file. My colleague has imported the csv file into Excel ( attached), and we are trying to work out what to do next.

The dataset contains approx 300 records - each record being called a "sample" and having a unique sample number. NB: I have had to attach a cut-down version with only 3 samples, due to file-size - but it will hopefully give an idea.

Each sample contains 2 types of information that we are interested in (and a lot of irrelevant data besides). The relevant bits are:
- predicted occurrence of various species (given as a percentage for each species)
- observed occurrence of various species (given as positive/negative for each species, where positive is indicated by an asterisk)

2) What We're Trying To Do

We are trying to compare this dataset with a master-list of 80 species names. For each species on the master-list, we want to:
a) check whether it has a "predicted occurrence" value in each of the 300 samples (and if so, record the value in a summary sheet)
b) check whether it was observed in each of the 300 samples (and if so, record this in the summary sheet)

3) The Problem

Unfortunately, the dataset has imported into Excel as a gigantic list: 48000 rows (including loads of blanks) and only 3 columns across. To find the relevant data, it's necessary to:

a) open the attached workbook, and go to the worksheet named "Data"

b) Scroll through the rows, looking for the string "RIVPA" in column A. This tells you where each new sample begins. (The sampleID is stored in the same row as this, in column C. It is mixed up with a load of text, which we will need to separate out at some point, but that's a secondary consideration at the moment.)

c) Scroll down further until you find the text string "Predi" in column A. This indicates the beginning of the data we're interested in, for each sample (i.e. for sample 1, I'm talking about row 58). Count down a further 2 blank rows, and then you find the data itself:
- Column A contains the observed occurrence (a positive result is indicated by an asterisk)
- Column B contains the predicted occurrence
- Column C contains the species name

My colleague was trying to build a summary table, in the worksheet named "Summary". He was using the LOOKUP function to extract the data, but because there are so many samples, it's beyond unwieldy. He asked me if I could write a macro do do the job, and this is where I'm stuck.

How could I set up a macro that can identify where one sample starts and finishes, and where the data is within each sample? What is the most sensible shape for such a macro? If I could get the overarching logic worked out, I could make a start on writing the individual bits of code, but at present I just can't figure out how to begin.

To make things more difficult, the samples are not all the same length, and do not all contain the same list of species as each other. (However, at least there should be no species in the samples that are not in the master-list). The first sample begins on row 5, the second sample begins on row 173, the third on row 340, and so on.

View 8 Replies View Related

Pivot Table From Database To Summarize Data In Columns

Sep 9, 2008

I have attached a spreadsheet of an example of a database with a pivot table and a desired report
Can anyone give me a pivot tabe from my database that looks like my desired report.

I am willing to seperate the database into two seperate databases with different transaction types if necessary.

View 6 Replies View Related

Summarize Columns, Based On Unique Value, Into 1 Sheet With Cell Addresses

May 25, 2008

I have the following code always throwing this error message: "subscript out of range". When i run the macro with worksheets that only have 10 rows each, it's running fine. I suspect some issues on the line: a = Range("a1"). CurrentRegion.Resize(, 3) - the debug always throws the error before entering the loop. This macro is supposed to find the lowest price among 3 spreadsheets by matching the "Code" column and sending the final result into a new spreadsheet. But since im trying to run the macro on spreadsheets holding over 6000 lines each, this error is appearing.

Sub kTest_v2()
Dim a, w(), i As Long, z, dic As Object
Dim MySheets, ws As Worksheet, MinPrice
MySheets = Array("Sheet1", "Sheet2", "Sheet3") 'change to suit
Set dic = CreateObject("scripting.dictionary")
dic.comparemode = vbTextCompare
For Each ws In Sheets(MySheets)
With ws
.Activate
'assume Col A Country, Col B Code and Col C Price
a = Range("a1").CurrentRegion.Resize(, 3)
End With
For i = 2 To UBound(a, 1) 'assume column heading. if not replace 2 with 1
If Not IsEmpty(a(i, 1)) Then
If Not dic.exists(a(i, 2)) Then
Redim w(1 To 4): w(1) = a(i, 1) 'Country
w(2) = a(i, 2) 'Code
w(3) = a(i, 3) 'Price
w(4) = Cells(i, 1).Address(external:=True) 'cell address
dic.Add a(i, 2), w
Else.............................

View 7 Replies View Related

Summarize Data From Columns In Multiple Sheets To A Single Datasheet Of Rows

Jun 19, 2014

I need a macro that will take hours by day (columns) by service (rows) per client (sheet) and summarize the data into one database of rows containing client, service, date, and hours. The "Summary of Charges" should only include service hours > zero. I am attaching a sample file. I have little to no experience with vba so I don't even know where to begin. I can copy code.

View 4 Replies View Related

Compare Two Worksheets And Paste Results In Third One

Jun 3, 2014

I would like to make a macro that compares two worksheets, highlights the differences, and paste the whole row in a third worksheet if a difference is found.

I managed to highlight the difference between two sheets using the following code. But how to modify it to paste the differences in a third sheet...

Code:
Sub Compare()
CompareWorksheets Worksheets("Sheet1"), Worksheets("Sheet2")
End Sub

Code:
Sub CompareWorksheets(ws1 As Worksheet, ws2 As Worksheet)
Dim diffB As Boolean
Dim r As Long, c As Integer
Dim lr1 As Long, lr2 As Long, lc1 As Integer, lc2 As Integer
Dim maxR As Long, maxC As Integer, cf1 As String, cf2 As String

[Code] ......

View 4 Replies View Related

Compare Rows Of Two Tables And Put Results In A Third

Feb 21, 2007

I have two tables with "X" and <Blank> data. The tables share the same column headers. I want to compare the rows of each table and if the rows contain an "X" in the same column then it puts an "X" in the third table. I have attached a sample file with my expected results on the third worksheet. I have created named ranges if that helps the formula writing.

Name1 =Sheet1!$A$2:$A$5
Name2 =Sheet2!$A$2:$A$5
Produce =Sheet1!$B$1:$E$1
Group1 =Sheet1!$B$2:$E$5
Group2 =Sheet2!$B$2:$E$5

Sumproduct seems to do the trick if I turn the "X" into "1" and <blank> into "0". If there is a match the value is greater than "1".

=SUMPRODUCT(Sheet1!$B$2:$E$2,Sheet2!$B$2:$E$2)

I prefer to use "X" though if I can. I would like to automate the formula instead of manually adjusting the ranges for every cell.

View 6 Replies View Related

How To Combine Multiple Columns Into Long List Of Results In 2 Final Columns

Oct 15, 2013

I have a need to combine multiple columns into a long list of results in 2 final columns. Here is my example...

Current layout with varying number of data points per row...

ColumnA | ColumnB | ColumnC | ColumnD | etc...
example1 | Test1 | Test2 | Test3 | Test4
example2 | Option1 | Option2
example3 | Number1 | Number2 | Number3 | Number4 | Number5

Desired Result

ColumnA | ColumnB
example1 | Test1
example1 | Test2
example1 | Test3
example1 | Test4
example2 | Option1
example2 | Option2
example3 | Number1
example3 | Number2

and so on and on and on until all rows have been filled in down the file...

Is this possible?

View 4 Replies View Related

Excel 2013 :: Set One Columns Text To Color Based On Another Columns Results?

Apr 9, 2014

how to set one entire columns text to two different colors based on another columns values. So for example I have column A and B. Column A has two values called Internal and External. Column B is a title table so the entire column is just titles. We'll say it goes for 20 rows if you need a row count. What I am looking to do change the text in Column B to Red for External and Blue for Internal. I tried the conditional formatting and I just can't seem to find the right option.

I'm using Win 8.1, Office 2013.

View 4 Replies View Related

Counting Formula (compare Values In 2 Separate Columns To See How Many Times The Same Value Appears In Both Columns)

Oct 13, 2008

I'm trying to compare values in 2 separate columns to see how many times the same value appears in both columns. Ideally I would be able to insert a range function to compare the values in the column "ID 1" against the values in column "ID 2" and return the count of times that a value appears in both columns. For example 2122, 1112 and 1718 appear in both columns and I would like the formula to return a count of 3.

ID 1ID 2
12342122
45671112
89101718
11122678
13144544
15162324
17189987
19201215
21221928
1976
2576
2345
4678

In my actual project I'm comparing 2 columns in the same worksheet. The column are column B with data in cells B2:B10266 against column C with data in cells C2:C18560.

View 4 Replies View Related

Macro To Compare Columns A & B And Dispaly Any Duplicates In Columns C & D

Feb 21, 2009

what I'm after is a macro to check the contents of Column 'A' against column 'B' and display any duplicates in Columns 'C' & 'D'.

N.B. The headings of Columns C & D are :-

C = Value Found in Column A

D = Value Found in Column B

Any duplicate entries logged in columns C & D should be listed in C2,C3,C4....C20 and D2,D3,D4......D20 etc (in effect creating two new lists)

View 5 Replies View Related

Compare Different Columns Based On One Columns

Jul 30, 2014

2014-07-30_16-52-23.png

Fist I want to compare ColB=ColH, if TRUE, compare colA=colG, if TRUE, again compare colC=colI, IF all this conditions true, then give (colD-colJ) on colL.

all the unmatched rows in 2 tables to populate with different for each table

View 4 Replies View Related

Count Two Columns For Results

Oct 13, 2009

I'm looking for a formula to allow two different columns to count for a result.
The formula i use now is this. =COUNTIF(I3:I34,"W")+COUNTIF(I3:I34,"Ws")

It counts "W" if it's a win, "Ws" for wins in overtime, "L" for a loss and so forth and so on. I'm now trying to use, in a different column, H and A for home and away games. And i would like to have it to where it can keep a home and away record next to the main record. And if this works i'll do a district record as well.

View 2 Replies View Related

How To Filter For Results In TWO Columns

Jan 17, 2013

I have spreadsheet that tracks flights between cities. The spreadsheet has become quite large, so I need a few simple tools or tricks to search it efficiently.

To keep things simple: the spreadsheet has "Departs" and "Arrives" columns, tracking the cities on either end of a flight. (See below)

FlightDepartsTimeArrivesTime
1001New York2:00Boston3:00
1002New York2:30Philadelphia3:15
1003Boston2:45Philadelphia4:00
1004Washington DC3:00New York4:00
1005Philadelphia3:30Boston5:00
1006Boston4:00Washington DC5:30

If my boss says, "give me a list of all flights going through New York," I have to manually filter for "New York" in the "Departs" column, copy that to another spreadsheet, then filter again for "New York" in the "Arrives" column, and manually glue the results together. In my little toy example, that's not a big deal, but when there are up to a couple hundred flights (and just as many cities), this gets tedious and error-prone.

Is there some handy way of filtering for "New York" in both the "Departs" and "Arrives" columns? Or some other way of achieving the same thing? ("Find All" isn't useful unless I can export the full rows into a spreadsheet.)

View 6 Replies View Related

CountIF Combine The Results From Two Columns

Feb 15, 2009

I have two columns A and B. Column A contains 'Machine Nr' and column B contain 'Week Nr'. In cell C1 i want to write a function so that it counts the number of weeks in Column B where week number is 4 AND the machine nr is 1 in column nr A.

Column A Column B
Machine Nr Week Nr
1 4
1 4
2 4
2 4
3 4
3 4

View 10 Replies View Related

Compare Two Set Of Columns?

Jul 26, 2013

I need to compare add Column A&B in sheet1 and column A&B in sheet two and compare the two result for the difference(like vlookup).

formula to merge two cells in two sheet and compare.

View 3 Replies View Related

How To Compare 2 Columns

Apr 18, 2007

i've check the other threads on how to compare two columns but for some reason it is still not working for me.

I have 2 columns. Column A is the master column and column B is the comparing list. If the company that is listed in Column B (Anywhere in column B) matches exactly with the company name in column A, I would like it to say "check" in column C.

View 9 Replies View Related

Compare Columns

Jan 23, 2009

I have two diffrent sets of columns of data on a spreadsheet one column set is A,B the other is D,E I want a formula or makro that will check columns A,B and compare it to D,E and if it finds a match will paste it in G,H is that possible and how would I do this?

View 9 Replies View Related

Compare Value In Columns

Dec 12, 2006

I have two worksheets but have a same column named "Admin No.". I will need to compare the 2 "admin no." column.

Example:

Worksheet 1
Admin No.Name
1111Ali
2222James
3333Janet
4444Lihua
5555Ting Ting
6666Jasmine

Worksheet 2

Admin No.Name
1100Alvin
2200John
3300Mavis
4411Haoyi
5555Ting Ting
6677Jason

I will ike to compare both "admin no." column and when worksheet 1 5555 can be find in worksheet 2, it will return True. 6666 cannot find in worksheet 2 then it will return false.

View 4 Replies View Related

Sort Two Columns Of Function Results Using Result Value?

Feb 4, 2013

How can I sort two columns of function results using the result value? Excel is trying to sort on the function in the cells rather than the results themselves.

View 9 Replies View Related

Comparing The Rows In Different Columns And Displaying The Results?

Jul 18, 2013

I have two groups of lottery results. The first group has the last year results of 200 rows, and the second group displays this year results of 100 rows. I want to start comparing the first row of the second group (green group) with all the rows of the first group( blue group)

View 12 Replies View Related

Searching Data In Two Columns And Combine Results In One Row?

Jan 13, 2012

I have two sets of data, and one colum in each set is titled ID numbers. I would like to search both those colums and combine the matching ID numbers in one row?

View 2 Replies View Related

Calculate Ranking Based On Results Of 2 Columns

Nov 4, 2008

I have a speadsheet that has a table containing scores of audits, in the last 3 columns of the tabe I have the two totals (columns AC and AD)

In Column "AF" I wish to show where they will rank based on the results, first I need to rank via the result of column AD and if that is the same as another result use column AC to determine where they rank.

View 9 Replies View Related

Matching 2 Columns, And Showing Results In 3rd Column

Jun 20, 2006

Here you can see 4 columns (C, D, E, F)

I would like to compare Column C, D, E, F and If column C = Column E., i would like to show the result from column F to Column d.,

For example:
For column E >> The result in column F is: Port Blair.,

I would like that to be in Column D after a match.

Is there any forumula which will do this.,

View 5 Replies View Related

How To Compare Columns To Get Minimum Value

Apr 14, 2014

I have numeric value in columns B, D, F, H.

I want to compare the values of these four cells in each row and update columns M (with the minimum value) and N (with the column of minimum value).

How can I manage this comparison?

View 2 Replies View Related

Compare Two Columns And Result In The Third?

Apr 30, 2014

I need to compare two columns A and B with a result in column E. BUT I don't want the result to be added together. ( since it's receipt numbers ) SO my formula is incorrect I need a formula that will show the receipt numbers next to each other divided by a comma or forward slash...

View 7 Replies View Related

Compare Columns Of Data

Jan 26, 2009

I have column A with 228 rows and column D with 314 rows. Both columns have the same data except that D has different data. I would like to line up everything that is the same in A and D and everything else in column D that is not the same move to G. Is there a quick way to do this?

View 5 Replies View Related







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