+ Reply to Thread
Results 1 to 3 of 3

Matching data in multiple columns

  1. #1
    BuddyB
    Guest

    Matching data in multiple columns

    Hopefully the experts can help on this one...

    In one worksheet("payout") in have riders names (Column B) and horse names
    (Column C).
    In another worksheet ("teams") I have riders names (Col B) and horse
    names(Col C) and in Col D I have times
    In yet another worksheet (team payout) I have riders name(Col B) horse
    name(col C0 and times in Col D.

    The problem I'm having is this: Let's say Bill ( a rider) is riding 2
    horses (Wells and Fargo). Anything I've used to compare the values in Cols B
    and C will only capture the first occurance of Bill and place the same time
    on both horses.

    What I need it to do is match the value in Col B AND Col C then copy the
    correct time and paste it into the cell next to the rider and horse (Col D)

    Thanks in advance

    --
    Buddy

  2. #2
    Valued Forum Contributor
    Join Date
    07-11-2004
    Posts
    851
    have you tried this? Not sure of format of your times - may cause a problem

    I assume you have the times in column D of "Teams" and the rows involved are 2:100

    in column D of "Team Payout"

    for row 2

    =sumproduct((b2=Teams!b2:b100)*(c2=Teams!c2:c100)*(Teams!d2:d100))

    presumably there is only one result for the rider/horse combination because this will sum all results for this combination
    not a professional, just trying to assist.....

  3. #3
    Ragdyer
    Guest

    Re: Matching data in multiple columns

    I'm confused on exactly which sheet you want the formula entered, and, ...
    from which sheet you want to search for the data.

    So, try this:

    Sheet1
    Column B = Rider
    Column C = Horse
    Column D = Time

    Sheet2
    Column B = Rider
    Column C = Horse
    Column D = enter this formula in D2

    =SUMPRODUCT((Sheet1!$B$2:$B$20=B2)*(Sheet1!$C$2:$C$20=C2)*Sheet1!$D$2:$D$20)

    Drag down to copy.
    --
    HTH,

    RD

    ---------------------------------------------------------------------------
    Please keep all correspondence within the NewsGroup, so all may benefit !
    ---------------------------------------------------------------------------
    "BuddyB" <[email protected]> wrote in message
    news:[email protected]...
    > Hopefully the experts can help on this one...
    >
    > In one worksheet("payout") in have riders names (Column B) and horse names
    > (Column C).
    > In another worksheet ("teams") I have riders names (Col B) and horse
    > names(Col C) and in Col D I have times
    > In yet another worksheet (team payout) I have riders name(Col B) horse
    > name(col C0 and times in Col D.
    >
    > The problem I'm having is this: Let's say Bill ( a rider) is riding 2
    > horses (Wells and Fargo). Anything I've used to compare the values in

    Cols B
    > and C will only capture the first occurance of Bill and place the same

    time
    > on both horses.
    >
    > What I need it to do is match the value in Col B AND Col C then copy the
    > correct time and paste it into the cell next to the rider and horse (Col

    D)
    >
    > Thanks in advance
    >
    > --
    > Buddy



+ 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