Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
bob
 
Posts: n/a
Default Two worksheets, one array

Sheet1 Column A2:A25 has a list of numbers. I want to display in Sheet2 cell
A2 the number 725595 if it appears in Sheet1 Column A2:A25.

I also want to display in Sheet2 cell B2 the value that is in Sheet 1 Column
B in the same row as 725595.

Can anyone help?

Thanks,
Bob
  #2   Report Post  
Posted to microsoft.public.excel.misc
Ken Johnson
 
Posts: n/a
Default Two worksheets, one array


bob wrote:
Sheet1 Column A2:A25 has a list of numbers. I want to display in Sheet2 cell
A2 the number 725595 if it appears in Sheet1 Column A2:A25.

I also want to display in Sheet2 cell B2 the value that is in Sheet 1 Column
B in the same row as 725595.

Can anyone help?

Thanks,
Bob



Hi Bob,

Does this work?...

In Sheet2 A2...

=IF(ISERROR(VLOOKUP(275595,Sheet1!A2:A25,1,FALSE)) ,"",VLOOKUP(275595,Sheet1!A2:A25,1,FALSE))


In Sheet2 B2...

=IF(ISERROR(VLOOKUP(A2,Sheet1!A2:B25,1,FALSE)),"", IF(ISBLANK(VLOOKUP(A2,Sheet1!A2:B25,2,FALSE)),"",V LOOKUP(A2,Sheet1!A2:B25,2,FALSE)))

Ken Johnson

  #3   Report Post  
Posted to microsoft.public.excel.misc
T Kirtley
 
Posts: n/a
Default Two worksheets, one array

Something like

=IF(ISERROR(MATCH(725595,Sheet1!A2:A25,0)),"",7255 95) in cell A2 of Sheet2,
and

=IF(A2="","",INDEX(Sheet1!B2:B25,MATCH(725595,Shee t1!A2:A25,0))) in cell B2
of Sheet2 should work.

HTH,

TK

"bob" wrote:

Sheet1 Column A2:A25 has a list of numbers. I want to display in Sheet2 cell
A2 the number 725595 if it appears in Sheet1 Column A2:A25.

I also want to display in Sheet2 cell B2 the value that is in Sheet 1 Column
B in the same row as 725595.

Can anyone help?

Thanks,
Bob

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
How to multiply all cells in array by factor rhauff Excel Discussion (Misc queries) 2 March 21st 06 03:01 PM
Transpose words and numbers into array of different proportions Manfred Excel Discussion (Misc queries) 5 February 9th 06 01:07 AM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM
printing an array of worksheets Marco de Witte Excel Discussion (Misc queries) 4 December 8th 04 03:21 PM
VBA Import of text file & Array parsing of that data Dennis Excel Discussion (Misc queries) 4 November 28th 04 10:20 PM


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