#1   Report Post  
Posted to microsoft.public.excel.misc
TQ TQ is offline
external usenet poster
 
Posts: 46
Default if ? ?

Hi, anyone know the formula for below situation ?

1.I got two excel file = 1.xls & 2.xls
2.both of the file in column A have the customer name,but 2.xls got more few
customers name tat 1..xls dont have.
3.both of the file in column B have the price.

Now I wish to filter the 2.xls column A and leave those name which exactly
same with 1.xls column A,n i wish to get the price from 2.xls's(column B)
after filter's name, and let the answer shown in 1.xls coloumn c for
comparison.

Anybody can help ?

Thanks !

  #2   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default if ? ?

Assume that in 1.xls,
Sheet1 is the sheet with the cust/price data in cols A & B, from row2 down

To simplify matters, copy over the corresponding sheet in 2.xls over to
1.xls, rename the sheet as: Sheet2

In Sheet2,
Put in C2:
=IF(A2="","",ISNUMBER(MATCH(A2,Sheet1!A:A,0)))
Copy down to the last row of data in col A.
Do an autofilter on col C for TRUE.

The above would answer your 1st Q:
.. I wish to filter the 2.xls column A and
leave those name which exactly same with 1.xls column A


In Sheet1,
Put in C2:
=IF(ISNA(MATCH(A2,Sheet2!A:A,0)),"",INDEX(Sheet2!B :B,MATCH(A2,Sheet2!A:A,0)))
Copy down to the last row of data in col A.

The above should answer your 2nd Q:
.. i wish to get the price from 2.xls's (column B) ..
and let the answer shown in 1.xls colomn c for comparison.

(you actually don't need to do your 1st Q to arrive at your 2nd Q's results)
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---


"TQ" wrote:

Hi, anyone know the formula for below situation ?

1.I got two excel file = 1.xls & 2.xls
2.both of the file in column A have the customer name,but 2.xls got more few
customers name tat 1..xls dont have.
3.both of the file in column B have the price.

Now I wish to filter the 2.xls column A and leave those name which exactly
same with 1.xls column A,n i wish to get the price from 2.xls's(column B)
after filter's name, and let the answer shown in 1.xls coloumn c for
comparison.

Anybody can help ?

Thanks !

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



All times are GMT +1. The time now is 05:22 PM.

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

About Us

"It's about Microsoft Excel"