Vba excel macro - create pivot table and show selected details based on employee id

amit81_ahl

New Member
Joined
May 22, 2018
Messages
1
Hi

I have below dummy data and would like to create pivot table using vba macro. Mutiple users should be allowed to view data as per privilege given.

[FONT=&quot]1) Main data is always available with us[/FONT]
[FONT=&quot]2) Pivot table to prepared through macro. (same has been prepared without macro in the attached sheet)[/FONT]
[FONT=&quot]3) Unit Manager should be able to view details reporting RM's under him. E.g. Bharat should be able to view pivot table for Amit, Rajesh & Sumit. Same way for Karam & Param.[/FONT]
[FONT=&quot]4) Individual RM should be able to view his data only. For example : Amit should be able to view only his data. Similarly for Rajesh, Sumit, Jinu, Prabu.[/FONT]
[FONT=&quot]
[/FONT]

[FONT=&quot]All mapping should be done based on Masterfile (Employee login ids).


[/FONT]
CIS NORM NORM NAMESegmentMonth End Balance(Non-investment)Current Balance(Non-investment)MTD Movement (Non-Investment)Previous Month End Balance (Investment)Current Balance (Investment)MTD Movement (Investment)Final CM Level Movement - Net MovementUnit Manager
12345612345AMITPRIVATE 40,000.00 36,000.00 (4,000.00) 50,000.00 36,000.00 (14,000.00) (18,000.00)Bharat
12345612345AMITPRIVATE 43,000.00 39,000.00 (4,000.00) 52,000.00 39,000.00 (13,000.00) (17,000.00)Bharat
12345612345AMITPRIVATE 46,000.00 42,000.00 (4,000.00) 54,000.00 42,000.00 (12,000.00) (16,000.00)Bharat
12345612345AMITPRIVATE 49,000.00 45,000.00 (4,000.00) 56,000.00 45,000.00 (11,000.00) (15,000.00)Bharat
12345712346SUMITPRIVATE 51,000.00 47,000.00 (4,000.00) 58,000.00 47,000.00 (11,000.00) (15,000.00)Bharat
12345712346SUMITPRIVATE 53,000.00 49,000.00 (4,000.00) 60,000.00 49,000.00 (11,000.00) (15,000.00)Bharat
12345712346SUMITPRIVATE 55,000.00 51,000.00 (4,000.00) 62,000.00 51,000.00 (11,000.00) (15,000.00)Bharat
12345712346SUMITPRIVATE 57,000.00 53,000.00 (4,000.00) 64,000.00 53,000.00 (11,000.00) (15,000.00)Bharat
12345812347RAJESHPRIVATE 59,000.00 55,000.00 (4,000.00) 66,000.00 55,000.00 (11,000.00) (15,000.00)Bharat
12345812347RAJESHPRIVATE 61,000.00 57,000.00 (4,000.00) 68,000.00 57,000.00 (11,000.00) (15,000.00)Bharat
12345812347RAJESHPRIVATE 63,000.00 59,000.00 (4,000.00) 70,000.00 59,000.00 (11,000.00) (15,000.00)Bharat
12345812347RAJESHPRIVATE 65,000.00 61,000.00 (4,000.00) 72,000.00 61,000.00 (11,000.00) (15,000.00)Bharat
12345912348PRASADPRIVATE 67,000.00 63,000.00 (4,000.00) 71,000.00 63,000.00 (8,000.00) (12,000.00)Param
12345912348PRASADPRIVATE 69,000.00 70,000.00 1,000.00 70,000.00 70,000.00 - 1,000.00Param
12345912348PRASADPRIVATE 71,000.00 72,000.00 1,000.00 69,000.00 72,000.00 3,000.00 4,000.00Param
12345912348PRASADPRIVATE 73,000.00 74,000.00 1,000.00 68,000.00 74,000.00 6,000.00 7,000.00Param
12345912348PRASADPRIVATE 75,000.00 76,000.00 1,000.00 67,000.00 76,000.00 9,000.00 10,000.00Param
12346012349PRABUPRIVATE 77,000.00 78,000.00 1,000.00 66,000.00 78,000.00 12,000.00 13,000.00Param
12346012349PRABUPRIVATE 79,000.00 80,000.00 1,000.00 65,000.00 80,000.00 15,000.00 16,000.00Param
12346012349PRABUPRIVATE 81,000.00 82,000.00 1,000.00 64,000.00 82,000.00 18,000.00 19,000.00Param

<colgroup><col><col><col><col><col span="2"><col><col><col span="2"><col><col></colgroup><tbody>
</tbody>
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce

Forum statistics

Threads
1,214,833
Messages
6,121,869
Members
449,054
Latest member
juliecooper255

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