+ Reply to Thread
Results 1 to 6 of 6

Vlookup Sumif Forumla

  1. #1
    Registered User
    Join Date
    06-13-2012
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    74

    Vlookup Sumif Forumla

    Hi,

    I need a formula that would tabulate the total of a certain cost driver in a certain city based on a certain month

    In Cell T6 I have the city, Cell U3 contains a Cost driver that I can selcect from a drop down list so its going to change. Cell U5 contains the Month

    I have a table array in a tab called "Data" from A1-U23600

    I have the cities in column C of the data, month in column D, the Cost Driver in column E.

    I need the formula to return the total cost of a cost driver of a certain city in a certain month, and if I change any one of those factors it should change automatically.

    I think it's a combination of Vlookup and Sumif, but I'm not sure.

    Any suggestions?

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

    Re: Vlookup Sumif Forumla

    Use SUMIFS

    e.g.

    =SUMIFS($E$1:$E$23600,$C$1:$C$23600,T6,$D$1:$D$23600,U3)
    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.

  3. #3
    Registered User
    Join Date
    06-13-2012
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    74

    Re: Vlookup Sumif Forumla

    Quote Originally Posted by NBVC View Post
    Use SUMIFS

    e.g.

    =SUMIFS($E$1:$E$23600,$C$1:$C$23600,T6,$D$1:$D$23600,U3)
    Didn't seem to work for me, I noticed the formula doesn't refer to U5 which contains the month.

  4. #4
    Registered User
    Join Date
    06-13-2012
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    74

    Re: Vlookup Sumif Forumla

    Oops forgot to mention Column F of the "Data" tab contains the dollar amounts that need to be summed up

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

    Re: Vlookup Sumif Forumla

    Try it as:

    =SUMIFS(Data!$F$1:$F$23600,Data!$C$1:$C$23600,T6,Data!$D$1:$D$23600,U5,Data!$E$1:$E$23600,U3)

  6. #6
    Registered User
    Join Date
    06-13-2012
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    74

    Re: Vlookup Sumif Forumla

    Quote Originally Posted by NBVC View Post
    Try it as:

    =SUMIFS(Data!$F$1:$F$23600,Data!$C$1:$C$23600,T6,Data!$D$1:$D$23600,U5,Data!$E$1:$E$23600,U3)
    Thanks a lot!

+ 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