Home

Return Data from Privot table according to sums.

%3CLINGO-SUB%20id%3D%22lingo-sub-781943%22%20slang%3D%22en-US%22%3EReturn%20Data%20from%20Privot%20table%20according%20to%20sums.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-781943%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20Wizards%2C%20I%20need%20to%20get%20data%20form%20a%20pivot%20table%20according%20to%20the%20sum%20values%20in%20the%20table.%20I%20have%20a%20table%20that%20has%20each%20store's%20name%2C%20address%2C%20zip%2C%20etc%20on%20the%20vertical%20left%20of%20the%20table%20with%20the%20months%20across%20the%20top.%20The%20table%20measure%20sum%20of%20sales%20per%20product%20per%20store%20by%20month.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20need%20to%20find%20all%20stores%20that%20have%20sold%20within%20specific%20months.%20I%20have%20tried%20GETPIVOTDATA%2C%20but%20it%20seems%20to%20only%20be%20able%20to%20return%20the%20sum%20of%20sales%20of%20specific%20stores%20rather%20than%20the%20stores%20with%20specific%20sales.%20I%20also%20need%20to%20be%20able%20to%20adjust%20the%20month%26nbsp%3B%20of%20sales%20it%20is%20looking%20at.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERight%20now%2C%20I%20am%20using%20an%20ISBLANK%20function%20referencing%20the%20latest%20month%20and%20building%20a%20separate%20table%20from%20that.%20However%2C%20I%20can't%20adjust%20the%20dates%20with%20the%20current%20set%20up%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-781943%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EINDEX%20MATCH%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPivot%20tables%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-782244%22%20slang%3D%22en-US%22%3ERe%3A%20Return%20Data%20from%20Privot%20table%20according%20to%20sums.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-782244%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F385111%22%20target%3D%22_blank%22%3E%40Max__%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHi%3C%2FP%3E%3CP%3EWhen%20you%20refer%20to%20a%20cell%20from%20a%20Pivot%20Table%20into%20another%20cell%2C%20Excel%20creates%20a%20GETPIVOTDATA%20function.%3C%2FP%3E%3CP%3EThis%20function%20creates%20an%20ABSOLUTE%20reference.%20You%20can%20either%3A%3C%2FP%3E%3CUL%3E%3CLI%3EPut%20the%20GetPivotData%20function%20in%20the%20edit%20mode%20F2%20%26gt%3B%26gt%3B%20then%20edit%20the%20hardcoded%20reference%2C%20OR%3C%2FLI%3E%3CLI%3ETurn%20Off%20this%20functionality%20by%20clicking%20on%20File%20%26gt%3B%26gt%3B%20Options%20%26gt%3B%26gt%3B%20Formulas%20%26gt%3B%26gt%3B%20take%20the%20Check%20away%20from%26nbsp%3B%26nbsp%3B%3CSTRONG%3E%22Use%20GetPivotData%20Function%20for%20Pivot%20Table%20References%3C%2FSTRONG%3E%22%20%26gt%3B%26gt%3BOK%3C%2FLI%3E%3C%2FUL%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F125130i8C2A873D2AF64753%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22GetPivot.png%22%20title%3D%22GetPivot.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHope%20that%20helps%3C%2FP%3E%3CP%3ENabil%20Mourad%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-782261%22%20slang%3D%22en-US%22%3ERe%3A%20Return%20Data%20from%20Privot%20table%20according%20to%20sums.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-782261%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F365248%22%20target%3D%22_blank%22%3E%40nabilmourad%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20so%20much%20for%20the%20suggestion%2C%20but%20I%20think%20the%20issue%20is%20more%20than%20i%20need%20to%20create%20a%20list%20of%20all%20the%20stores%20with%20sales%20through%20specific%20months%20and%20a%20list%20of%20of%20all%20the%20stores%20without%20sales%20for%20those%20specific%20months.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20understand%20how%20to%20edit%20the%20GETPIVOTDATA%20formula%20just%20fine%20but%20I'm%20not%20sure%20how%20to%20create%20a%20formula%20in%20a%20way%20that%20it%20will%20give%20all%20the%20store%20names%20without%20sales%20in%20a%20specific%20month.%20I%20would%20just%20reference%20the%20source%20data%20but%20there%20are%20only%20records%20of%20sales.%20rather%20than%20record%20for%20every%20month.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDoes%20that%20make%20sense%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20tried%20slicers%20but%20and%20filters%20but%2C%20again%20you%20can't%20sort%20by%20data%20that%20doesn't%20exist%20or%20is%20blank.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-782288%22%20slang%3D%22en-US%22%3ERe%3A%20Return%20Data%20from%20Privot%20table%20according%20to%20sums.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-782288%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F385111%22%20target%3D%22_blank%22%3E%40Max__%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ewould%20you%20please%20attach%20a%20sample%20Excel%20file%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-782434%22%20slang%3D%22en-US%22%3ERe%3A%20Return%20Data%20from%20Privot%20table%20according%20to%20sums.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-782434%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F365248%22%20target%3D%22_blank%22%3E%40nabilmourad%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-782462%22%20slang%3D%22en-US%22%3ERe%3A%20Return%20Data%20from%20Privot%20table%20according%20to%20sums.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-782462%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F365248%22%20target%3D%22_blank%22%3E%40nabilmourad%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-782984%22%20slang%3D%22en-US%22%3ERe%3A%20Return%20Data%20from%20Privot%20table%20according%20to%20sums.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-782984%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F385111%22%20target%3D%22_blank%22%3E%40Max__%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYour%20description%20says%20%22show%20me%20every%20store%20that%20has%20not%20sold%20last%20month%22.%3C%2FP%3E%3CP%3EYour%20formula%20says%20%22show%20me%20every%20store%20that%20has%20sold%20last%20month%22.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%2C%20what%20should%20be%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-783816%22%20slang%3D%22en-US%22%3ERe%3A%20Return%20Data%20from%20Privot%20table%20according%20to%20sums.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-783816%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1639%22%20target%3D%22_blank%22%3E%40Detlef%20Lewin%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20need%20lists%20of%20both.%20one%20so%20that%20we%20know%20what%20stores%20are%20carrying%20what%20products%20still%20and%20one%20that%20says%20what%20stores%20have%20stopped%20selling.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-783904%22%20slang%3D%22en-US%22%3ERe%3A%20Return%20Data%20from%20Privot%20table%20according%20to%20sums.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-783904%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F385111%22%20target%3D%22_blank%22%3E%40Max__%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHere%20is%20a%20solution%20I%20made%20with%20Power%20Query.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Max__
New Contributor

Hello Wizards, I need to get data form a pivot table according to the sum values in the table. I have a table that has each store's name, address, zip, etc on the vertical left of the table with the months across the top. The table measure sum of sales per product per store by month.

 

I need to find all stores that have sold within specific months. I have tried GETPIVOTDATA, but it seems to only be able to return the sum of sales of specific stores rather than the stores with specific sales. I also need to be able to adjust the month  of sales it is looking at.

 

Right now, I am using an ISBLANK function referencing the latest month and building a separate table from that. However, I can't adjust the dates with the current set up

 

7 Replies

@Max__ 

Hi

When you refer to a cell from a Pivot Table into another cell, Excel creates a GETPIVOTDATA function.

This function creates an ABSOLUTE reference. You can either:

  • Put the GetPivotData function in the edit mode F2 >> then edit the hardcoded reference, OR
  • Turn Off this functionality by clicking on File >> Options >> Formulas >> take the Check away from  "Use GetPivotData Function for Pivot Table References" >>OK

GetPivot.png

 

Hope that helps

Nabil Mourad

@nabilmourad 

 

Thank you so much for the suggestion, but I think the issue is more than i need to create a list of all the stores with sales through specific months and a list of of all the stores without sales for those specific months.

 

I understand how to edit the GETPIVOTDATA formula just fine but I'm not sure how to create a formula in a way that it will give all the store names without sales in a specific month. I would just reference the source data but there are only records of sales. rather than record for every month.

 

Does that make sense?

 

I've tried slicers but and filters but, again you can't sort by data that doesn't exist or is blank.

@Max__ 

would you please attach a sample Excel file?

@Max__ 

Your description says "show me every store that has not sold last month".

Your formula says "show me every store that has sold last month".

 

So, what should be?

 

@Detlef Lewin 

I need lists of both. one so that we know what stores are carrying what products still and one that says what stores have stopped selling.

@Max__ 

Here is a solution I made with Power Query.

 

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
46 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
30 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies