VBA copy Value matching Cell sheet name and value

hajiali

Well-known Member
Joined
Sep 8, 2018
Messages
624
Office Version
  1. 2016
Platform
  1. Windows
Hello everyone. I need help with the following:

Date of Payment2/15/2021
Paid ToJOHN$50.00
Paid ToBILL$100.00
Paid ToTOM$29.00
Paid ToSARA$200.00
Paid ToKIM$20.00
Paid To
Paid To


each person in column B will have its own sheet. Within each person sheet Range("C14:C373") will have dates

Using the above Table I need a Macro to copy the Paid amount for each individual to its sheet in column F, matching date in Cell (B55) "MM/YYYY" to the date in Range for each person ("C14:C373")

using above example

sheet(JOHN) cell C24 = 2/5/2021
value in F24 = $50.00

sheet(BILL) cell C300 = 2/15/2021
value in F300 = $1000.00

sheet(TOM) cell C14 = 2/1/2021
value in F14 = $29.00

sheet(SARA) cell C240 = 2/5/2021
value in F240 = $200.00

sheet(KIM) cell C204 = 2/28/2021
value in F204 = $20.00

Notice the Day is not important so only match the Date "MM/YYYY" to the "MM/YYYY" to each sheet in Range("C14:C373")
also the date MM/YYYY will not be duplicated.

note: the Name and paid amount could be 1 person to 7 people.

any help is greatly appreciated.
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".

Forum statistics

Threads
1,214,996
Messages
6,122,636
Members
449,092
Latest member
bsb1122

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