Matching and moving values to the correct cell

INNOCENTLES

New Member
Joined
Jul 17, 2024
Messages
4
Office Version
  1. 365
Platform
  1. Windows
Good day ,

I am in finance, and I have to match the payments received in advance with claims made against payment.

for example, guest " A" makes a payment of $5000 in January for a reservation in March which will create a credit to be used in future. They then come in March to enjoy our facilities and it can be for the exact amount or less, in this instance let's say they used the whole 5k . The reports for payments and claims are from separate sources and I have to consolidate them to make a reconciliation to track how much each guest has left on their account. The only thing I can use to make sure I reconcile each claim to the correct Payment is the reservation number.

I need a formula or a VBA that can move the claim value to the payment row line where the claim and the payment have the same exact reservation number. The balance will be the sum of payment column and claim column.
please also factor in that the
thank you


RESERVATION NUMBERGUEST NAMEPAYMENTCLAIMBALANCE
23252563
A5,000.00I need the 5k claim moved to this cell5,000.00
23652552​
B3,500.003,500.00
23144552​
C1,500.001,500.00
23954445​
D9,500.009,500.00
23669843​
E6,000.006,000.00
23587412​
F1,200.001,200.00
23578951​
G1,000.001,000.00
23655774​
H3,200.003,200.00
23578951​
G(990.00)(990.00)
23655774​
H(3,200.00)(3,200.00)
23669843​
E(5,500.00)(5,500.00)
23587412​
F(1,200.00)(1,200.00)
23252563
A(5,000.00)(5,000.00)
23652552​
B(3,000.00)(3,000.00)
23144552​
C(1,500.00)(1,500.00)
23954445​
D(9,450.00)(9,450.00)

***...please also factor in that the values do not have to be duplicated/copied but moved.

thanks
 
Last edited by a moderator:

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
So you have two separate sheets elsewhere, one with the Payments and one with the voucher-like Claims? Are they tables so that you can use column names for references?

If so, my first thought would be to pull in the separate sheets with Power Query/Get Data, then to create a list of Reservation Numbers from both lists using VSTACK to combine the Reservation columns, UNIQUE to get rid of duplicates, then maybe SORT if you want them in order. Then the Payment and Claim columns are just a matter XLOOKUPs or INDEX-MATCH.

If that doesn't make sense, let me know. I would need more info about the other sheets that have the Payments and Claims on them before I could create useful formulas.
 
Upvote 0
Hi , thank you for your reply .

Ignoring the part where there's multiple sources of information and just working on the image I provided above can you please do that formula for me .Assuming that columns above are A,B,C,D AND E. THANK YOU
 
Upvote 0
You said in a previous post:
Quote:
"Please do that formula for me"

I'm really no good at writing difficult formulas.
I mostly deal with Vba
Maybe someone else on the forum will be able to help you. I will keep watching and see what I can learn. Take care and have a nice day.
 
Upvote 0

Forum statistics

Threads
1,223,889
Messages
6,175,223
Members
452,620
Latest member
dsubash

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