SUMIF function combined with VLOOKUP with many variables

Liberty Prime

New Member
Joined
Dec 18, 2017
Messages
18
Hi all!

I start my first post in this board with a question involving a vlookup function with three different variables I'm not able to make it work, in a context involving the use of AdWords and its expenses reports.

Here is the setup:

TAB 1: Here is the input raw data to be processed
TAB 2: Here is the output of the processed data

In the TAB 2 there is a column which should show the expenses according to the different accounts, based on the day of the month and country whose, values can be found in the TAB 1 (A for day, B for account, C for country and D for expenses). Until here, everything is fine.

The tricky thing I'm not able to solve is that in the TAB 2 there is a cell in which I manually type the day I want to check in the data from the TAB 1 (let's use C3 for instance), and the expenses should be summed from the first day of the month till the day specified in TAB2!C3 (included)

I don't know how to include a SUMIF or SUMIFS function to match this requirement in this Vlookup formula:

=iferror(vlookup($C$3&A5&B5,TAB1!$A:D,3,false),"-")

How can I order excel to perform this sum only if these values match?

Could you help me out with this please? Would be very helpful for the job I'm doing. I hope I was clear enough with the explanation, otherwise gladly will give more details.

Best regards!
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.

Forum statistics

Threads
1,224,825
Messages
6,181,190
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top