Forum Discussion
Keep the row numbers in pivot table when you sort on field
- Sep 24, 2024
kennethsorsdalbirno right. This way it is never going to work. Excel doesn't "know" the data you put next to a pivot table needs to stay with a certain row of the pivot table. You need to create a separate table for the comments which has all the unique items which are your current pivot table rows. Then use a lookup formula to fetch the information from that table next to your pivot table.
- How the row numbers are generated
- How the comments you mention are fetched along the correct row numbers
- kennethsorsdalbirnoSep 24, 2024Copper Contributor
The first picture you see the table when i have not used the filter. You can see the comments at each row.
In this picture i have used the filter 100. You can see that the comments do not follow the row they where written to
- JKPieterseSep 24, 2024Silver Contributor
kennethsorsdalbirno right. This way it is never going to work. Excel doesn't "know" the data you put next to a pivot table needs to stay with a certain row of the pivot table. You need to create a separate table for the comments which has all the unique items which are your current pivot table rows. Then use a lookup formula to fetch the information from that table next to your pivot table.