SUMIFS +vlookup and Month/Quarter to date

Status
Not open for further replies.

Giancar

Board Regular
Joined
Nov 29, 2017
Messages
52
Hi,

I have 2 tables in 2 sheets.

Sheet1
nameMargin MTDTarget MTDMargin QTDTarget QTD
James
Mark
Frank
Jim
Russell
Conrad
Denis

<tbody>
</tbody>

Sheet2
YearQuarterMonthDayNameMarginTarget
2018Q2May01-05-2018James1020
2018Q2May01-05-2018Mark2020
2018Q2May01-05-2018 Frank2515
2018Q2May01-05-2018 Jim3130
2018Q2May02-05-2018 James2322
2018Q2May02-05-2018 Mark418
2018Q2May02-05-2018 Frank10066
2018Q2May02-05-2018 Jim3241
2018Q2May02-05-2018Russell1140
2018Q2May02-05-2018Conrad2320
2018Q2May03-05-2018Mark67
2018Q2May03-05-2018Denis33
2018Q2June05-06-2018Mark20
2018Q2June05-06-2018Frank10
2018Q2June05-06-2018Jim4
2018Q2June05-06-2018James3

<tbody>
</tbody>

Result:
In B2 (Table Sheet1), I would like to have: sum column F (Table sheet2), <= Today date (dynamic), if column E (Table sheet2) is matching column A (Table sheet1) and it is the current month.
In C2 (table Sheet1), same per above, but sum of column G (Table sheet2)
In D2 (Table Sheet1), I would like to have: sum column F (Table sheet2), <= Today date (dynamic), if column E (Table sheet2) is matching column A (Table sheet1) and it is the current quarter or Q2.
In E2 (table Sheet1), same per above, but sum of column G (Table sheet2)

I tried to use helper column/cell but I am not able to find a solution by myself. Any help?

Thank you
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Status
Not open for further replies.

Forum statistics

Threads
1,214,522
Messages
6,120,025
Members
448,939
Latest member
Leon Leenders

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