+ Reply to Thread
Results 1 to 6 of 6

Neater "=if "transaction

  1. #1
    billy_bags
    Guest

    Neater "=if "transaction

    =IF(ROUND(C10*1.2/38,0)<1,"1",ROUND(C10*1.2/38,0))

    However, if cell c10 has no figure in it at all I want it to show "0"

    I have tried
    =if(c10 "","0",ROUND(C10*1.2/38,0)<1,"1",ROUND(C10*1.2/38,0))
    but the formula error box appears
    Can some kind soul enlighten me and
    Is there a neater way that I can express this formula
    Thanks Bill

  2. #2
    Don Guillett
    Guest

    Re: Neater "=if "transaction

    you forgot the second if

    =if(c10 "","0",if(ROUND(C10*1.2/38,0)<1,1,ROUND(C10*1.2/38,0))


    --
    Don Guillett
    SalesAid Software
    dguillett1@austin.rr.com
    "billy_bags" <billybags@discussions.microsoft.com> wrote in message
    news:EB1265B5-03AF-48E1-801D-A017D44FA8B2@microsoft.com...
    > =IF(ROUND(C10*1.2/38,0)<1,"1",ROUND(C10*1.2/38,0))
    >
    > However, if cell c10 has no figure in it at all I want it to show "0"
    >
    > I have tried
    > =if(c10 "","0",ROUND(C10*1.2/38,0)<1,"1",ROUND(C10*1.2/38,0))
    > but the formula error box appears
    > Can some kind soul enlighten me and
    > Is there a neater way that I can express this formula
    > Thanks Bill




  3. #3
    David Biddulph
    Guest

    Re: Neater "=if "transaction

    "billy_bags" <billybags@discussions.microsoft.com> wrote in message
    news:EB1265B5-03AF-48E1-801D-A017D44FA8B2@microsoft.com...
    > =IF(ROUND(C10*1.2/38,0)<1,"1",ROUND(C10*1.2/38,0))
    >
    > However, if cell c10 has no figure in it at all I want it to show "0"
    >
    > I have tried
    > =if(c10 "","0",ROUND(C10*1.2/38,0)<1,"1",ROUND(C10*1.2/38,0))
    > but the formula error box appears
    > Can some kind soul enlighten me and
    > Is there a neater way that I can express this formula


    Do you mean:
    =IF(C10="","0",IF(ROUND(C10*1.2/38,0)<1,"1",ROUND(C10*1.2/38,0))) ?
    --
    David Biddulph



  4. #4
    David Biddulph
    Guest

    Re: Neater "=if "transaction

    "Don Guillett" <dguillett1@austin.rr.com> wrote in message
    news:OIi98s0gGHA.3956@TK2MSFTNGP02.phx.gbl...
    SalesAid Software
    > dguillett1@austin.rr.com
    > "billy_bags" <billybags@discussions.microsoft.com> wrote in message
    > news:EB1265B5-03AF-48E1-801D-A017D44FA8B2@microsoft.com...
    >> =IF(ROUND(C10*1.2/38,0)<1,"1",ROUND(C10*1.2/38,0))
    >>
    >> However, if cell c10 has no figure in it at all I want it to show "0"
    >>
    >> I have tried
    >> =if(c10 "","0",ROUND(C10*1.2/38,0)<1,"1",ROUND(C10*1.2/38,0))
    >> but the formula error box appears
    >> Can some kind soul enlighten me and
    >> Is there a neater way that I can express this formula


    > you forgot the second if
    >
    > =if(c10 "","0",if(ROUND(C10*1.2/38,0)<1,1,ROUND(C10*1.2/38,0))


    .... and you forgot the first =
    :-)
    --
    David Biddulph



  5. #5
    Ragdyer
    Guest

    Re: Neater "=if "transaction

    First of all, you left out the equal sign:
    =If(C10="",

    And, you have too many arguments for a single "IF" function.

    Also, if you're dealing strictly in numbers, you should *not* enclose them
    in quotes:
    "1"
    "0"
    Since this will return text.

    Anyway, try this:

    =(C10>0)*(ROUND(C10*1.2/38,0)<1)*1+ROUND(C10*1.2/38,0)

    --
    HTH,

    RD

    ---------------------------------------------------------------------------
    Please keep all correspondence within the NewsGroup, so all may benefit !
    ---------------------------------------------------------------------------
    "billy_bags" <billybags@discussions.microsoft.com> wrote in message
    news:EB1265B5-03AF-48E1-801D-A017D44FA8B2@microsoft.com...
    > =IF(ROUND(C10*1.2/38,0)<1,"1",ROUND(C10*1.2/38,0))
    >
    > However, if cell c10 has no figure in it at all I want it to show "0"
    >
    > I have tried
    > =if(c10 "","0",ROUND(C10*1.2/38,0)<1,"1",ROUND(C10*1.2/38,0))
    > but the formula error box appears
    > Can some kind soul enlighten me and
    > Is there a neater way that I can express this formula
    > Thanks Bill



  6. #6
    Bob Phillips
    Guest

    Re: Neater "=if "transaction


    "David Biddulph" <david@biddulph.org.uk> wrote in message
    news:XcadndeXbMnIpubZnZ2dnUVZ8sidnZ2d@bt.com...
    > "Don Guillett" <dguillett1@austin.rr.com> wrote in message
    > news:OIi98s0gGHA.3956@TK2MSFTNGP02.phx.gbl...
    > SalesAid Software
    > > dguillett1@austin.rr.com
    > > "billy_bags" <billybags@discussions.microsoft.com> wrote in message
    > > news:EB1265B5-03AF-48E1-801D-A017D44FA8B2@microsoft.com...
    > >> =IF(ROUND(C10*1.2/38,0)<1,"1",ROUND(C10*1.2/38,0))
    > >>
    > >> However, if cell c10 has no figure in it at all I want it to show "0"
    > >>
    > >> I have tried
    > >> =if(c10 "","0",ROUND(C10*1.2/38,0)<1,"1",ROUND(C10*1.2/38,0))
    > >> but the formula error box appears
    > >> Can some kind soul enlighten me and
    > >> Is there a neater way that I can express this formula

    >
    > > you forgot the second if
    > >
    > > =if(c10 "","0",if(ROUND(C10*1.2/38,0)<1,1,ROUND(C10*1.2/38,0))

    >
    > ... and you forgot the first =
    > :-)


    second actually <eb> :-)



+ 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