Vlookup To Compare Two Sets Of Data And Change The First Set Of Data If It Is Than The First

Oct 5, 2009

I have tried nested ifs and vlookup to compare two sets of data and change the first set of data if it is than the first. But leave it alone if it either is the same or does not exist in the new set of data. It sometimes seems to work but i find it is not consistant. It looks simple but i think i am missing something.

if column A has identifiers and column B has results then it should work if the identifiers in column C are found in column A and it looks to see if column B and D are the same, then change B if different but leave it if either it is the same or not there.

A
code1
B
36
C
code1
D 33

View 9 Replies


ADVERTISEMENT

Compare 2 Sets Of Data To Change The Values

Sep 5, 2007

I am a absolute newbie to VBA, I've got 2 timetables, they show deliveries for different countries. I need to make my code as DYNAMIC as I can. TableCustomer shows the customer's name, country and their opening times, Saturday - Friday, it uses 1s and 0s to determine if they are open or closed, 1 = open, 0 = closed, so the headers are: Customer Name, Country, Saturday, Sunday, Monday, Tuesday, Wednesday etc.

TableCompany shows the days of deliveries made to each country by the company, using 1s and 0s, 1 = Deliver, 0 = Don't deliver. The headers are Country, Saturday, Sunday, Monday, Tuesday, Wednesday etc. An example here is that, if in TableCustomer, the customer is opened(1) on a Saturday, but in TableCompany, the company does not deliver(0) to that country on the Saturday, change that 1 into a 0 in TableCustomer. But if the Customer is closed(0) on the Saturday, then don't change the value 0, because the company will not be able to deliver to them anyway, even if they can deliver to that country on that day.

View 3 Replies View Related

Compare 2 Sets Of Data Each With 2 Columns?

Nov 10, 2013

I have 2 sets of data/array/range. Each set consists of 2 columns with a large number of rows.

I want to compare my 2nd data to a master data. And list if anything is different in 2nd set of data from master set in column A than highlight the difference or copy the value to another place.

Also want to compare the 2nd column if column A was same and consider both column A and column B for that associated row different if column B is different.

The trouble for me comes in because the list is never alphabetical (sort doesnt work cause of funky naming) and never of the same size.

Attached is a photo of an example for maybe an clearer understanding. Also attached an example excel sheet I tried it within excel but cant seem to figure out how to look also for the 2nd column, so im trying to avoid the within excel route and go using vba ...

T3OCcxw.jpg
example.xlsx

I attempted it with a very basic code thats not working =/ just cant seem to figure how to code to get the desired result

VB:
Sub matchdiff()
Dim cell As Range
Dim found As Range

[Code].....

View 1 Replies View Related

Compare 2 Sets Of Data According To Start And End Date Column?

May 26, 2014

In my attachment I am trying to identify rows within Table 2 that do not fit in with Table 1. For example in Table 2, Row 16 has a Start Date of 17.11.2010 and an End Date of 13.11.2011 for ID number 151. This record has to be shown as "OK" because it fits into the date range of Row 103 of Table 1 i.e. Table 1 Row 103 has a Start Date of 01.01.2010 and an End Date of 28.02.2013 for ID 15. In other words the Start Date of Table 2 Row 16 is GE the Start date of Table 1 Row 103, and the End Date of Table 2 Row 16 is LE the End Date of the same Row 103 of Table 1, therefore this reocrd is OK.

Row 14 of Table 2 needs to be shown as "NOT OK" because it has a Start Date of 12.01.2013 and an End Date of 31.03.2013 for ID 15 and this doesn't fit any date range of any Row in Table 1 for ID 15.

View 2 Replies View Related

VLOOKUP In Large Data Sets Of More Than 16384 Rows

Mar 27, 2006

I have a problem with VLOOKUP looking in sorted lists of more than 16384 items.
Basically it fails at 16385th item

I have developed a VLOOKUP function that looks up in multiple tabs in
multiple files and returns a value. However I have discovered that it fails
at row 16385. As Excel copes to 64,000 rows I regard this as a bug. Has
anyone else encounteed this problem? is it just my machine, is there a
solution / bug fix?

If I use FALSE when the item to be found is beyond 16384 the function
returns the 16384th value this is a warning to other users who may not have
noticed as I did not initially.
--

View 12 Replies View Related

VLOOKUP / INDEX / MATCH Function: Match Data From 2 Independent Sets??

Oct 8, 2009

I am trying to match data from 2 independent sets, formatted slightly differently so not sure which function would work best for me. From the attached file, I am trying to match the date and time stamp (in cell A1) with that from the other data (in this example in cell E1) and return the data (from cell F1) to cell C1. So basically any date and time stamp before 04/03/09 04:00 will return a value of 44 (this value should appear, therefore in cells C1 - C30)

View 2 Replies View Related

Using VLookup To Compare 2 Columns Of Data

Oct 26, 2012

I'm having difficulties using vlookup to compare two columns of TEXT data. My goal is find out how many of items in the "Eligible Serial Numbers" list have been ordered for destruction. The items listed for destruction are listed in the "Serial Numbers (destroyed).

Whenever I put in a VLOOKUP, I get a serial number that doesn't make sense to me. For example, if I want to find out if "362351581" from the Eligible List appears on the destroyed list. What do you suggest?

Code:

Destroyed? (i.e. Vlookup formula in this column)
Eligible Serial Numbers
Serial Numbers (destroyed)
362351581
362351581

[Code]....

View 9 Replies View Related

Compare 2 Spreadsheets And Change Data

May 30, 2014

I have 2 spread sheets

One is just email addresses
a@a.com
b@b.com
c@c.com etc.

The other contains data and also these email addresses I need to compare the 2 and when a match is found change the email address in the data table to something else, say "tony".

View 6 Replies View Related

Compare Data In Two Sheets (change To Be Show In Sheet 1)

Nov 5, 2006

compare data from different worksheets

For clarity, I have placed the sample datasets at the following URL
[url]

Given: the datasets for sheet1 and 2 might not contain the same number of rows.

I am looking for new rows (it might be inserted in any position of the rows) in sheet1. The new rows will be highlighted in red color. For example:
[url]

View 9 Replies View Related

Excel 2003 :: Match Two Sets Of Data And Display Specific Data?

May 12, 2012

I have two separate worksheets:

I'm trying to find a formula that looks at Column A on both sheets (each client is allocated a unique number) and if they match enter in column D of the referral sheet the month they were seen but only if it is a 1st contact (appt type on column D of contact sheet)

Referral
A
B
C

[Code]....

way to do the calculation using Excel 2003

View 9 Replies View Related

Finding Matches Between Two Sets Of Data - Each Set Has Three Columns Of Data

Jul 13, 2013

I am working on large sets of data (more than 50,000 rows of data). I have two sets of data. Set 1 and Set 2 (master data) on the same worksheet. Both the sets of data have three columns each. I am using EXCEL 2007. I was able to accomplish step 1 below.. but I am totally lost with step 2 since i have an additional criteria for the "year".

I have attached the excel sheet as well. This is what I am trying to accomplish:

1) I want to find exact matches in set 1 and set 2 and highlight it or do something to show that a match was found. The challenge is the data in set 1 can occur anywhere in set 2.

2) Add to the complication .. my criteria for matching the year is different. If the Set 1 "year" is equal to or greater by 1 yr or greater by 2 yr when compared to Set 2 "year", I want to treat it as a "match".

For example, from the data attached:

Set 1 data in row 4 is: ATLANTIC ABSECON 2004
Set 2 data in row 3 is: ATLANTIC ABSECON 2003

I want to treat these two data as "MATCH" since ATLANTIC matches ATLANTIC, ABSECON matches ABSECON and according to one of my criteria for year, Set 1 "year" is greater by 1 yr than the Set 2 "year".

View 1 Replies View Related

How To Compare Two Sets Of Dates Against One Another In VBA

Jun 11, 2014

I am trying to figure out how to compare two sets of dates against one another in vba. The data is spread over eight columns. I need to be able to find the smallest date in the first four columns and then compare it to the smallest date in the other four columns, then go to the next smallest and so on.

View 4 Replies View Related

Combine To Sets Of Data?

Jul 8, 2014

I have two sets of data for students. One set contains all the students with certain test scores, taking up columns A to N. The other set contains about 80% of those same students with a different set of test scores. Students are sorted by ID numbers. How do I combine the second set into columns O to V so that student ID numbers match and it inputs the rest of the student data into the sheet.

I know there will be some blanks because not all students will be there but I need them to match up, even with the blanks.

View 2 Replies View Related

Matching Sets Of Data?

Jul 10, 2014

I created a macro that extracts two columns of numbers from one workbook and need to match them to another set of numbers in another workbook. For instance i have numbers like...

18314 907
18272 64
11005 907
11005 324

..Now i need to match these numbers up with the others to find the hyperlink associated with them.

View 5 Replies View Related

Match Up Data From Two Different Sets?

Nov 8, 2013

I'm attempting to create a mailing list for the company I work for, but the software that has the data record is very limiting. The two tables I received from the program are listed:

Customer
Number of Sales

name 1
#

name 2
#

name 3

I tried to illustrate that the address list has a different customer composition than the sales list; the address list has customers that the sales list doesn't have. This means I can't just sort alphabetically and drag the addresses over. My goal here is to create a datasheet that incorporates both the address and number of sales so that we can send the top 500 customers a mailing. How can I do this?

View 2 Replies View Related

3 Sets Of Data Into 1 Sheet

Apr 1, 2014

I have 3 seperate tabs of data that i want to put into a combined sheet, how would i do this, i assume it's just like a copy/paste exercise but not sure how to do this using VBA?

My tab names are;

FND Data
UL Data
Life data

I just need the entire range copying from each tab into the 'Combined' tab

View 5 Replies View Related

Delete The Whole Row In All Sets Of Data

Dec 13, 2009

In the attached workbook, I have identical sets of data in column A separated by an blank cells. I need a macro for user form that searches for an item indicated in the textbox of the form and then delete the whole row in all sets of data.

It is important to keep the blank cells between the sets constant, 4 blank cells between each set, except the first set that starts with 3 blank cells.

View 2 Replies View Related

Summing The Data From Two Sets?

Jan 21, 2010

I’m trying to get the total number of participants in two different sets, with selection criteria attached to both (I’ve attached an excel file, as the example with those scoring +ve highlighted in yellow). The first set A (b1:b15) I want to select all values above 5, and the second B (c1:c15) set above 10. There other provisor, is that the A and B are further split into two groups (one above and one below 20).

In summary, I need to count all the A>5, B>10 (And both have to be above 20 in column D), but not to double count the ones that have Both A>5 and B>10. I don’t want any duplicates to be counted, so summing the total of A and adding it to B won’t work. In essence it’s an attempt to use the A Union B function that you’d observe when using venn diagrams.

Is there a simple way/formula of doing this?

View 13 Replies View Related

Reconcile Two Sets Of Data

Dec 6, 2006

I manually reconcile two sets of data every month by sorting by PO# and then manually matching up the onse that are the same and then calculate if there is a variance in $ amount.

The 1st set of data is a list of invoice PO#'s and invoice $ amounts and the 2nd set of data is order PO#'s and order $ amounts. What I need to do is reconcile the orders to the invoices by PO#. It is very common to have a PO# on each list but have a different $ amount and I only need to know what the difference is between the order amount and the invoiced amount. I also need to know what is on the invoice list and not on the order list and vise versa....

View 10 Replies View Related

Comparing 2 Sets Of Data ...

Feb 23, 2009

I am wondering if it is better to do this in excel or access. I am pretty familiar with access...i know this would be easy to do if querying from one table and doing a relationship between identifier, but i'm not sure how to capture data from both tables. But basically this is what I want. I have 2 files, which have identifiers and share amounts...both files will have some like identifiers, some not alike...basically this is what I want to do: ....

View 9 Replies View Related

Comparing Two Sets Of Data

Aug 28, 2009

I'm trying to compare two sets of data on the same sheet. Each set has 4 columns...A - D and F - I. I would like to take the data from D and I (range 20 to 50) and compare them to see if any differences exist in the two columns. If there is something different I would like to bold and highlight the cells (A-D) in that row, and the same goes for the second set of data (F-I).

I'm trying to do this with macros so I can add it into my existing code.

View 9 Replies View Related

Summarizing Sets Of Data (sumif?)

Jul 8, 2009

Sheet1 contains a large set of data, including a date and a corresponding value.

Sheet2 (Summary) has a column called "Begin Date" and a column called "End Date". How can I use a formula to sum every piece of data that fits within the two dates?

View 5 Replies View Related

Comparing 2 Sets Of Data :: Zip Codes

Oct 28, 2009

I am trying to compare two sets of data.

I have a set of All zip codes in 10 counties in one worksheet:

ex:

Column 1 / Column 2
30303 / Fulton
30307 / Fulton
30310 / DeKalb
30234 / Cobb

But this sheet has about 300 zip codes

Then in a second worksheet I have dollars by zip

30303 / $10,000
30456 / $56,000

I'd like to make a third column in this sheet that fills in what county. Does anyone know how to search sheet one for the appropriate zip, then stick the word beside that zip into the column 3 secion of the dollars by zip code?

I'd rather not have to search every zip code in the dollars section one at a time. Not all the zip codes in the state are represented in the second sheet, so it's not quite as simple as just lining them up.

View 13 Replies View Related

How To Graph 2 Sets Of Data For Each Participant

Apr 3, 2013

Create one X-Y SCATTER graph (with Smooth Lines and Markers) with the Average Movement Time (MT) on the Y axis and the Index of Difficulty (ID) on the X axis for each group member during STATION 1: PAPER BASED VERSION OF FITTS' RECIPROCAL TAPPING TASK and STATION 4: PAPER BASED VERSION OF FITTS' RECIPROCAL TAPPING TASK: WEIGHTED

ID stands for index of difficulty, the graph is supposed to indicate that as the index of difficulty increases (3) movement time increases and as it decreases (2) movement time decreases.

Lab 8 Data Q 4 attempt.xlsx‎

View 5 Replies View Related

Lookup From Horizontal Sets Of Data?

Nov 9, 2011

I have horizontal records of data , datewise, if i need to find output for a particular date what should be formula, for instance for 1/21/2011 output is 135 nad for 1/15/2011 is 400. I need a formula wherein if i put the date it should throw the output of the same.

1/10/20111/11/20111/12/20111/13/20111/14/20111/15/20111002001501203004001/16/20111/17/20111/18/20111/19/20111/20/20111/21/20116075901051201351/22/20111/23/20111/24/20111/25/20111/26/20111/27/2011253545556575

View 3 Replies View Related

Sorting Multiple Sets Of Data

Aug 22, 2012

Create a macro or some other solution to sorting my data. Just clicking on Sort Ascending isn't good enough because it'll sort everything and remove the empty rows. However, I want the empty rows to stay there. The way that I've been doing this is manually. Basically, after the empty rows were inserted, I'd click on a cell in Column A and click on Sort Ascending, then I'd scroll down and click on the next set of data and click on Sort Ascending, then the next set and the next. I'd end up having to do this hundreds of times.

I've uploaded an example of what I'm talking about, I also labeled the tabs as "I want this" and "to look like this":

Example file.xls

View 5 Replies View Related

Comparing Two Similar Sets Of Data

Apr 30, 2014

I've got a pretty tough problem I need to solve with excel. So im comparing prices of products from 2 Different Sources, I need the best method of comparing these sets of data. Realistically I need both sets of data to compare and move automatically (or create duplicates elsewhere) to show the product ID, Price A and Price B.

Here's an example

Supplier A
Cheese Grater: 39.99
Golden Spoon: 129.99

Supplier B
Cheese Grater: 59.99
Golden Spoon: 89.99

These values will then combine to read

Supplier A Supplier B
Cheese Grater: 39.99 59.99
Golden Spoon: 59.99 89.99

Not sure if it will matter but both lists are not identical, all I want are the matches not the ones unique to different suppliers.

This comparison list is like 12,000 products long, I'll never be able to do it manually. This has stumped me for a while now I only seem to be able to find formulas which give TRUE / FALSE or Colour changes.

View 1 Replies View Related

Formatting Cells From Two Sets Of Data.

Jul 8, 2008

I have a few rather large spreadsheets full of addresses, but for simplicity I'll refer to two(Group A, Group B). I can go back and edit accordingly. Group A is a master list of users. After sending out a mass message, using Group A, certain users weren't able to receive the message for various reasons (address problems, spam filters, etc.)--thus Group B. All of the users of Group B are still in the Group A spreadsheet, and this is where my problem comes in.

I need to take all of the entries from Group B, find them in Group A and change their cell colors (along with a few following cells in the same row). I tried to record a macro to do this, but found that a more in depth solution was required. I tried to implement some VBA but my knowledge is, at best, limited.

Here's what I've done so far:
Before recording the macro I copied/pasted the addresses from Group B onto the bottom (a few cells down) of Group A.

I copied the first Group B address, started to record, and pasted the first address into the Find tool. After it was found, I changed the color of the needed cells, went back to the list of Group B cells and deleted the top entry. Next, I copied the second entry (the new first entry) and stopped recording.

When I pressed the shortcut key for the macro, it deleted all the cells correctly; it just didn't format Group A like I intended. I then opened up the VBA editor within excel and found this:

Sub Colorfill()
Range("A4559").Select
Selection.Copy
Cells.Find(What:="USERADDRESS", After:=ActiveCell, LookIn:=xlFormulas _
, LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, _
MatchCase:=False).Activate
Range("A2038:I2038").Select
With Selection.Interior
.ColorIndex = 43
.Pattern = xlSolid
End With
ActiveWindow.ScrollRow = 4349
ActiveWindow.SmallScroll Down:=186
ActiveWindow.LargeScroll Down:=-2
ActiveWindow.ScrollRow = 1508
ActiveWindow.SmallScroll Down:=198
ActiveWindow.ScrollRow = 4569
ActiveWindow.SmallScroll Down:=-27
Rows("4559:4559").Select
Selection.Delete Shift:=xlUp
End Sub

View 9 Replies View Related

Match Data Sets For Output

Aug 26, 2007

I am presently doing one of my work in excel manually. I m not expert user VBA. Yes, I do understand codes, but not very good at developing. I am attaching a file which has all the requirements in details. I think this will require hell lot of programming skill, which I dont posses.

View 7 Replies View Related

Find All Possible Combinations From Data Sets

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







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