+ Reply to Thread
Results 1 to 2 of 2

lookup 2 columns that are data validated wont return correct info

  1. #1
    Registered User
    Join Date
    08-25-2011
    Location
    Falkirk
    MS-Off Ver
    Excel 2003
    Posts
    9

    lookup 2 columns that are data validated wont return correct info

    i have two colums , a & b , each are data validated to give various options

    these options have been taken from another sheet within workbook (columns a & b)

    column c holds the information that needs to be returned when any of the options are selected via the data validation.

    here is how the info is set up on the first sheet
    Column A Column B Column C
    1.8 1.8 £100
    2.4 2.4 £200
    1.8 2.4 £300

    on my second sheet colums a & b are data validated for various selections. i cant get the lookup to return the answer from column c when both columns a&b are selected.

    any takers?

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

    Re: lookup 2 columns that are data validated wont return correct info

    If there is only one unique combination for each of column A and B on the first sheet, then you can use Sumproduct to return c

    e.g.

    =Sumproduct(--('Sheet1'!$A$1:$A$100=A1),--('Sheet1'!$B$1:$B$100=B1),'Sheet1'!$C$1:$C$100)

    where Sheet1!A1:C100 contains database data, and A1 and B1 are your lookup values in the active sheet. Adjust ranges to suit.
    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)

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