Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default re-post as still need help!

Hi everybody. i need to return a date from another workbook based upon the
cell reference in the first workbook. the formula needs to be able to search
4 sheets in the second workbook for an exact match to the reference in the
first book and then return the date (which is in the column prior to the
match)
can this be done? thank you in advance for any help.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default re-post as still need help!

Can the match be anywhere in the worksheet(s), or is it limited to certain
ranges?

Bernie


"new_to_vba" wrote in message
...
Hi everybody. i need to return a date from another workbook based upon the
cell reference in the first workbook. the formula needs to be able to
search
4 sheets in the second workbook for an exact match to the reference in the
first book and then return the date (which is in the column prior to the
match)
can this be done? thank you in advance for any help.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default re-post as still need help!

the match is always in column "B" of the second workbork in all sheets.

Nick

"Bernie Deitrick" wrote:

Can the match be anywhere in the worksheet(s), or is it limited to certain
ranges?

Bernie


"new_to_vba" wrote in message
...
Hi everybody. i need to return a date from another workbook based upon the
cell reference in the first workbook. the formula needs to be able to
search
4 sheets in the second workbook for an exact match to the reference in the
first book and then return the date (which is in the column prior to the
match)
can this be done? thank you in advance for any help.




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default re-post as still need help!

Using worksheet functions:

=IF(ISERROR(MATCH(A5,'[Other
Book.xls]Sheet1'!$B:$B,FALSE)),IF(ISERROR(MATCH(A5,'[Other
Book.xls]Sheet2'!$B:$B,FALSE)),IF(ISERROR(MATCH(A5,'[Other
Book.xls]Sheet3'!$B:$B,FALSE)),IF(ISERROR(MATCH(A5,'[Other
Book.xls]Sheet4'!$B:$B,FALSE)),"Not Found",INDEX('[Other
Book.xls]Sheet4'!$A:$A,MATCH(A5,'[Other
Book.xls]Sheet4'!$B:$B,FALSE))),INDEX('[Other
Book.xls]Sheet3'!$A:$A,MATCH(A5,'[Other
Book.xls]Sheet3'!$B:$B,FALSE))),INDEX('[Other
Book.xls]Sheet2'!$A:$A,MATCH(A5,'[Other
Book.xls]Sheet2'!$B:$B,FALSE))),INDEX('[Other
Book.xls]Sheet1'!$A:$A,MATCH(A5,'[Other Book.xls]Sheet1'!$B:$B,FALSE)))

Note that there are 3 references to each sheet (for a total of 12) that need
to be updated, with the file name and sheet names. It looks for the value
that is currently in cell A5 of the same sheet as the formula.

IF you want a macro, then it is, of course, a different solution, but just
as easy. Let us know if you were looking for a VBA macro solution.

HTH,
Bernie
MS Excel MVP

"new_to_vba" wrote in message
...
the match is always in column "B" of the second workbork in all sheets.

Nick

"Bernie Deitrick" wrote:

Can the match be anywhere in the worksheet(s), or is it limited to
certain
ranges?

Bernie


"new_to_vba" wrote in message
...
Hi everybody. i need to return a date from another workbook based upon
the
cell reference in the first workbook. the formula needs to be able to
search
4 sheets in the second workbook for an exact match to the reference in
the
first book and then return the date (which is in the column prior to
the
match)
can this be done? thank you in advance for any help.






  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default re-post as still need help!

thanks Bernie, i will try this now but would also like to have a macro if
posible.
the more i can learn the better, and a macro might make it a bit more fool
proof.
(as they might delete formulas b axxident when using this.
thank you very much for your help. Nick

"Bernie Deitrick" wrote:

Using worksheet functions:

=IF(ISERROR(MATCH(A5,'[Other
Book.xls]Sheet1'!$B:$B,FALSE)),IF(ISERROR(MATCH(A5,'[Other
Book.xls]Sheet2'!$B:$B,FALSE)),IF(ISERROR(MATCH(A5,'[Other
Book.xls]Sheet3'!$B:$B,FALSE)),IF(ISERROR(MATCH(A5,'[Other
Book.xls]Sheet4'!$B:$B,FALSE)),"Not Found",INDEX('[Other
Book.xls]Sheet4'!$A:$A,MATCH(A5,'[Other
Book.xls]Sheet4'!$B:$B,FALSE))),INDEX('[Other
Book.xls]Sheet3'!$A:$A,MATCH(A5,'[Other
Book.xls]Sheet3'!$B:$B,FALSE))),INDEX('[Other
Book.xls]Sheet2'!$A:$A,MATCH(A5,'[Other
Book.xls]Sheet2'!$B:$B,FALSE))),INDEX('[Other
Book.xls]Sheet1'!$A:$A,MATCH(A5,'[Other Book.xls]Sheet1'!$B:$B,FALSE)))

Note that there are 3 references to each sheet (for a total of 12) that need
to be updated, with the file name and sheet names. It looks for the value
that is currently in cell A5 of the same sheet as the formula.

IF you want a macro, then it is, of course, a different solution, but just
as easy. Let us know if you were looking for a VBA macro solution.

HTH,
Bernie
MS Excel MVP

"new_to_vba" wrote in message
...
the match is always in column "B" of the second workbork in all sheets.

Nick

"Bernie Deitrick" wrote:

Can the match be anywhere in the worksheet(s), or is it limited to
certain
ranges?

Bernie


"new_to_vba" wrote in message
...
Hi everybody. i need to return a date from another workbook based upon
the
cell reference in the first workbook. the formula needs to be able to
search
4 sheets in the second workbook for an exact match to the reference in
the
first book and then return the date (which is in the column prior to
the
match)
can this be done? thank you in advance for any help.









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
Before my first post crehan57 About this forum 0 September 18th 10 08:56 PM
my post Help with cell function[_2_] Excel Discussion (Misc queries) 3 October 8th 09 02:31 PM
will this post jaci Excel Discussion (Misc queries) 2 February 11th 09 07:43 PM
Should I generally request "post a poll" when I post a new thread? Joe Miller Excel Discussion (Misc queries) 2 January 7th 06 04:46 PM
Re-Post Anyone know how to do this? Job Excel Programming 3 July 27th 03 08:56 PM


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