Sum the values from the column for a specific period which matches values from another column corresponding to that specific period

thetnaingsoe

New Member
Joined
Nov 7, 2018
Messages
7
Office Version
  1. 365
Platform
  1. Windows
Hi everyone

I have a few columns (column A to H) representing "PO number" and "PO line item" with the date range being Billing Period.
Column I has the resource names.
There are some other columns at the back (column J to W) which represents "Hours" and "Cost" with the date range.

I am making a summary for each billing period along with PO Number, PO line item and its corresponding cost.

I was trying to write a sumproduct formula to achieve the result in summary, but it was giving me #NA.

Is there any other formula which can produce the same result in summary?
 

Attachments

  • Summary of Cost.PNG
    Summary of Cost.PNG
    93.2 KB · Views: 8

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
@thetnaingsoe
Please post your data as a minisheet or table. To paste as a mini sheet install the xl2bb add in (link below).
Also, please post expected values.
 
Upvote 0
@awoohaw
Here is the minisheet. And the cost in summary table is the expected values.
Excel Questions.xlsx
ABCDEFGHIJKLMNOPQRSTUVW
1Jan-23Jan-23Feb-23Feb-23Mar-23Mar-23May-23May-23Jan-23Jan-23Feb-23Feb-23Mar-23Mar-23Apr-23Apr-23May-23May-23Jun-23Jun-23Jul-23Jul-23
2Jan-23Jan-23Feb-23Feb-23Apr-23Apr-23Jul-23Jul-23Jan-23Jan-23Feb-23Feb-23Mar-23Mar-23Apr-23Apr-23May-23May-23Jun-23Jun-23Jul-23Jul-23
3
4Pre-AcquisitionPre-AcquisitionPre-AcquisitionPre-AcquisitionPre-AcquisitionPre-AcquisitionPost-AcquisitionPost-AcquisitionResourcesJan-23Jan-23Feb-23Feb-23Mar-23Mar-23Apr-23Apr-23May-23May-23Jun-23Jun-23Jul-23Jul-23
5PO NumberPO Line ItemPO NumberPO Line ItemPO NumberPO Line ItemPO NumberPO Line ItemHoursCostHoursCostHoursCostHoursCostHoursCostHoursCostHoursCost
6111All222344416661 & 2A22001100001100220055001100
72222111All55517771B1200120012001200120024001200
83335333433328881C1150230023001150345034501150
9
10Summary
11Billing PeriodPO NumberPO Line ItemCost
12Jan-23111All200
13Jan-232222200
14Jan-233335150
15Jan-2333340
16
17Feb-232223100
18Feb-23111All200
19Feb-2333350
20Feb-233334300
21
22Mar-2333330
23Mar-2344410
24Mar-235551200
25Mar-233332300
26
27Apr-234441100
28Apr-235551200
29Apr-233332150
Sheet1
Cell Formulas
RangeFormula
D12:D14D12=K6
D17:D18D17=M6
D20D20=M8
D23:D25D23=O6
D27:D29D27=Q6
 
Upvote 0

Forum statistics

Threads
1,215,073
Messages
6,122,975
Members
449,095
Latest member
Mr Hughes

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