+ Reply to Thread
Results 1 to 6 of 6

Trying to join to If's and an And!

Hybrid View

DSL1970 Trying to join to If's and an... 06-27-2012, 06:54 PM
FDibbins Re: Trying to join to If's... 06-27-2012, 07:36 PM
DSL1970 Re: Trying to join to If's... 06-27-2012, 07:53 PM
FDibbins Re: Trying to join to If's... 06-27-2012, 08:02 PM
DSL1970 Re: Trying to join to If's... 06-27-2012, 08:17 PM
FDibbins Re: Trying to join to If's... 06-27-2012, 11:29 PM
  1. #1
    Registered User
    Join Date
    06-27-2012
    Location
    US
    MS-Off Ver
    Excel 2007
    Posts
    11

    Trying to join to If's and an And!

    I am working on a calculation next to a pivot table. The first If statement Shows the 0.00% running off the sheet when pivot is collapsed and the second does give the calc of c12/$e12 if there is a value in C12. I was using the A column for the names in the pivot, so it would not run past the last line.

    All I want is to input 0.00% if there is not a value in column C and if there is calculate C/E, without it running off the page when the pivot is collapsed.


    =IF(AND(ISTEXT(A12),C12=""),"0.00%",(C12/$E12))
    =IF(AND(ISTEXT(A12),C12=""), "0.00%","")

    Any help wopld be appreciated!

    Thanks.

  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,048

    Re: Trying to join to If's and an And!

    if you want to use a formula outside a PT, and dont want it to show if the PT shortens, use something like

    =if(C12="","",c12/$e121)

    let me know how this works for you, and maybe upload a sample if it doesnt fix what you need
    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
    Registered User
    Join Date
    06-27-2012
    Location
    US
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Trying to join to If's and an And!

    Thanks FDibbins, but I do not think that this will come out with the "0.00%" for those cells that do not contain any data. Or am I missing something?

  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,048

    Re: Trying to join to If's and an And!

    no it wont, but if your PT shortens, wouldnt you want to show nothing rather a bunch of 0.00%'s just hanging in the middle of nowhere, with no data related to it?

  5. #5
    Registered User
    Join Date
    06-27-2012
    Location
    US
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Trying to join to If's and an And!

    That is what my VP wants to see!!!

  6. #6
    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,048

    Re: Trying to join to If's and an And!

    so the VP wants to see a bunch of "hanging" numbers with no data attached to them?

    change it to =if(C12="","0.00%",c12/$e121)

+ 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