+ Reply to Thread
Results 1 to 5 of 5

vlookup, match, index

Hybrid View

jealkon vlookup, match, index 09-24-2009, 06:02 PM
shg re: vlookup, match, index 09-24-2009, 06:11 PM
teylyn Re: vlookup, match, index 09-24-2009, 06:47 PM
shg Re: vlookup, match, index 09-24-2009, 07:21 PM
jealkon Re: Solved vlookup, match,... 09-25-2009, 08:02 AM
  1. #1
    Registered User
    Join Date
    09-24-2009
    Location
    Phila, PA
    MS-Off Ver
    Excel 2003
    Posts
    28

    vlookup, match, index

    Using Excel 2003 and am trying to do a calculation by customer, by service type. Attached is the workbook and I've tried numerous ways to do this.

    On the revenue calculation worksheet, I am tryng to calculate the type of service minutes from the data retrieve worksheet, multipled by the service rate on the rate table for the specifc type of minute by customer.
    I'd like to build it as a vlookup by customer and then by service type, but have run into difficulty.

    Any help would be appreciated
    Attached Files Attached Files
    Last edited by jealkon; 09-25-2009 at 08:48 AM. Reason: Solved

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    re: vlookup, match, index

    In DataRetrieve!D2, paste this in the formula bar:

    =C2 * INDEX('Rate Tbl'!C:C, MATCH(A2 & B2, 'Rate Tbl'!A1:A100 & 'Rate Tbl'!B1:B100, 0) )

    Don't press Enter; instead, press and hold the Ctrl ad Shif keys, and then press Enter.

    Then copy down.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    Re: vlookup, match, index

    shg's solution works slightly better with

    =C2 * INDEX('Rate Tbl'!C:C, MATCH(A2 & B2, 'Rate Tbl'!A$1:A$100 & 'Rate Tbl'!B$1:B$100, 0) )

    For a one step approach in the revenue calculation sheet, use this ugly formula in B2 to B8

    =SUMPRODUCT(--('Data Retrieve'!$A$1:$A$300='Revenue Calculation'!$A$1),--('Data Retrieve'!$B$1:$B$300='Revenue Calculation'!A2),'Data Retrieve'!$C$1:$C$300)*SUMPRODUCT(--('Rate Tbl'!$A$1:$A$300='Revenue Calculation'!$A$1),--('Rate Tbl'!$B$1:$B$300='Revenue Calculation'!A2),'Rate Tbl'!$C$1:$C$300)

    Copy to B11 and adjust the red bits to be $A$10 instead of $A$1, then in B20 and following, use $A$19, etc.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: vlookup, match, index

    shg's solution works slightly better with ...
    My bad, thank you, teylin.

  5. #5
    Registered User
    Join Date
    09-24-2009
    Location
    Phila, PA
    MS-Off Ver
    Excel 2003
    Posts
    28

    Re: Solved vlookup, match, index

    Quote Originally Posted by jealkon View Post
    Using Excel 2003 and am trying to do a calculation by customer, by service type. Attached is the workbook and I've tried numerous ways to do this.

    On the revenue calculation worksheet, I am tryng to calculate the type of service minutes from the data retrieve worksheet, multipled by the service rate on the rate table for the specifc type of minute by customer.
    I'd like to build it as a vlookup by customer and then by service type, but have run into difficulty.

    Any help would be appreciated
    Thanks for the reposnse and help - plugged this in this morning, tweaked it a little and it worked perfectly

+ 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