Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 156
Default compare two col data & add info

Is there anyone know how I can compare the following data in Excel spread sheet

When comparing col A & Col C,

If A2 (tp-2) =C4 (tp-2) then put D4 (deleted) in B2


A B C D
1 TP-1 TP-3 new
2 TP-2 deleted TP-5 xx
3 TP-3 new TP-8
4 TP-4 TP-2 deleted
5 TP-5 xx TP-10


Please help & many thanks

Philip

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 91
Default compare two col data & add info

Let's see if I understand you correctly...try this:
B1: =IF(ISNA(VLOOKUP(A1,$C$1:$D$5,2,0)),"",VLOOKUP(A1, $C$1:$D$5,2,0))

Copy that formula down to B5.

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"philip" wrote:

Is there anyone know how I can compare the following data in Excel spread sheet

When comparing col A & Col C,

If A2 (tp-2) =C4 (tp-2) then put D4 (deleted) in B2


A B C D
1 TP-1 TP-3 new
2 TP-2 deleted TP-5 xx
3 TP-3 new TP-8
4 TP-4 TP-2 deleted
5 TP-5 xx TP-10


Please help & many thanks

Philip

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 156
Default compare two col data & add info

Ron,

It work very good, thank you very much, would you mind explain to me how it
work??

philip

"Ron Coderre" wrote:

Let's see if I understand you correctly...try this:
B1: =IF(ISNA(VLOOKUP(A1,$C$1:$D$5,2,0)),"",VLOOKUP(A1, $C$1:$D$5,2,0))

Copy that formula down to B5.

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"philip" wrote:

Is there anyone know how I can compare the following data in Excel spread sheet

When comparing col A & Col C,

If A2 (tp-2) =C4 (tp-2) then put D4 (deleted) in B2


A B C D
1 TP-1 TP-3 new
2 TP-2 deleted TP-5 xx
3 TP-3 new TP-8
4 TP-4 TP-2 deleted
5 TP-5 xx TP-10


Please help & many thanks

Philip

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
Compare EE #s & Copy Info Steve C Excel Discussion (Misc queries) 3 July 23rd 08 02:38 AM
Compare and group like numbers and info John L[_2_] Excel Worksheet Functions 5 April 3rd 07 04:42 PM
How do I compare info in on sheet to info in another? Fanney Excel Discussion (Misc queries) 7 February 25th 06 02:16 AM
compare info in 4 worksheets and highlight fields that are the sam Ellen Excel Worksheet Functions 3 October 25th 05 10:16 PM
compare columns of info john mcmichael Excel Discussion (Misc queries) 0 August 19th 05 07:17 PM


All times are GMT +1. The time now is 01:15 AM.

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"