dcsimg
Results 1 to 4 of 4

Thread: [RESOLVED] IF Formula help

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 2010
    Posts
    62

    Resolved [RESOLVED] IF Formula help

    I need the formula to give 0% when there no values in the G12 & F13.

    Now its giving #DIV/0!



    =IF(G12/F13>100%,100%,G12/F13)

    Name:  if.jpg
Views: 77
Size:  50.0 KB

    Please help

  2. #2
    PowerPoster Zvoni's Avatar
    Join Date
    Sep 2012
    Location
    To the moon and then left
    Posts
    1,819

    Re: IF Formula help

    Look at the IFERROR-Function
    One System to rule them all, One IDE to find them,
    One Code to bring them all, and to the Framework bind them,
    in the Land of Redmond, where the Windows lie
    ---------------------------------------------------------------------------------
    People call me crazy because i'm jumping out of perfectly fine airplanes.
    ---------------------------------------------------------------------------------
    For health reasons i try to avoid reading unformatted Code

  3. #3

    Thread Starter
    Member
    Join Date
    Jul 2010
    Posts
    62

    Re: [RESOLVED] IF Formula help

    Thanks

  4. #4
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    32,267

    Re: [RESOLVED] IF Formula help

    Also...
    Code:
    =IF(G12/F13>100%,100%,IF(F13 <> 0, G12/F13, 0))
    You can nest Ifs

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

Posting Permissions

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



Featured


Click Here to Expand Forum to Full Width