+ Reply to Thread
Results 1 to 8 of 8

Return Values Single Criteria

  1. #1
    Registered User
    Join Date
    10-22-2009
    Location
    Portugal
    MS-Off Ver
    Excel 2007
    Posts
    80

    Return Values Single Criteria

    Hi all,


    I'm trying to develop a way of joining 2 diferent spread Sheets.


    Here is what i need help with, I want that on Sheet2:

    House Number = any number

    Lookup ( House Number Value ) on the Sheet1! Table for rows B / C / D / E

    Return multiple values and use those values on a dropdown box in B3
    So that B4 / B5 / B6 change according to B3

    I've attached an example
    Attached Files Attached Files
    Last edited by Rage; 03-11-2010 at 12:33 PM.

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

    Re: Return Values Single Criteria

    See attached for an option:

    In Bookings!F10 added a helper column with formula:

    =COUNTIF(A$10:A10,House!$I$3) copied down to count matches based on entry made in House!I3

    In House!N1: =MAX(Bookings!F:F) to show max number of matches

    In N2: =IF(ROWS($A$1:$A1)>$N$1,"",INDEX(Bookings!B:B,MATCH(ROWS($A$1:$A1),Bookings!F:F,0)))

    copied down as far as you want to extract matches...

    Then go to Formulas|Define Name and enter Name: Arrivals with formula:

    =OFFSET(House!$N$1,1,0,COUNT(House!$N:$N)-1,1)

    Then go to cell B3 and then Data|Validation, choose List and enter: =Arrivals

    in B4: =IF($B$3="","",VLOOKUP($B$3,Bookings!$B$10:$E$20,2,0))

    in B5: =IF($B$3="","",VLOOKUP($B$3,Bookings!$B$10:$E$20,3,0))

    in B6: =IF($B$3="","",VLOOKUP($B$3,Bookings!$B$10:$E$20,4,0))
    Attached Files Attached Files
    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.

  3. #3
    Registered User
    Join Date
    10-22-2009
    Location
    Portugal
    MS-Off Ver
    Excel 2007
    Posts
    80

    Re: Return Values Single Criteria

    Dear NBVC, i just cant thank you enough, it's not the first time you saved my day.

    It works like a charm.

    YOU RULE :P


    Thanks

  4. #4
    Registered User
    Join Date
    10-22-2009
    Location
    Portugal
    MS-Off Ver
    Excel 2007
    Posts
    80

    Re: Return Values Single Criteria

    PS: NBVC is there any way of making it Auto-update the dropdown list ?

    Cheers

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

    Re: Return Values Single Criteria

    Not sure what you mean... the list updates based on the entry you make for House No. in I3 of House! Sheet.

  6. #6
    Registered User
    Join Date
    10-22-2009
    Location
    Portugal
    MS-Off Ver
    Excel 2007
    Posts
    80

    Re: Return Values Single Criteria

    Quote Originally Posted by NBVC View Post
    Not sure what you mean... the list updates based on the entry you make for House No. in I3 of House! Sheet.
    What i mean is that if i change the I3, i need to change the dropdownbox manualy in order to obtain the values from I3.
    I wanted to update the first entry value of the dropdown box by itself. Without the need to press the box.

    Did i make any sense ... lol ??

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

    Re: Return Values Single Criteria

    Right click the tab name and select View code, past the following:
    Please Login or Register  to view this content.
    Then close the Editor and test by changing I3...

  8. #8
    Registered User
    Join Date
    10-22-2009
    Location
    Portugal
    MS-Off Ver
    Excel 2007
    Posts
    80

    Re: Return Values Single Criteria

    Woot thanks... again.

    What would i do without you

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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