+ Reply to Thread
Results 1 to 4 of 4

Need help with formular for a split in values

  1. #1
    Registered User
    Join Date
    10-02-2006
    Posts
    6

    Red face Need help with formular for a split in values

    A B
    1 113
    2 0-60 60
    3 60+ 53

    Cell B2 =SUM(B1-B3)*(B1>=60)
    Cell B3 =SUM(B1>=60)*(B1-60)

    What I need it to do is seperate the figure in B1 Between B2 & B3.
    If B1 is greater than 60 then 60 goes into Cell B2 and the remainder goes into Cell B3 (which at the moment it does).

    My problem is, when the figure in cell B1 is 60 or less, (say 59 then that figure needs to show in Cell B2 and B3 will show as 0. Their is no allowances for a negative figure.

    Any advice would be great at the moment I can get it to do either but not both options.

  2. #2
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by SJC2006
    A B
    1 113
    2 0-60 60
    3 60+ 53

    Cell B2 =SUM(B1-B3)*(B1>=60)
    Cell B3 =SUM(B1>=60)*(B1-60)

    What I need it to do is seperate the figure in B1 Between B2 & B3.
    If B1 is greater than 60 then 60 goes into Cell B2 and the remainder goes into Cell B3 (which at the moment it does).

    My problem is, when the figure in cell B1 is 60 or less, (say 59 then that figure needs to show in Cell B2 and B3 will show as 0. Their is no allowances for a negative figure.

    Any advice would be great at the moment I can get it to do either but not both options.
    Hi,

    Not quite sure on your choice of formula.

    To split B1 over B2 - B3 then

    in B2

    =if(B1>=60,60,B1)

    and in B3

    =If(B1>=60,B1-60,"")
    or
    =If(B1>=60,B1-60,0)
    or
    =If(B1<60,"",B1-60)

    as required.

    hth
    ---
    Si fractum non sit, noli id reficere.

  3. #3
    Registered User
    Join Date
    10-02-2006
    Posts
    6

    Thumbs up split Values

    Second option in B2 worked great,
    Been a long time since I used Excel (forgot more than I remember)

    Kindest regards

    SJC

  4. #4
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by SJC2006
    Second option in B2 worked great,
    Been a long time since I used Excel (forgot more than I remember)

    Kindest regards

    SJC
    Hi,

    Good to see that it worked for you, and thanks for the response.

    ---

+ 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