LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Sam Sam is offline
external usenet poster
 
Posts: 699
Default copy unique data

Hi,
sheet 1 has headers in a1:d1 date, #, time, place
sheet 2 has headers in a1:d1 date, pa, ny, oh
Okay. I recopied the if(iserror.... into sheet 2 B2 ctr - shift - enter
entered data in sheet 1 a2:d4
A2:A4 22 oct etc
B2:B4 # 555 etc
C2:C4 time 730 etc
D2:D4 place oh, ny etc

Sheet 2 now has
555 in b2:b4 correct # except its repeated
111 in c2:c4 correct # except its repeated but doesn't show the other # 222
122 in d2:d4 correct except its repeated
and no date copied to a2:a4

Is this possible or am I out of luck and just need to input the data in two
sheets?

Thanks for your help.


"Teethless mama" wrote:

Tested and it works.

"Sam" wrote:

Doesn't work. Entered the array in Sheet 2 B2. Nothing was copied from
sheet 1 to sheet 2 or 2 to 1 if I messed it up some how :)

"Teethless mama" wrote:

Try this:

in Sheet 2 B2
=IF(ISERROR(MATCH(1,(Sheet1!$A$2:$A$6=Sheet2!$A2)* (Sheet1!$D$2:$D$6=Sheet2!B$1),0)),"",INDEX(Sheet1! $B$2:$B$6,MATCH(1,(Sheet1!$A$2:$A$6=Sheet2!$A2)*(S heet1!$D$2:$D$6=Sheet2!B$1),0)))

ctrlshiftenter (not just enter)
Copy accross and down as needed



"Sam" wrote:

This may be a little confusing...to a beginner, me.
Instead of entering data in two worksheets can I:

In worksheet A

a1 b1 c1 d1
date # time place

20 oct 77 940 OH
21 oct 99 1240 NY
22 oct 101 745 OH
22 oct 128 545 PA
22 oct 222 655 NY

In worksheet B

a1 b1 c1 d1
date pa ny oh
20 oct 77
21 oct 99
22 oct 128 222 101

22 oct can be three seperate rows but would prefer one.

Can this be done or am I stuck entering the data twice?


 
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
sorting 2 colums of numbers and incremening them down blk&wht Excel Discussion (Misc queries) 10 October 9th 06 10:12 PM
Retrieve multiple data rows data from a very long list and copy t mathew Excel Discussion (Misc queries) 1 September 13th 06 08:24 PM
ranking query JaimeTimbrell Excel Discussion (Misc queries) 2 February 16th 06 08:09 AM
From several workbooks onto one excel worksheet steve Excel Discussion (Misc queries) 6 December 1st 05 08:03 AM
How do i copy columns of data in notepad into microsoft excel? Jason Excel Discussion (Misc queries) 3 February 12th 05 02:04 AM


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