#1   Report Post  
Connie
 
Posts: n/a
Default Lookup/if statement?

I have 2 spreadsheets with data from 2 systems.

What I need is to take specific data from sheet 1 and match it to the
corresponding line in sheet 2. The problem comes in that each sheet only has
a unique entry if I search based on a combination of 4 columns (item #, date,
location and quantity).

For any one of these search items there will multiple entries, but for the
combination of all 4 there should be one unique entry.

How can I accomplish this to compare the two spreadsheets?
  #2   Report Post  
Paul
 
Posts: n/a
Default

Excel has a series of Database functions, but to be honest they are hard for
me to use. I have done what you are looking by Concatenating the cells
thereby creating the unique data you are looking for. You can create a new
column with the concatenated cells

+Concatenate (item #,"_", date,"_",location,"_", quantity)

You can then create a lookup using vlookup to find the unique value that you
are seeking.

Another option is a pivot table. Great tool for this, but a bit hard to
learn.



"Connie" wrote:

I have 2 spreadsheets with data from 2 systems.

What I need is to take specific data from sheet 1 and match it to the
corresponding line in sheet 2. The problem comes in that each sheet only has
a unique entry if I search based on a combination of 4 columns (item #, date,
location and quantity).

For any one of these search items there will multiple entries, but for the
combination of all 4 there should be one unique entry.

How can I accomplish this to compare the two spreadsheets?

  #3   Report Post  
CLR
 
Posts: n/a
Default

CONCATENATION is the key......
Create a new helper column (A)on your Sheet2 that concatenates the four
columns together, with a formula like =B2&"_"&C2&"_"&D2&"_"&E2

Then your VLOOKUP formula on sheet1 might look like
=VLOOKUP(B2&"_"&C2&"_"&D2&"_"&E2,Sheet2!A:A,1,fals e)

Change the cells to fit your data........

Vaya con Dios,
Chuck, CABGx3


"Connie" wrote:

I have 2 spreadsheets with data from 2 systems.

What I need is to take specific data from sheet 1 and match it to the
corresponding line in sheet 2. The problem comes in that each sheet only has
a unique entry if I search based on a combination of 4 columns (item #, date,
location and quantity).

For any one of these search items there will multiple entries, but for the
combination of all 4 there should be one unique entry.

How can I accomplish this to compare the two spreadsheets?

  #4   Report Post  
Junior Member
 
Posts: 3
Default

Quote:
Originally Posted by Connie
I have 2 spreadsheets with data from 2 systems.

What I need is to take specific data from sheet 1 and match it to the
corresponding line in sheet 2. The problem comes in that each sheet only has
a unique entry if I search based on a combination of 4 columns (item #, date,
location and quantity).

For any one of these search items there will multiple entries, but for the
combination of all 4 there should be one unique entry.

How can I accomplish this to compare the two spreadsheets?
Hi:
Are you allowed to modify the spreadsheets to include a new column that would hold the unique key for each?

Laura Sallwasser
  #5   Report Post  
Dave Peterson
 
Posts: n/a
Default

Another option:

=index(othersheet!$e$1:$e$10,
match(1,(a2=othersheet!$a$1:$a$100)*(b2=othersheet !$b$1:$b$100)
*(c2=othersheet!$c$1:$c$100)*(d2=othersheet!$d$1:$ d$100),0))



Connie wrote:

I have 2 spreadsheets with data from 2 systems.

What I need is to take specific data from sheet 1 and match it to the
corresponding line in sheet 2. The problem comes in that each sheet only has
a unique entry if I search based on a combination of 4 columns (item #, date,
location and quantity).

For any one of these search items there will multiple entries, but for the
combination of all 4 there should be one unique entry.

How can I accomplish this to compare the two spreadsheets?


--

Dave Peterson


  #6   Report Post  
Dave Peterson
 
Posts: n/a
Default

ps.

I left off this instruction...

This is an array formula. Hit ctrl-shift-enter instead of enter. If you do it
correctly, excel will wrap curly brackets {} around your formula. (don't type
them yourself.)



Connie wrote:

I have 2 spreadsheets with data from 2 systems.

What I need is to take specific data from sheet 1 and match it to the
corresponding line in sheet 2. The problem comes in that each sheet only has
a unique entry if I search based on a combination of 4 columns (item #, date,
location and quantity).

For any one of these search items there will multiple entries, but for the
combination of all 4 there should be one unique entry.

How can I accomplish this to compare the two spreadsheets?


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Do I need a sumif or sum of a vlookup formula? PeterB Excel Worksheet Functions 0 June 1st 05 12:23 PM
IF Statement Brent New Users to Excel 3 April 29th 05 04:24 PM
How to calculate a sum as one outcome of an IF statement barb in NC Excel Worksheet Functions 2 March 31st 05 08:01 PM
How do I fix a circular reference in a financial statement? drjayhawk25 Excel Discussion (Misc queries) 0 February 7th 05 05:19 PM
Statement lintan Excel Worksheet Functions 1 December 2nd 04 11:31 PM


All times are GMT +1. The time now is 02:15 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"