Can anyone Help me...

imranfarooq

New Member
Joined
Jul 6, 2018
Messages
7
Hi
I am trying to update my updatesheet data to mastersheet via headers with vba. Anyone can help me
Master Sheet
ABCD
1First NameLast NameAgeSalary ($)
2JohnSmith505000
3JohnSmith452000
4J.John402800
Update Sheet
ABCD
1First NameLast NameAgeSalary ($)
2JohnSmith50
3JohnSmith45
4J.John40

<tbody>
</tbody>
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.

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,214,540
Messages
6,120,107
Members
448,945
Latest member
Vmanchoppy

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