+ Reply to Thread
Results 1 to 4 of 4

Help with Pivots

  1. #1
    Registered User
    Join Date
    04-22-2008
    Posts
    2

    Exclamation Help with Pivots

    I do some calculations based on the value in the pivot, if theres no value (as the pivot dint fetch any rows), my calculation returns #REF! and then i am not able to sum the cells due to #REF! - How do i ignore all the #REF! and then sum?

  2. #2
    Forum Contributor Portuga's Avatar
    Join Date
    02-20-2004
    Location
    Portugal
    MS-Off Ver
    365
    Posts
    852
    Hi, and welcome to the forum.

    You could use a Iserror(condition in your formulas to return 0 if it returns the error message.

    It would help if you could attach a small sample of your data to have a better look at your problem.
    If you found the solution to your question. Mark the thread as "Solved"
    Thank everyone that helped you with a valid solution by clicking on their

    There is no such thing as a problem, only a temporary lack of a solution

  3. #3
    Registered User
    Join Date
    04-22-2008
    Posts
    2
    Hi -

    I tried using ISError and it worked.. Now i have a question:

    I have this pivot formula

    =IF(GETPIVOTDATA("Status",$A$3,"Account #",$A$16) <> "", IF(IF(ISERROR(GETPIVOTDATA("Status",$A$3,"Part #","A","Account #",$A$16,"Status","External Dependancy")),0,GETPIVOTDATA("Status",$A$3,"Part #","A","Account #",$A$16,"Status","External Dependancy")) = GETPIVOTDATA("Status",$A$3,"Account #",$A$16), 1, 0),0)

    1) Now, i have to copy the formula to 2000 rows but $A$16 should change per the row number like $A$17, $A$18 etc.. How do i do that?

    2) If there are no row data for the pivot, the above formula returns #REF! and i have to sum all the values and hence the sum becomes #REF! - How do i ignore the #REF! and just count the values alone.

    Plz help?

  4. #4
    Forum Contributor Portuga's Avatar
    Join Date
    02-20-2004
    Location
    Portugal
    MS-Off Ver
    365
    Posts
    852
    1- You cant have the numbers change if you have the values as absolute reference (ther $ sign wrapping the value). In the formula, click in $A$16 and press F4 twice. You should have A16, you can now drag the formula down.

    2- Instead of the getpivot formula you can reference the cell itself
    =IF(A16) <> ""; ...

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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