+ Reply to Thread
Results 1 to 10 of 10

Match two columns to two different criteria and provide a result from a third column

  1. #1
    Registered User
    Join Date
    07-17-2014
    Location
    Springfield, MO
    MS-Off Ver
    2007
    Posts
    42

    Match two columns to two different criteria and provide a result from a third column

    Hello,
    I have two spreadsheets I am working with "Call Arrival Patterns" DBP Split Data". I want the Call Arrival Pattern spreadsheet to update once the DBP Split spreadsheet is updated. I need the formula to match the dates and the intervals and provide the "Calls Offered" in column C for the corresponding interval.

    Column B of the Call Arrival Pattern lists the intervals by 30 minutes 00:00-24:00. Horizontally are the dates as each day is listed separately- so all Mondays listed together, all Tuesdays are listed together etc. The "Calls Offered" need to go to the right of the intervals.

    1/23
    0:00
    0:30
    1:00
    1:30

    From the DBP Split Data file the Dates are listed in Column A. Column B lists the Intervals and Column C lists the Calls Offered. The Calls Offered from this spreadsheet are what I need to get to populate in the Call Arrival Pattern spreadsheet.

    Date Interval Calls Offered
    1/23 0:00
    1/23 0:30
    1/23 1:00
    1/23 1:30
    1/23 2:00
    1/23 2:30
    1/23 3:00
    1/23 3:30
    1/23 4:00
    1/23 4:30


    I have tried =Index('[DBP Split Data.xls]Switch!'$C:$C,Match(S110,'[DBP Split Data.xls]Switch!'$A:$A,0)) I get #NA
    I also tried =IF(And('[DBP Split Data.xls]Switch!'$A:$A=S110,'[DBP Split Data.xls]Switch!'$B:$B=B111,'[DBP Split Data.xls]Switch!'$C:$C,"")) Just a "This formula makes no sense" error on this one. lol

    Any help would be greatly appreciated. Thank you for your time!

    JBeets

  2. #2
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: Match two columns to two different criteria and provide a result from a third column

    Attach a sample workbook that contains your desensitized data.
    Spread the love, add to the Rep

    "None of us are as smart as all of us."

  3. #3
    Registered User
    Join Date
    07-17-2014
    Location
    Springfield, MO
    MS-Off Ver
    2007
    Posts
    42

    Re: Match two columns to two different criteria and provide a result from a third column

    I am sorry about not adding them before- they are attached.
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: Match two columns to two different criteria and provide a result from a third column

    So these are two separate workbooks, not two separate worksheets within the same workbook?

  5. #5
    Registered User
    Join Date
    07-17-2014
    Location
    Springfield, MO
    MS-Off Ver
    2007
    Posts
    42

    Re: Match two columns to two different criteria and provide a result from a third column

    Yes they are seperate workbooks. The DBP Split Data will be a rolling spreadsheet that updates daily that I want the Call Arrival Pattern Workbook to get the data from.

  6. #6
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: Match two columns to two different criteria and provide a result from a third column

    Since this is a rather tedious process, I was able to get a working portion of the workbook you provided, so I'll upload those two.

    Basically, apart from your previous formulas containing a few errors, the main reason this was not working for you was because the data types (date/time) did not match between workbooks.

    When you open the Call Arrival Pattern workbook, look at cells Q7:S54, those are being pulled from your DBP Split Data workbook (you'll have to change the path to match where its location is on your computer). Hopefully you'll be able to follow the logic and alter the formulas as needed for Tuesday - Sunday.

    I can assist more if needed; it was just a lot of manual work to do that I believe you are capable of.

    Hope this helps!
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    07-17-2014
    Location
    Springfield, MO
    MS-Off Ver
    2007
    Posts
    42

    Re: Match two columns to two different criteria and provide a result from a third column

    This is wonderful! Thank you very much- I am happy to do the work on this just needed pointing in the right direction! Much more involved than I thought it would be.

    Again, I really appreciate your help!

    Jodi

  8. #8
    Registered User
    Join Date
    07-17-2014
    Location
    Springfield, MO
    MS-Off Ver
    2007
    Posts
    42

    Re: Match two columns to two different criteria and provide a result from a third column

    OK so apparently you had more faith in me than I deserved! I decided to make the formula a little simpiler by adding the DBP Split Data sheet to the Call Arrival Pattern Spreadsheet so that the formula didnt have to look for the other workbook to get the data. However when i put the formula in it still acts like it is looking on my drive for the location of another workbook and then I get a #Name error.

    Here is the code I updated: =Index(‘DBP Split Data’!$C$9:$C$20000,Match(S$6&$B8,’DBP Split Data’!$A$9:$A$20000&’DBP Split Data’!$B$9:$B$20000,0))

    I just cannot figure out what I did wrong this time. I see the one you did for me is working just fine! LOL Thank you in advance for your help!

    Jbeets

  9. #9
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: Match two columns to two different criteria and provide a result from a third column

    Since you have not uploaded a sample of the workbook you are planning to incorporate my previous solution into, I can't really give assistance. Can you provide another dummy workbook that reflects exactly how your data will be setup?

  10. #10
    Registered User
    Join Date
    07-17-2014
    Location
    Springfield, MO
    MS-Off Ver
    2007
    Posts
    42

    Re: Match two columns to two different criteria and provide a result from a third column

    I am so sorry- I thought they were still attached. Here they are-
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Provide a match from 2 cells to give a result from another
    By leefarrell in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-09-2006, 08:34 AM
  2. How do I Provide a specific result given multiple criteria?
    By Luis in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 PM
  3. How do I Provide a specific result given multiple criteria?
    By Luis in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM
  4. How do I Provide a specific result given multiple criteria?
    By Luis in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM
  5. [SOLVED] How do I Provide a specific result given multiple criteria?
    By Luis in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-14-2005, 05:06 PM

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