Sum Currency out of a large table with certain criteria

Rainer

New Member
Joined
Aug 13, 2018
Messages
2
Hello everybody,

I have an order table fetched from Salesforce Analytics with a lower million record count.

In this table I have several records for the same order. One record for each change, that has happened to this order with a corresponding keydate.

In a pivot I now need to sum only one of these records (the max date of an order which is smaller than a specified Date)

I hope I could explain clearly my need? Has anyone an idea how to approach this?

Thankful for any idea.
Rainer
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Of course. Here is a simplified dummy recordset.

LineOrdernumberDate of Order KeyDate Amount
1471101.01.1801.01.18 1,000.00 €
2471101.01.1815.01.18 2,000.00 €
3471101.01.1810.02.18 1,500.00 €
4481315.01.1815.01.18 3,500.00 €
5481315.01.1817.01.18 3,450.00 €
6481315.01.1810.02.18 3,600.00 €
7481315.01.1801.03.18 3,650.00 €
If the Reporting Keydate is 01.03.18 it should sum up lines 3 and 7.
If the Reporting Keydate is 15.01.18 it should sum up lines 2 and 4.
If the Reporting Keydate is 10.01.18 it should sum up line 1, as the second order wasn't created at that time..

<colgroup><col><col><col><col><col></colgroup><tbody>
</tbody>

Thx
Rainer
 
Upvote 0

Forum statistics

Threads
1,214,829
Messages
6,121,826
Members
449,051
Latest member
excelquestion515

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