+ Reply to Thread
Results 1 to 3 of 3

Thread: Sumif, index and match function

  1. #1
    Registered User
    Join Date
    04-29-2011
    Location
    canada
    MS-Off Ver
    Excel 2003
    Posts
    95

    Sumif, index and match function

    Dear all,

    I have a time killing task. I have two files, one is data file (index and match function testing.xls) and another file is summary file. In data file, it includes the sales data of account managers. Account managers divided into two teams in the branch. However, some account managers work in the two team in a year, for example, account manager A work in team 1 for 3 months and then change to team 2.

    Therefore, I want to get the sales data of specific account managers in two teams

    I try to use index and match and sumif to get the data from data file. However, i try many times, it still not work.

    I define the name of range in sheet " data by other branch" in datafile, the name is dataset.

    1.Please teach me how can I use the formula to get the data from other file.
    2. Second question, if it is possible, if there is no data of account manager in datafile, i hope to get the result of "" rather than #value.

    Thanks
    Attached Files Attached Files
    Last edited by ronlau123; 07-12-2011 at 09:01 PM.

  2. #2
    Registered User
    Join Date
    04-29-2011
    Location
    canada
    MS-Off Ver
    Excel 2003
    Posts
    95

    Re: Sumif, index and match function

    Dear Big brother and sister,

    May I ask for anyone help, if you need clarify, I will produce more detail file. Appreciate for your reply. Thanks

  3. #3
    Valued Forum Contributor
    Join Date
    07-17-2005
    Location
    Abergavenny, Wales, UK
    MS-Off Ver
    XL2003, XL2007, XL2010
    Posts
    474

    Re: Sumif, index and match function

    Hi

    You cannot use SUMIF in the way that you are attempting.

    Take a look at the books attached.
    I renamed your first file as Source, and the data sheet as DataA to make the formulae for named ranges shorter to type and easier to read.

    The named ranges I created were
    
    Creditcard	=[Source.xls]DataA!$F$12:INDEX([Source.xls]DataA!$F$12:$F$98,COUNTA([Source.xls]DataA!$D$12:$D$98))				
    LOC	=[Source.xls]DataA!$I$12:INDEX([Source.xls]DataA!$I$12:$I$98,COUNTA([Source.xls]DataA!$D$12:$D$98))				
    RM	=[Source.xls]DataA!$D$12:INDEX([Source.xls]DataA!$D$12:$D$98,COUNTA([Source.xls]DataA!$D$12:$D$98))				
    Team	=[Source.xls]DataA!$E$12:INDEX([Source.xls]DataA!$E$12:$E$98,COUNTA([Source.xls]DataA!$D$12:$D$98))		
    
    and the formula then became simply
    =SUMPRODUCT((RM=$B7)*(Team=$A7)*Creditcard)
    Attached Files Attached Files
    --
    Regards
    Roger Govier
    Microsoft Excel MVP

+ 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.2.0