Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Compare Columns and Copy Data

Hi,

I could use some advice.

I have a spreadsheet with 4 columns

Column A = Master List of Order Numbers (i.e. all orders ever)
Column B = Order Description
Column C = Ordered By

I then have a column which has the latest order numbers (copied from
some where else).
Column D = Partial Order Numbers

So this is what I need to do.
I need to 1 verify all the order numbers in Column D exist in Column A
(as they may not do).
I have done this using the MATCH function however......
I then to copy over the associated data in Columns B & C so I have by
validated list of ORDERS, DESCRIPTION and ORDERED BY. (I am stuck on
how to do this).

This is a one of process for 10,000 rows of data, and I just need a
quick fix to validate and copy the information I need.

Any ideas?

Thanks in Advance
Any tips?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Compare Columns and Copy Data

Assume column E has your match function and it displays an error when there
is not match
In F2

=if(isnumber(E2),Vlookup(D2,A:C,2,False),"")

in G2,
=if(isnumber(E2),Vlookup(D2,A:C,3,False),"")

select F2:G2 and drag fill down the column.

--
Regards,
Tom Ogilvy

" wrote:

Hi,

I could use some advice.

I have a spreadsheet with 4 columns

Column A = Master List of Order Numbers (i.e. all orders ever)
Column B = Order Description
Column C = Ordered By

I then have a column which has the latest order numbers (copied from
some where else).
Column D = Partial Order Numbers

So this is what I need to do.
I need to 1 verify all the order numbers in Column D exist in Column A
(as they may not do).
I have done this using the MATCH function however......
I then to copy over the associated data in Columns B & C so I have by
validated list of ORDERS, DESCRIPTION and ORDERED BY. (I am stuck on
how to do this).

This is a one of process for 10,000 rows of data, and I just need a
quick fix to validate and copy the information I need.

Any ideas?

Thanks in Advance
Any tips?


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 cells and copy columns after match Kcope8302 Excel Worksheet Functions 2 August 5th 09 05:37 PM
Compare 4 columns and copy saman110 via OfficeKB.com Excel Discussion (Misc queries) 2 August 10th 07 05:49 PM
how to compare two columns on two sheets and copy associated data from one sheet to the other? [email protected] Excel Worksheet Functions 2 June 22nd 07 03:40 PM
Need to compare data in 2 columns and not sure how. Stacey Charts and Charting in Excel 0 February 8th 06 04:47 PM
Compare/Copy columns from two books? dailo Excel Programming 7 July 25th 05 08:16 PM


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