+ Reply to Thread
Results 1 to 7 of 7

Need help on some calculations..

  1. #1
    KristopherJensen
    Guest

    Need help on some calculations..

    Hi,

    Im not quite new at using Excel, but I have decided to try to take on new
    challenges and I need some help in relation to that.

    #1:
    I want to make some calculations on 4 values, lets say that they are located
    in B3:B6. I to find out if each value exceeds the number 40, and if it does
    the exceeding ammount should be added in B7. For instance if the values are
    30/41/60/10 then B7 would show the number "21". How is this possible?

    #2:
    If I have B2:B6 looking like this again:
    B3 30
    B4 40
    B5 60
    B6 10
    Total of 140.
    And I want to add 15 ponts in total to these numbers, but it should be done
    according to the % distribution, so that B3 would get 21.4% of the 15 points,
    B4 would get 28.7% of the 15 points and so on. I want it to be added in a new
    collum. Is this possible?

    Thanks in advance

  2. #2
    Bob Umlas
    Guest

    Re: Need help on some calculations..

    1: =SUMPRODUCT((B3:B6>40)*(B3:B6-40))
    2: =B3+B3/SUM($B$3:$B$6)*15 and fill down.
    Bob Umlas
    Excel MVP

    "KristopherJensen" <KristopherJensen@discussions.microsoft.com> wrote in
    message news:E9D1208E-966A-437F-9C7C-FD2D59949F7E@microsoft.com...
    > Hi,
    >
    > Im not quite new at using Excel, but I have decided to try to take on new
    > challenges and I need some help in relation to that.
    >
    > #1:
    > I want to make some calculations on 4 values, lets say that they are
    > located
    > in B3:B6. I to find out if each value exceeds the number 40, and if it
    > does
    > the exceeding ammount should be added in B7. For instance if the values
    > are
    > 30/41/60/10 then B7 would show the number "21". How is this possible?
    >
    > #2:
    > If I have B2:B6 looking like this again:
    > B3 30
    > B4 40
    > B5 60
    > B6 10
    > Total of 140.
    > And I want to add 15 ponts in total to these numbers, but it should be
    > done
    > according to the % distribution, so that B3 would get 21.4% of the 15
    > points,
    > B4 would get 28.7% of the 15 points and so on. I want it to be added in a
    > new
    > collum. Is this possible?
    >
    > Thanks in advance




  3. #3
    Ron Coderre
    Guest

    RE: Need help on some calculations..

    Try this:

    #1:
    Two ways....
    B7: =SUMIF(B3:B6,">40",B3:B6)-COUNTIF(B3:B6,">40")*40
    or
    B7: =SUMPRODUCT(--(B3:B6>40)*(B3:B6-40))

    #2:
    C3: =B3+(B3/$B$7)*15
    (copy that formula down thru C6)

    Does that help?

    ***********
    Regards,
    Ron

    XL2002, WinXP-Pro


    "KristopherJensen" wrote:

    > Hi,
    >
    > Im not quite new at using Excel, but I have decided to try to take on new
    > challenges and I need some help in relation to that.
    >
    > #1:
    > I want to make some calculations on 4 values, lets say that they are located
    > in B3:B6. I to find out if each value exceeds the number 40, and if it does
    > the exceeding ammount should be added in B7. For instance if the values are
    > 30/41/60/10 then B7 would show the number "21". How is this possible?
    >
    > #2:
    > If I have B2:B6 looking like this again:
    > B3 30
    > B4 40
    > B5 60
    > B6 10
    > Total of 140.
    > And I want to add 15 ponts in total to these numbers, but it should be done
    > according to the % distribution, so that B3 would get 21.4% of the 15 points,
    > B4 would get 28.7% of the 15 points and so on. I want it to be added in a new
    > collum. Is this possible?
    >
    > Thanks in advance


  4. #4
    Max
    Guest

    Re: Need help on some calculations..

    "KristopherJensen" wrote:

    > #1:
    > I want to make some calculations on 4 values, lets say that they are

    located
    > in B3:B6. I to find out if each value exceeds the number 40, and if it

    does
    > the exceeding ammount should be added in B7.
    > For instance if the values are 30/41/60/10 then
    > B7 would show the number "21". How is this possible?


    Put in B7: =SUMPRODUCT(--(B3:B6>40),B3:B6-40)

    Or, perhaps better to point to a cell instead of hardcoding the "40"

    Put in say, B8: 40
    Then put in B7: =SUMPRODUCT(--(B3:B6>B8),B3:B6-B8)

    > #2:
    > If I have B2:B6 looking like this again:
    > B3 30
    > B4 40
    > B5 60
    > B6 10
    > Total of 140.
    > And I want to add 15 ponts in total to these numbers, but it should be

    done
    > according to the % distribution, so that B3 would get 21.4% of the 15

    points,
    > B4 would get 28.7% of the 15 points and so on. I want it to be added in a

    new
    > column. Is this possible?


    Put in C2: 15
    Put in C3: =B3+15*(B3/SUM($B$3:$B$6))
    Copy C3 down to C6
    Format C3:C6 to 1 d.p.

    --
    Rgds
    Max
    xl 97
    ---
    Singapore, GMT+8
    xdemechanik
    http://savefile.com/projects/236895
    --



  5. #5
    Max
    Guest

    Re: Need help on some calculations..

    Oops, correction:
    > Put in C3: =B3+15*(B3/SUM($B$3:$B$6))


    should be:
    Put in C3: =B3+$C$2*(B3/SUM($B$3:$B$6))

    --
    Rgds
    Max
    xl 97
    ---
    Singapore, GMT+8
    xdemechanik
    http://savefile.com/projects/236895
    --



  6. #6
    Forum Contributor
    Join Date
    06-23-2004
    Location
    Houston, TX
    Posts
    571
    Quote Originally Posted by KristopherJensen
    Hi,

    Im not quite new at using Excel, but I have decided to try to take on new
    challenges and I need some help in relation to that.

    #1:
    I want to make some calculations on 4 values, lets say that they are located
    in B3:B6. I to find out if each value exceeds the number 40, and if it does
    the exceeding ammount should be added in B7. For instance if the values are
    30/41/60/10 then B7 would show the number "21". How is this possible?

    #2:
    If I have B2:B6 looking like this again:
    B3 30
    B4 40
    B5 60
    B6 10
    Total of 140.
    And I want to add 15 ponts in total to these numbers, but it should be done
    according to the % distribution, so that B3 would get 21.4% of the 15 points,
    B4 would get 28.7% of the 15 points and so on. I want it to be added in a new
    collum. Is this possible?

    Thanks in advance
    Here is very simple, no frills solution:

    #1

    I suggest a helper column (that you can hide). Enter this formula in Cell C3,

    =if(B3>40,B3-40,"")

    and copy down until Cell C6.

    Enter this formula in Cell B7, =sum(C3:C6)

    #2

    In any unused cell, enter the number you want to add (in your example -- 15)
    to your entries in Cells B3:B6,

    Let's say you entered this number in Cell E3. In Cell D3, enter this formula,

    =B3+(B3/$B$7)*$E$3

    and copy down until Cell D6.

    Regards.
    BenjieLop
    Houston, TX

  7. #7
    Niek Otten
    Guest

    Re: Need help on some calculations..

    #1
    =MAX(B3-40,0)+MAX(B4-40,0)+MAX(B5-40,0)+MAX(B6-40,0)
    #2
    =15*(B3/SUM($B$3:$B$6)) in C3, filled down to C6

    --
    Kind regards,

    Niek Otten

    "KristopherJensen" <KristopherJensen@discussions.microsoft.com> wrote in
    message news:E9D1208E-966A-437F-9C7C-FD2D59949F7E@microsoft.com...
    > Hi,
    >
    > Im not quite new at using Excel, but I have decided to try to take on new
    > challenges and I need some help in relation to that.
    >
    > #1:
    > I want to make some calculations on 4 values, lets say that they are
    > located
    > in B3:B6. I to find out if each value exceeds the number 40, and if it
    > does
    > the exceeding ammount should be added in B7. For instance if the values
    > are
    > 30/41/60/10 then B7 would show the number "21". How is this possible?
    >
    > #2:
    > If I have B2:B6 looking like this again:
    > B3 30
    > B4 40
    > B5 60
    > B6 10
    > Total of 140.
    > And I want to add 15 ponts in total to these numbers, but it should be
    > done
    > according to the % distribution, so that B3 would get 21.4% of the 15
    > points,
    > B4 would get 28.7% of the 15 points and so on. I want it to be added in a
    > new
    > collum. Is this possible?
    >
    > Thanks in advance




+ 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