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?
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.
Thank you very much for the help. Works perfectly! And I appologize for posting this question in the VBA forum.
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.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks