How to distinguish data from same column to different columns

bobbiehkmskan

New Member
Joined
Aug 15, 2021
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Good day,

I would like to solve this problem using formula, query, or pivot.

My company is issuing invoices. Most of them charge audit service fee and outlay together, and a few of them only charge outlay.
I cannot think of a logic to distinguish them in the format I expected.

Please help.

Service fee and outlay.png
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Hi and welcome to MrExcel,

Try this and see if this helps:

Book1
ABCDEF
1
2Invoice DateInvoice NumberReferenceAccountGrossInvoice Total
38-1-202172100012E265/1032050101 - Audit Ser Fee Rec'd-Audit5.000,005.800,00
48-1-202172100012E265/1032032001 - Outlay Rec'd-T/E & Courier200,005.800,00
58-1-202172100012E265/1032032002 - Outlay300,005.800,00
68-1-202172100012E265/1032032007 - Outlay300,005.800,00
720-1-202172100028L420/1032032001 - Outlay Rec'd-T/E & Courier900,00900,00
8
9
10Invoice DateInvoice NumberReferenceFeeOutlayInvoice Total
118-1-202172100012E265/103205.000,00800,005.800,00
1220-1-202172100028L420/10320-900,00900,00
Sheet2
Cell Formulas
RangeFormula
A11:C12A11=UNIQUE($A$3:$C$7,FALSE)
D11:E12D11=SUMIFS($E$3:$E$7,$D$3:$D$7,"*"&D$10&"*",$C$3:$C$7,$C11,$B$3:$B$7,$B11,$A$3:$A$7,$A11)
F11:F12F11=SUM(D11:E11)
Dynamic array formulas.
 
Upvote 0
Solution

Forum statistics

Threads
1,216,128
Messages
6,129,030
Members
449,482
Latest member
al mugheen

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