+ Reply to Thread
Results 1 to 6 of 6

only calculate if >100

  1. #1
    Registered User
    Join Date
    05-22-2006
    Location
    Denmark
    MS-Off Ver
    365
    Posts
    5

    only calculate if >100

    I'm working on a little proggie in excel.

    C16 = Some number

    B19:B26 = some numbers

    C19 =B19+B19/SUM($B$19:B$26)*C16
    C20 =B20+B20/SUM($B$19:B$26)*C16
    ...
    C26 =B26+B26/SUM($B$19:B$26)*C16

    Lets say that if I only wanted to run the calculations on numbers >1000 ?
    Eg if B19 was 1200, then the calculations for C19 wouldn't be carried out. How do I do that?

    Thanks in advance

  2. #2
    Valued Forum Contributor
    Join Date
    03-25-2004
    Location
    Boston, MA US
    Posts
    1,094
    Try this in C19 and copy down to C26.

    =IF(B19>100,0,(B19+B19/SUM($B$19:B$26)*$C1$6))


    HTH

    Steve

  3. #3
    Chip Pearson
    Guest

    Re: only calculate if >100

    In C19, use

    =IF(B19>1000,B19+B19/SUM($B$19:B$26)*C16,"")


    --
    Cordially,
    Chip Pearson
    Microsoft MVP - Excel
    Pearson Software Consulting, LLC
    www.cpearson.com



    "KJensen" <[email protected]>
    wrote in message
    news:[email protected]...
    >
    > I'm working on a little proggie in excel.
    >
    > C16 = Some number
    >
    > B19:B26 = some numbers
    >
    > C19 =B19+B19/SUM($B$19:B$26)*C16
    > C20 =B20+B20/SUM($B$19:B$26)*C16
    > ..
    > C26 =B26+B26/SUM($B$19:B$26)*C16
    >
    > Lets say that if I only wanted to run the calculations on
    > numbers >1000
    > ?
    > Eg if B19 was 1200, then the calculations for C19 wouldn't be
    > carried
    > out. How do I do that?
    >
    > Thanks in advance
    >
    >
    > --
    > KJensen
    > ------------------------------------------------------------------------
    > KJensen's Profile:
    > http://www.excelforum.com/member.php...o&userid=34677
    > View this thread:
    > http://www.excelforum.com/showthread...hreadid=544440
    >




  4. #4
    Bob Phillips
    Guest

    Re: only calculate if >100

    =IF (B19>1000,B19+B19/SUMIF($B$19:B$26,">1000")*C16

    --

    HTH

    Bob Phillips

    (remove nothere from the email address if mailing direct)

    "KJensen" <[email protected]> wrote in
    message news:[email protected]...
    >
    > I'm working on a little proggie in excel.
    >
    > C16 = Some number
    >
    > B19:B26 = some numbers
    >
    > C19 =B19+B19/SUM($B$19:B$26)*C16
    > C20 =B20+B20/SUM($B$19:B$26)*C16
    > ..
    > C26 =B26+B26/SUM($B$19:B$26)*C16
    >
    > Lets say that if I only wanted to run the calculations on numbers >1000
    > ?
    > Eg if B19 was 1200, then the calculations for C19 wouldn't be carried
    > out. How do I do that?
    >
    > Thanks in advance
    >
    >
    > --
    > KJensen
    > ------------------------------------------------------------------------
    > KJensen's Profile:

    http://www.excelforum.com/member.php...o&userid=34677
    > View this thread: http://www.excelforum.com/showthread...hreadid=544440
    >




  5. #5
    Miguel Zapico
    Guest

    RE: only calculate if >100

    You may use an IF condition before the calculation:
    =IF(B19>1000,"Greater than 1000",B19+B19/SUM($B$19:B$26)*C16)

    Hope this helps,
    Miguel.

    "KJensen" wrote:

    >
    > I'm working on a little proggie in excel.
    >
    > C16 = Some number
    >
    > B19:B26 = some numbers
    >
    > C19 =B19+B19/SUM($B$19:B$26)*C16
    > C20 =B20+B20/SUM($B$19:B$26)*C16
    > ...
    > C26 =B26+B26/SUM($B$19:B$26)*C16
    >
    > Lets say that if I only wanted to run the calculations on numbers >1000
    > ?
    > Eg if B19 was 1200, then the calculations for C19 wouldn't be carried
    > out. How do I do that?
    >
    > Thanks in advance
    >
    >
    > --
    > KJensen
    > ------------------------------------------------------------------------
    > KJensen's Profile: http://www.excelforum.com/member.php...o&userid=34677
    > View this thread: http://www.excelforum.com/showthread...hreadid=544440
    >
    >


  6. #6
    Registered User
    Join Date
    05-22-2006
    Location
    Denmark
    MS-Off Ver
    365
    Posts
    5
    Thanks for all the answers!

    I got it working, I just had to change the "," to ";" - Don't know if its because I have a Danish version of excel..

    None the less, I got it working! - Thanks to you guys :D

+ 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