+ Reply to Thread
Results 1 to 4 of 4

Thread: Using the SUMIF function to calculate mutiple columns

  1. #1
    Registered User
    Join Date
    07-17-2008
    Location
    Dover
    Posts
    27

    Using the SUMIF function to calculate mutiple columns

    I am using =SUMIF(Revenue!$C$2:$C$65536,A3,Revenue!$D$2:$D$65536) to find the total Revenue for a specific person in a specific month. Row D includes the January totals, row E, February, and so on. I was wondering if there was a way I could calculate the current total of every month combined. I tried using Revenue!$D$2:$O$65536 (January-December) at the end of the function, but I guess this can only be used for single columns. The data on the revenue sheet gets contantly updated, so the amount of rows can vary. If SUMIF cannot help me, is there any other solution out there that can?

  2. #2
    Forum Guru NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    32,636
    You are correct, SUMIF only sums 1 column....

    Try Sumproduct instead:

    =SUMPRODUCT((Revenue!$C$2:$C$65536=A3)*(Revenue!$D$2:$O$65536))
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  3. #3
    Registered User
    Join Date
    07-17-2008
    Location
    Dover
    Posts
    27
    Thank you very much for the help. Works perfectly! And I appologize for posting this question in the VBA forum.

  4. #4
    Forum Guru NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    32,636
    You are welcome...


    I will move it to the appropriate forum...
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

+ 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. How does this code output the coefficients of a trendline?
    By gshock in forum Excel Programming
    Replies: 9
    Last Post: 04-13-2010, 05:54 PM
  2. SUMIF Using Criteria From Two Columns
    By Karleajensar in forum Excel Worksheet Functions
    Replies: 2
    Last Post: 08-01-2007, 01:04 PM
  3. Using a function to compare three columns
    By brainfreeze in forum Excel Worksheet Functions
    Replies: 3
    Last Post: 10-19-2006, 06:38 AM
  4. Need Function to Compare two columns
    By mikess314 in forum Excel Worksheet Functions
    Replies: 1
    Last Post: 10-11-2006, 06:37 PM
  5. SumIF, or similar function
    By cahrynn in forum Excel Worksheet Functions
    Replies: 2
    Last Post: 09-14-2006, 08:11 AM

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