Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Compare a value and if is true copy the line to other worksheet

I have in worksheet 1 a list of names in order with more data, but there's
same places without a number, like this:
1 Mary AL 6665xxx
3 Peter PT 6654xx
4 William WE 12345xx
5 Henry SD 43564x
7 Mac SD 1442554
8 Dave OP 244234
10 Hank LS 343453

What I want is to make a new worksheet with all the numbers and the lines of
the worksheet 1 with the same numbers must been copied to the new place like
this:

1 Mary AL 6665xxx
2
3 Peter PT 6654xx
4 William WE 12345xx
5 Henry SD 43564x
6
7 Mac SD 1442554
8 Dave OP 244234
9
10 Hank LS 343453

Best regards.




  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Compare a value and if is true copy the line to other worksheet

One way

Assume source data as posted in Sheet1, within A1:D7

In Sheet2,
Fill the serial nos 1,2,3 ... 10 into A1:A10

Put in B1:
=IF(ISNA(MATCH($A1,Sheet1!$A:$A,0)),"",INDEX(Sheet 1!B:B,MATCH($A1,Sheet1!$A:$A,0)))
Copy B1 to D1, fill down to D10 to return the required results
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---


"Florian" wrote:

I have in worksheet 1 a list of names in order with more data, but there's
same places without a number, like this:
1 Mary AL 6665xxx
3 Peter PT 6654xx
4 William WE 12345xx
5 Henry SD 43564x
7 Mac SD 1442554
8 Dave OP 244234
10 Hank LS 343453

What I want is to make a new worksheet with all the numbers and the lines of
the worksheet 1 with the same numbers must been copied to the new place like
this:

1 Mary AL 6665xxx
2
3 Peter PT 6654xx
4 William WE 12345xx
5 Henry SD 43564x
6
7 Mac SD 1442554
8 Dave OP 244234
9
10 Hank LS 343453

Best regards.




  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Compare a value and if is true copy the line to other workshee

Delighted, Florian.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Florian" wrote in message
...
Perfect.

I'm waiting for a big sub, and you send me a simple and quick solution.

Great!!
Thank's a lot



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 the value of 2 cells and get Flase/true statement Sebastien Excel Discussion (Misc queries) 3 July 11th 07 12:32 AM
compare data / MATCH(TRUE.. ROW.. nastech Excel Discussion (Misc queries) 3 July 2nd 07 09:16 PM
copy an entire row IF a statement is true colettey29 Excel Worksheet Functions 1 June 15th 07 06:43 PM
ISTEXT TRUE then copy formula from cell X E Cobb Excel Worksheet Functions 7 May 31st 07 08:19 PM
Have a formula yield a true blank that disconnects graph line Mr. Owl Charts and Charting in Excel 2 August 12th 06 01:31 PM


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