VBA fix data population

Goes80

New Member
Joined
Sep 26, 2021
Messages
1
Office Version
  1. 365
Hi All
I'm new in this forum.
I have an excel situation that i'd like to ask.
assuming that i have a raw data as below
LessonScoreStudent NameAddressPhone NumberStudent NameAddressPhone Number
English
70​
AliAliJakarta
9876543​
English
70​
BudiBudiBandung
8765432​
English
70​
DaniDaniSurabaya
7654321​
Math
80​
Ali
Math
80​
Budi
Math
80​
Dani

i would like to create VBA button to populate the address and phone number based on the source data which is address and phone number.
in this button should be automatically populate only the address and phone number whenever i fill in new lesson and score, so the column of lesson, score and student name are manually entry but the vba button should only fill in the address and phone number column.

thank you for you support.
let me know if you have any concern for this question. thank you.
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
With Power Query, Join the two tables with a Left Outer Join
Power Query:
let
    Source = Table.NestedJoin(Table1, {"Student Name"}, Table2, {"Student Name"}, "Table2", JoinKind.LeftOuter),
    #"Expanded Table2" = Table.ExpandTableColumn(Source, "Table2", {"Address", "Phone Number"}, {"Table2.Address", "Table2.Phone Number"})
in
    #"Expanded Table2"
 
Upvote 0

Forum statistics

Threads
1,223,897
Messages
6,175,271
Members
452,628
Latest member
dd2

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