+ Reply to Thread
Results 1 to 3 of 3

Lookup across multiple sheets

  1. #1
    Registered User
    Join Date
    11-12-2007
    Location
    Virginia
    Posts
    19

    Lookup across multiple sheets

    I am looking for a way to look across multiple sheets for a given value and when found return the date in the same row as that value. In the sample file I have uploaded, on the Schedule page, the Date Sent formula needs to check all previous months for the R.O. number in column A and, if found, return that R.O.'s date in column M. I also need to transfer any comments in the same manner.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    08-17-2012
    Location
    Lisbon, Portugal
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    82

    Re: Lookup across multiple sheets

    Hello,

    I'm not sure if this may work, but can't you do an OR function within a vlookup?
    That way you would look for a value in SheetA or SheetB or sheetC. I think I already did it before.


    Kind Regards,
    FCarv

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Lookup across multiple sheets

    If you list the sheetnames in an area say, in L2:L4 of Schedule, then you can try:

    =VLOOKUP($A8+0,INDIRECT("'"&INDEX($L$2:$L$4,MATCH(TRUE,COUNTIF(INDIRECT("'"&$L$2:$L$4&"'!A1:A1000"),$A8)>0,0))&"'!A1:N1000"),13,0)

    confirmed with CTRL+SHIFT+ENTER and copied down.

    In next column, similarly:

    =VLOOKUP($A8+0,INDIRECT("'"&INDEX($L$2:$L$4,MATCH(TRUE,COUNTIF(INDIRECT("'"&$L$2:$L$4&"'!A1:A1000"),$A8)>0,0))&"'!A1:N1000"),13,0)

    confirmed with CTRL+SHIFT+ENTER and copied down.

    Then select the column and format the cells as Custom with type: 0;-0;;@ to hide the 0's
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1