+ Reply to Thread
Results 1 to 7 of 7

How to remove #REF! when when trying to total amounts from Pivot Table

Hybrid View

elpsam78 How to remove #REF! when when... 07-18-2013, 06:19 PM
FDibbins Re: How to remove #REF! when... 07-18-2013, 07:00 PM
AlKey Re: How to remove #REF! when... 07-18-2013, 07:20 PM
FDibbins Re: How to remove #REF! when... 07-18-2013, 08:18 PM
AB33 Re: How to remove #REF! when... 07-19-2013, 05:11 AM
elpsam78 Re: How to remove #REF! when... 07-19-2013, 11:28 AM
FDibbins Re: How to remove #REF! when... 07-19-2013, 01:19 PM
  1. #1
    Registered User
    Join Date
    04-10-2013
    Location
    EL Paso
    MS-Off Ver
    Excel 2003 and 2010
    Posts
    2

    Unhappy How to remove #REF! when when trying to total amounts from Pivot Table

    I am attaching sample worksheet. It has 4 tabs, Customer, MAY2013, June2013 and YTD2013.

    In customers I have placed customer names (in this case made up abbr), The May and June 2013 have numbers from sales orders placed by some these customers. I then make a Pivot table for each month giving me the total $ orders for each customer.

    In the YTD2013, I am trying to get all the information from both tables and then put it on a table where I would get a YTD total.

    I would like to know what formula/Macro/VB solution would allow me to remove #REF! error when I try to get a YTD total.
    I am using GETPIVOTDATA as shown in the YTD2013 sheet.

    Your help would be greatly appreciated.
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,050

    Re: How to remove #REF! when when trying to total amounts from Pivot Table

    Hi and welcome to the forum

    Try this variation of what you had. Copy it down and across, you dont need to adjust it for anything - when July2013 gets here, just copy it across...
    =IFERROR(GETPIVOTDATA("Total",INDIRECT(LEFT(B$1,FIND(" ",B$1,1)-1)&"2013!$G$1"),"Customer",$A2),"")
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: How to remove #REF! when when trying to total amounts from Pivot Table

    Or try this:

    =SUM(IF(ISERROR(B2),0,B2),IF(ISERROR(C2),0,C2))
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,050

    Re: How to remove #REF! when when trying to total amounts from Pivot Table

    Nice option Alkey

    I took the approach of fixing the problem at source (and making the formula more copy-able at the same time)

  5. #5
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: How to remove #REF! when when trying to total amounts from Pivot Table

    Within Pivot Table there is an option of removing errors.

  6. #6
    Registered User
    Join Date
    04-10-2013
    Location
    EL Paso
    MS-Off Ver
    Excel 2003 and 2010
    Posts
    2

    Thumbs up Re: How to remove #REF! when when trying to total amounts from Pivot Table

    FDibbins,

    Worked really well. Thank you for the input.

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,050

    Re: How to remove #REF! when when trying to total amounts from Pivot Table

    Happy to help and thanks for the feedback

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Pivot Table Total doesn't match data total
    By CNL.Excel in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 10-31-2013, 07:40 PM
  2. [SOLVED] Remove Duplicate Budget Amounts within the Pivot Table
    By mhedge in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 05-02-2013, 03:05 PM
  3. Pivot Table - Sub Total & Grand Total Filter
    By ramki in forum Excel General
    Replies: 1
    Last Post: 08-07-2009, 11:40 PM
  4. Sorting through large amounts of data (pivot table, sql)
    By Heim in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-20-2009, 09:25 AM
  5. [SOLVED] % of Running Total to Grand Total in Pivot Table
    By David in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-17-2005, 04:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1