Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Comparing 2 blocks of text and data

I have 2 blocks of text and data.

Block 1 stretches from A7 to AF 300 with text and data in all columns and
rows.
In column AA there are UPC numbers.

Block 2 stretches from AH7 to AW 200 with text and data in all columns and
rows.
In column AW there are UPC numbers.

What I want to do is to match Block 2 with Block 1 via the UPC numbers.
When done, the text and data in the two blocks of data are now in the same
row €“ all based upon the UPC numbers with a total of 200 rows. The extra 100
rows in Block 1 are either deleted or appear at the bottom of Block 1 because
of no matches in Block 2.

Can this be done in Excel?
How?


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9,101
Default Comparing 2 blocks of text and data

The easy wasy without a macro is to copy block 2 to a new sheet keeping the
same columns. Then put formulas on the new sheet in columns A7 to Af300 to
get the number from the old sheet.

If the Old sheet is Sheet1 and the new Sheet is Sheet2

Then in Sheet 2 cell A& put the following

=Index(Sheet1!A7:A300,Match($AW7,Sheet1!$AA7:$AA30 0,0),1)

then copy formula to A7:Af300

"John Fesen" wrote:

I have 2 blocks of text and data.

Block 1 stretches from A7 to AF 300 with text and data in all columns and
rows.
In column AA there are UPC numbers.

Block 2 stretches from AH7 to AW 200 with text and data in all columns and
rows.
In column AW there are UPC numbers.

What I want to do is to match Block 2 with Block 1 via the UPC numbers.
When done, the text and data in the two blocks of data are now in the same
row €“ all based upon the UPC numbers with a total of 200 rows. The extra 100
rows in Block 1 are either deleted or appear at the bottom of Block 1 because
of no matches in Block 2.

Can this be done in Excel?
How?


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Comparing 2 blocks of text and data

THANK YOU very much - it works!
John


"Joel" wrote:

The easy wasy without a macro is to copy block 2 to a new sheet keeping the
same columns. Then put formulas on the new sheet in columns A7 to Af300 to
get the number from the old sheet.

If the Old sheet is Sheet1 and the new Sheet is Sheet2

Then in Sheet 2 cell A& put the following

=Index(Sheet1!A7:A300,Match($AW7,Sheet1!$AA7:$AA30 0,0),1)

then copy formula to A7:Af300

"John Fesen" wrote:

I have 2 blocks of text and data.

Block 1 stretches from A7 to AF 300 with text and data in all columns and
rows.
In column AA there are UPC numbers.

Block 2 stretches from AH7 to AW 200 with text and data in all columns and
rows.
In column AW there are UPC numbers.

What I want to do is to match Block 2 with Block 1 via the UPC numbers.
When done, the text and data in the two blocks of data are now in the same
row €“ all based upon the UPC numbers with a total of 200 rows. The extra 100
rows in Block 1 are either deleted or appear at the bottom of Block 1 because
of no matches in Block 2.

Can this be done in Excel?
How?


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
Count Blocks of Data Brendan Excel Worksheet Functions 4 January 16th 08 10:08 PM
blocks of data repeating eween New Users to Excel 4 March 29th 07 06:58 PM
averaging particular blocks of data robert111 Excel Discussion (Misc queries) 6 July 12th 06 02:41 PM
Copy Blocks Of Data SenojNW Excel Discussion (Misc queries) 2 August 9th 05 02:06 AM
Excel formulas to create large blocks of text Greg Boettcher Excel Discussion (Misc queries) 5 June 12th 05 06:41 PM


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