Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 78
Default comparing column data and add if not present

I have the following data:

Order Group 1 Group 2 Group 2 Group 2 |Target1 Target2
782187 PRT |EQP
782679 BPR | BPR
783014 EQP PRT |EQP
783016 EQP PRT |EQP

I would like to check each line and where group1 has a value, check to see
if that value is in the target columns; it could be target1, 2, 3, 4. If it
does exist then do nothing. If it doesn't exist then bring it over into ONE
of the empty columns under either group 1-5 BUT it must not over write an
existing value and it must have a unique value. So the output for this
example would be.

Order Group 1 Group 2 Group 2 Group 2 |Target1 Target2
782187 PRT EQP |EQP
782679 BPR | BPR
783014 EQP PRT |EQP
783016 EQP PRT |EQP

You noticed I only added "EQP to the top line, the others were OK, because
it already had the within the set. I have a few idea's brewing but I thought
I would give the experts a shout to see who finishes first - smile.


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
Comparing YTD numbers between last year and present LilBeanie1033 Excel Worksheet Functions 1 December 9th 08 02:49 PM
Create a new row when data present in a column JC Excel Discussion (Misc queries) 4 July 2nd 08 07:38 PM
need formula to return data from one column after comparing 2 othe Jeff W Excel Worksheet Functions 3 February 21st 08 02:25 PM
Need to parse column data only when text is present Phil Excel Worksheet Functions 0 July 10th 07 08:22 PM
SUM/COUNT column(s) based on specific value present within the column markx Excel Worksheet Functions 6 March 22nd 05 10:23 AM


All times are GMT +1. The time now is 08:49 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"