Convert to pivot table

jocker_boy

Board Regular
Joined
Feb 5, 2015
Messages
83
Hello,

I have a big table with data of documentation control (+5000 lines).
Example:

Document (A1)VersionSiteOwnerStatusStatus Date
A001AS01JohnSubmited
01/11/2022​
A002AS02VitorSubmited
01/11/2022​
A003AS02MirandaSubmited
01/11/2022​
A001AS01JohnComments
15/11/2022​
A002AS02VitorComments
02/12/2022​
A003AS02MirandaApproved
02/12/2022​
A001BS01JohnSubmited
02/01/2023​
A002BS02VitorSubmited
02/03/2023​

My goal is to obtain this table:

Each row have unique document;
And for each month i have the latest status of that document.
Example:
Document A001 in Novembre was "Submited" in 01/11/2022 and receive "Comments" in 15/11/2022, so the status in November is "Comments".

Document (J1)set/22 (K1)out/22 (L1)nov/22 (M1)dez/22 (N1)jan/23 (O1)fev/23 (P1)mar/23 (Q1)abr/23 (R1)
A001CommentsSubmited
A002CommentsSubmited
A003Approved

I can get this table with this formula for cell K2:
{=IFERROR(INDEX($E$2:$E$9;MAX(($A$2:$A$9=$J2)*($F$2:$F$9>K$1)*($F$2:$F$9<L$1)*ROW($E$2:$E$9))-1);"")}

But i would like to have the same result with a pivot table, because with this formula the file becomes to slow because i have more than 5000 lines in my database.
And also, i would like to filter the table with other data, for example: For each owner, for each site. I know i can add this "filter" in the formula, but it isn't fast and practical.

Thanks for all the help.
Gonçalo
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type

Forum statistics

Threads
1,215,731
Messages
6,126,537
Members
449,316
Latest member
sravya

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