Can anyone Help me...

imranfarooq

New Member
Joined
Jul 6, 2018
Messages
7
[TABLE="width: 614"]
<tbody>[TR]
[TD]Hi[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="colspan: 5"]I am trying to update my updatesheet data to mastersheet via headers with vba. Anyone can help me[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Master Sheet[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]First Name[/TD]
[TD]Last Name[/TD]
[TD]Age[/TD]
[TD]Salary ($)[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]John[/TD]
[TD]Smith[/TD]
[TD]50[/TD]
[TD]5000[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]John[/TD]
[TD]Smith[/TD]
[TD]45[/TD]
[TD]2000[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]J.[/TD]
[TD]John[/TD]
[TD]40[/TD]
[TD]2800[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Update Sheet[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]First Name[/TD]
[TD]Last Name[/TD]
[TD]Age[/TD]
[TD]Salary ($)[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]John[/TD]
[TD]Smith[/TD]
[TD]50[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]John[/TD]
[TD]Smith[/TD]
[TD]45[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]J.[/TD]
[TD]John[/TD]
[TD]40[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)

Book1
ABCD
1First NameLast NameAgeSalary ($)
2JohnSmith505000
3JohnSmith452000
4J.John402800
master



Book1
ABCD
1First NameLast NameAgeSalary ($)
2JohnSmith505000
3JohnSmith452000
4J.John402800
update


In D2 of update control+shift+enter, not just enter, and copy down:

=INDEX(master!$D$2:$D$4,SMALL(IF(master!$A$2:$A$4=A2,IF(master!$B$2:$B$4=B2,ROW(master!$A$2:$D$4)-ROW(INDEX(master!$A$2:$D$4,1,1))+1)),COUNTIFS($A$2:A2,A2,$B$2:B2,B2)))
 
Upvote 0

Forum statistics

Threads
1,223,634
Messages
6,173,477
Members
452,516
Latest member
archcalx

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