Excel Formula Help

Katec

New Member
Joined
Jul 11, 2018
Messages
9
Hi Experts!

I'm hoping someone can assist with a formula that I hope Excel can do! We have a customer who sends us money for payment through ACH. They have several invoices with us but all we receive is a total amount in our bank account and no remittance advice. Is there an Excel formula where you can plug in the open invoices and the total paid and Excel can determine what amounts add up to the total paid? (hopefully this description makes sense)

Thank you so much in advance!

Kate
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Thank you for your quick response. I'm looking for something more like this:

[TABLE="width: 339"]
<colgroup><col width="132" style="width: 99pt;"><col width="87" style="width: 65pt;"><col width="120" style="width: 90pt;"></colgroup><tbody>[TR]
[TD="class: xl63, width: 132"]Open Invoices[/TD]
[TD="width: 87"][/TD]
[TD="class: xl63, width: 120"]Amount Paid[/TD]
[/TR]
[TR]
[TD="class: xl64"] $ 5,231.00 [/TD]
[TD][/TD]
[TD="class: xl64"] $ 6,094.43 [/TD]
[/TR]
[TR]
[TD="class: xl64"] $ 7,459.00 [/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl64"] $ 307.69 [/TD]
[TD][/TD]
[TD="class: xl63"]Invoices Paid[/TD]
[/TR]
[TR]
[TD="class: xl64"] $ 4,956.00 [/TD]
[TD][/TD]
[TD="class: xl64"] $ 5,231.00 [/TD]
[/TR]
[TR]
[TD="class: xl64"] $ 201.99 [/TD]
[TD][/TD]
[TD="class: xl64"] $ 307.69 [/TD]
[/TR]
[TR]
[TD="class: xl64"] $ 555.74 [/TD]
[TD][/TD]
[TD="class: xl64"] $ 555.74 [/TD]
[/TR]
[TR]
[TD="class: xl64"] $ 3,219.44 [/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
So for this, we would enter in all of their open invoices, the amount paid, and excel would determine which amounts out of the open invoices equaled the amount paid. Hopefully, I explained myself better!
 
Upvote 0
I'm so sorry, I feel like you are doing everything to help and I'm not getting the answer because I'm not explaining myself! For your table, I know the information in Column B and I know the amount paid. From that, I want Excel to tell me Column C. For instance if I enter a total of $6094.43, I want excel to tell me which amounts the customer paid or populate column C. Basically, out of the open invoices which ones equal the total paid.
 
Upvote 0
If the volume of numbers is not too great, the manual process shown below can help.

Solver and/or solutions cited below can help.


Excel 2010
BCDE
2Open InvoicesAmount Paid
3$5,231.001$6,094.43TRUE
4$7,459.00
5$307.691
6$4,956.00
7$201.99
8$555.741
9$3,219.44
10
2d
Cell Formulas
RangeFormula
E3=SUMPRODUCT(B3:B9,C3:C9)=D3


There was a good discussion on this years ago. It may have been part of an Excel Challenge.
I do not have the reference.


Check
Which numbers add up to a specific total

VBA Sub by Harlan Grove

Find a set of amounts that match a target value
By Tushar Mehtahttp://www.tushar-mehta.com http://www.tushar-mehta.com/excel/software/match_target/
 
Last edited:
Upvote 0
I have tried to use the solver from this link:

https://www.extendoffice.com/docume...nd-all-combinations-that-equal-given-sum.html

The solver puts the "1" and "0" in column B.

Then I altered the sheet using it:

Sheet1


ABC








<colgroup><col style="font-weight:bold; width:30px; "><col style="width:129.6px;"><col style="width:97.6px;"><col style="width:150.4px;"></colgroup><tbody>
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]1[/TD]
[TD="align: center"]Open Invoices[/TD]
[TD="align: center"]Solver Results[/TD]
[TD="align: center"]Amount Paid[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]2[/TD]
[TD="align: center"]$5,231.00 [/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]$6,094.43 [/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]3[/TD]
[TD="align: center"]$7,459.00 [/TD]
[TD="align: center"]0[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]4[/TD]
[TD="align: center"]$307.69 [/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]Invoices Paid[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]5[/TD]
[TD="align: center"]$4,956.00 [/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]$5,231.00[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]6[/TD]
[TD="align: center"]$201.99 [/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]$307.69[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]7[/TD]
[TD="align: center"]$555.74 [/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]$555.74[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]8[/TD]
[TD="align: center"]$3,219.44 [/TD]
[TD="align: center"]0[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]9[/TD]

[TD="align: center"]$6,094.43[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]10[/TD]

</tbody>

Spreadsheet Formulas
CellFormula
C2=B9
C5{=IFERROR(INDEX($A$2:$A$8,SMALL(IF($B$2:$B$8=1,ROW($B$2:$B$8)-ROW($B$2)+1),ROWS($B$2:$B2))),"")}
C6{=IFERROR(INDEX($A$2:$A$8,SMALL(IF($B$2:$B$8=1,ROW($B$2:$B$8)-ROW($B$2)+1),ROWS($B$2:$B3))),"")}
C7{=IFERROR(INDEX($A$2:$A$8,SMALL(IF($B$2:$B$8=1,ROW($B$2:$B$8)-ROW($B$2)+1),ROWS($B$2:$B4))),"")}
C8{=IFERROR(INDEX($A$2:$A$8,SMALL(IF($B$2:$B$8=1,ROW($B$2:$B$8)-ROW($B$2)+1),ROWS($B$2:$B5))),"")}
B9=SUMPRODUCT(A2:A8,B2:B8)
C9{=IFERROR(INDEX($A$2:$A$8,SMALL(IF($B$2:$B$8=1,ROW($B$2:$B$8)-ROW($B$2)+1),ROWS($B$2:$B6))),"")}
C10{=IFERROR(INDEX($A$2:$A$8,SMALL(IF($B$2:$B$8=1,ROW($B$2:$B$8)-ROW($B$2)+1),ROWS($B$2:$B7))),"")}

<tbody>
</tbody>
Formula Array:
Produce enclosing
{ } by entering
formula with CTRL+SHIFT+ENTER!

<tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4
 
Last edited by a moderator:
Upvote 0

Forum statistics

Threads
1,224,755
Messages
6,180,758
Members
452,996
Latest member
nelsonsix66

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