Excel Formula help

manoj18071965

Board Regular
Joined
Sep 16, 2011
Messages
65
The data on the left are the invoices Data on right side are the receipts I need to allocate the receipt against invoices and where there is partial payment the adjustment will come from second payment Secondly I also need to identify the invoices are adjusted against which receipt so each receipt number will have a unique number that has to be infront of invoices


Internal IDDateRM InvCustomer #AmountReceipt#AllocationCustomer#Receipt#Receipt Amt
157275/6/2011100030-0001C1014 3,500C104450001 38,123
157335/13/2011100037-0001C1014 3,500C104450002 760,626
157535/29/2011100030-0002C1014 3,096C104450003 51,813
157666/2/2011100053-0001C1014 5,250C104450004 38,123
157766/7/2011100057-0001C1014 5,250C101450005 406,206
157896/13/2011100037-0002C1014 3,500C101450006 16,356
158327/2/2011100053-0002C1014 5,250C101450007 30,454
158457/7/2011100057-0002C1014 5,250C101450008 24,595
158687/13/2011100037-0003C1014 3,500
159168/2/2011100053-0003C1014 5,250
159218/6/2011100103-0001C1014 5,250
159228/7/2011100057-0003C1014 5,250
159448/13/2011100037-0004C1014 3,500 1,366,295 1,366,295
159588/18/2011100120-0001C1044 10,000
159738/21/2011100057-0004C1014 2,423
160359/2/2011100053-0004C1014 5,250
160689/6/2011100103-0002C1014 5,250
160939/13/2011100037-0005C1014 3,500
161169/18/2011100120-0002C1044 10,000
1619110/2/2011100053-0005C1014 5,250
1620510/6/2011100103-0003C1014 5,250
1622110/10/2011100195-0001C1044 8,400
1624310/13/2011100037-0006C1014 3,500
1625910/18/2011100120-0003C1044 10,000
1627710/22/2011100207-0001C1014 10,500
1636711/2/2011100053-0006C1014 5,250
1638011/6/2011100103-0004C1014 5,250
1639611/10/2011100195-0002C1044 8,400
1641311/13/2011100037-0008C1014 3,500
1643511/18/2011100120-0004C1044 10,000
1645511/22/2011100207-0002C1014 10,500
1654312/1/2011100281-0001C1014 3,500
1655712/2/2011100053-0007C1014 5,250
1656712/4/2011100195-0003C1044 4,307
1656512/4/2011100120-0005C1044 5,385
1657312/5/2011100281-0002C1014 538
1657712/6/2011100103-0005C1014 5,250
1659912/10/2011100195-0004C1044 2,800
1661612/13/2011100037-0009C1014 3,500
168061/3/2012100053-0008C1014 5,250
168231/8/2012100103-0006C1014 5,250
168471/10/2012100195-0005C1044 2,800
168811/15/2012100037-0010C1014 3,500
169401/17/2012100366-0001C1014 10,500
170552/2/2012100053-0009C1014 5,250
170752/6/2012100103-0007C1014 5,250
171162/12/2012100366-0002C1014 7,673
171182/12/2012100195-0006C1044 2,800
171382/14/2012100037-0011C1014 3,500
173163/4/2012100053-0010C1014 5,250
173333/6/2012100103-0008C1014 5,250
173593/10/2012100195-0008C1044 2,800
173843/13/2012100037-0012C1014 3,500
174643/24/2012100195-0009C1044 1,400
174883/26/2012100103-0009C1014 3,635
174873/26/2012100037-0013C1014 1,615
175543/31/2012100053-0011C1014 4,846
190938/16/2012100765-0001C1014 5,250
193469/4/2012100828-0001C1014 2,200
1983410/20/2012100864-0001C1044 3,600
2019711/20/2012100864-0002C1044 3,600
2020611/21/2012100928-0001C1014 5,250
2056812/20/2012100864-0003C1044 3,600
210221/20/2013100864-0004C1044 3,600
214082/20/2013100864-0005C1044 3,600
217873/20/2013100864-0006C1044 3,600
222124/20/2013100864-0007C1044 3,600
226765/20/2013100864-0008C1044 3,600
231476/20/2013100864-0009C1044 3,600
236527/20/2013100864-0010C1044 3,600
241158/7/2013100864-0011C1044 2,077
311708/24/2014102062-0001C1014 4,000
318549/24/2014102062-0002C1014 4,000
3245410/15/2014102158-0001C1044 15,500
3261610/26/2014102174-0001C1044 3,100
3261510/26/2014102158-0002C1044 2,862
3264710/28/2014102181-0001C1044 3,100
3264610/28/2014102174-0002C1044 18,600
3264910/29/2014102174-0003C1044 238
3310911/5/2014102217-0001C1044 3,121
3310811/5/2014102174-0004C1044 5,365
3310711/5/2014102158-0003C1044 3,815
3317811/13/2014102202-0002C1014 5,250
3323111/18/2014102202-0003C1014 606
3325711/20/2014102217-0002C1044 3,179
3363311/30/2014102174-0005C1044 15,500
3363011/30/2014102158-0004C1044 6,200
3413812/31/2014102174-0006C1044 15,500
3413712/31/2014102158-0005C1044 6,200
345601/7/2015102174-0007C1044 596
347611/26/2015102174-0008C1044 2,504
351601/31/2015102174-0009C1044 9,300
351591/31/2015102158-0006C1044 6,200
353372/16/2015102158-0007C1044 1,550
357642/28/2015102174-0010C1044 9,300
357632/28/2015102158-0008C1044 3,100
362453/31/2015300721-0002C1044 37,384
362443/31/2015102174-0011C1044 9,300
362433/31/2015102158-0009C1044 3,100
366964/7/2015300721-0003C1044 1,846
366974/8/2015300721-0004C1044 4,308
372964/30/2015102174-0012C1044 9,300
372954/30/2015102158-0010C1044 3,100
376945/31/2015102174-0013C1044 9,300
376935/31/2015102158-0011C1044 3,100
389386/30/2015102174-0014C1044 9,300
389376/30/2015102158-0012C1044 3,100
396747/31/2015102174-0015C1044 9,300
396737/31/2015102158-0013C1044 3,100
402188/31/2015102174-0016C1044 9,300
402178/31/2015102158-0014C1044 3,100
409699/30/2015102174-0017C1044 3,219
409689/30/2015102158-0015C1044 3,100
5205212/23/2016103310-0001C1014 12,000
5205112/23/2016103309-0001C1014 6,000
528151/23/2017103310-0002C1014 12,000
528141/23/2017103309-0002C1014 6,000
534672/20/2017103310-0003C1014 9,231
535022/23/2017103309-0003C1014 6,000
542043/23/2017103309-0004C1014 6,000
547374/3/2017103309-0005C1014 2,077
5880410/31/2017103837-0001C1044 9,627
5939111/30/2017103908-0001C1044 1,385
5939011/30/2017103890-0001C1044 5,077
5938911/30/2017103837-0002C1044 15,000
5998612/17/2017103908-0002C1044 10,615
6039012/31/2017103890-0002C1044 12,000
6038912/31/2017103837-0003C1044 14,998
615411/31/2018103940-0002C1044 11,550
615401/31/2018103890-0003C1044 12,490
615391/31/2018103837-0004C1044 15,750
622852/28/2018104066-0001C1044 8,238
622842/28/2018103940-0003C1044 11,550
622832/28/2018103890-0004C1044 12,600
622822/28/2018103837-0005C1044 15,750
627593/15/2018103837-0006C1044 7,269
627773/18/2018104089-0001C1014 44,100
634323/31/2018104123-0001C1014 2,940
634313/31/2018104119-0001C1014 5,089
634303/31/2018104115-0001C1014 16,478
633913/31/2018104091-0002C1044 12,600
633903/31/2018104066-0002C1044 12,600
633893/31/2018103940-0004C1044 11,550
633883/31/2018103890-0005C1044 12,600
634914/6/2018104102-0001C1014 6,300
635264/12/2018104123-0002C1014 1,470
635254/12/2018104115-0002C1014 4,361
635474/16/2018104119-0002C1014 3,731
635454/16/2018104102-0002C1014 1,696
636034/23/2018104091-0003C1044 9,208
636024/23/2018103890-0006C1044 9,208
640694/30/2018104066-0003C1044 12,600
640684/30/2018103940-0005C1044 10,217
646185/31/2018104066-0004C1044 12,600
646175/31/2018103940-0006C1044 11,550
654716/30/2018104066-0005C1044 12,593
654706/30/2018103940-0007C1044 9,328
665817/31/2018104296-0001C1044 4,239
665807/31/2018104066-0006C1044 12,600
665797/31/2018103940-0008C1044 11,550
668878/31/2018104296-0002C1044 15,750
668868/31/2018104066-0007C1044 12,600
668858/31/2018103940-0009C1044 11,328
676109/30/2018104296-0003C1044 15,750
676099/30/2018104066-0008C1044 12,300
676089/30/2018103940-0010C1044 10,073
6837210/31/2018600131-0001C1044 5,775
6837110/31/2018104425-0001C1044 7,916
6837010/31/2018104296-0004C1044 15,750
6836910/31/2018104066-0009C1044 12,600
6836810/31/2018103940-0011C1044 9,772
6930711/30/2018600131-0002C1044 11,550
6930611/30/2018104425-0002C1044 2,423
6930511/30/2018104296-0005C1044 15,750
6930411/30/2018104066-0010C1044 12,600
6930311/30/2018103940-0012C1044 11,550
1304401/2/2019104517-0001C1014 8,885
1304891/9/2019104517-0002C1014 4,523
1305091/15/2019104517-0003C1014 9,692
1321353/31/2019104625-0001C1014 16,35616356
2059024/21/2019104625-0002C1014 12,975
2059154/22/2019104625-0003C1014 5,888
2064634/30/2019104660-0001C1014 24,59524595
2064624/30/2019104659-0002C1014 5,654
2059894/30/2019104659-0001C1014 5,937#N/A
1,366,295

<colgroup><col><col><col><col><col><col span="4"><col><col><col></colgroup><tbody>
</tbody>
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Please check if this is the kind of formula help you are looking for.


Excel 2013/2016
ABCDEFGHIJK
1Internal IDDateRM InvCustomer #AmountReceipt#Allocation ReceiptCustomer#Receipt#Receipt Amt
21572740669100030-0001C10143500-00001-15727C10445000138123
31573340676100037-0001C10143500-70001-15733C104450002760626
41575340692100030-0002C10143096-00002-15753C10445000351813
51576640696100053-0001C10145250-30001-15766C10445000438123
61577640701100057-0001C10145250-70001-15776C101450005406206
71578940707100037-0002C10143500-70002-15789C10145000616356
81583240726100053-0002C10145250-30002-15832C10145000730454
91584540731100057-0002C10145250-70002-15845C10145000824595
Sheet25
Cell Formulas
RangeFormula
F2=IFERROR(VLOOKUP(VALUE(SUBSTITUTE(RIGHT($C2,6),"-","")),$J$2:$J$9,1,0),"-")
G2=IF(LEN(VALUE(SUBSTITUTE(RIGHT($C2,6),"-","")))=1,(SUBSTITUTE(RIGHT($C2,6),"-","")&"-"&$A2),(SUBSTITUTE(RIGHT($C2,6),"-","")&"-"&$A2))
 
Last edited:
Upvote 0
Dear Sam,

Thank you.

Kindly advise Receipt#50001 having Receipt Amt 38123 (For Multiple Invoiced amount), how can be traced that 38123 combined amount is for which invoices. - Manoj
 
Upvote 0
Please check the accuracy of the master data from your end. Cause looked up value is more that the receipt amount. And for to find the multiple invoice you can either use "Filter" or "Pivot" or even can apply "Formula'.

0eV5AHo.jpg


Iwiwkyb.jpg
 
Upvote 0

Forum statistics

Threads
1,214,875
Messages
6,122,044
Members
449,063
Latest member
ak94

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