+ Reply to Thread
Results 1 to 7 of 7

combining 2 formulae

Hybrid View

  1. #1
    Registered User
    Join Date
    03-22-2011
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    3

    combining 2 formulae

    I am a beginner in using Excel 2010 and have put together the following formulae, however to get it to work I have had to include an extra column (N5) for calculations.

    I am hoping that somebody will help me to rework the formulae to use just the single column (O5) for the combined (N5 )(O5) calculation.

    I5= early odds available, If the input value in this field if less than 5 there is no further calculation required, but if the input value is above 5, the N5 place calculation below is triggered:

    K5=Result: variable inputs 0,1,2,3 or 4

    N5=Place calculation: =IF(K5>0,IF(I5>=5,(I5*100)*20%))

    O5=Place Return: =IF(N5=FALSE,-100)*IF(I5=5,K5=0,0)

    The reason I have had to use the O5 field is that I was unable to get a minus (-100) value if the K5 value was 0.

    I have attached the worksheet.

    Thank you in anticipation of some help
    Attached Files Attached Files
    Last edited by Topgun-usaf; 11-28-2011 at 07:58 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    10-13-2010
    Location
    Sunderland, England
    MS-Off Ver
    Excel 2007 (Home) / 2003 (Work)
    Posts
    740

    Re: Formulae help!

    Just going off what you're saying, I would guess at:

    =IF(IF(K5>0,IF(I5>=5,(I5*100)*20%))=FALSE,-100)*IF(I5>=5,K5=0,0)

    Also, bear in mind the forum rules - Rule #1 states to use titles that are descriptive to your problem (makes it easier to search if someone else has a similar problem). If you start future posts with things like 'Formula Help', expect it to get closed.

  3. #3
    Registered User
    Join Date
    03-22-2011
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Formulae help!

    Hi Brokenbiscuits

    Thank you for your reply

    When I modified the formulae in N5 it worked ok for a result of 0 in K5, but then when K5 is 1 or more,
    N5 changed and remained at zero?

    Any further thoughts would be most grateful?

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,037

    Re: Formulae help!

    Hi Topgun-usaf, wellcome to the forum.


    Please read and adhere to these simple rules!

    1. Use concise, accurate thread titles. Your post title should describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change the title of the thread, click EDIT on the original post, then click the Go Advanced button, then change the title. If two or more hours have passed, the EDIT button will not appear, and you need to ask a moderator to change the title.
    Never use Merged Cells in Excel

  5. #5
    Valued Forum Contributor
    Join Date
    10-13-2010
    Location
    Sunderland, England
    MS-Off Ver
    Excel 2007 (Home) / 2003 (Work)
    Posts
    740

    Re: combining 2 formulae

    All I've done is combine your IF formulas together - if it's not working then this must be an issue with the formulae themselves.

    What exactly do you expect to see in O5?

  6. #6
    Registered User
    Join Date
    03-22-2011
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: combining 2 formulae

    Hi Brokenbiscuits

    The original equation works fine as it is in fields N5 and O5 with all the combinations of the two variables in I5 and K5

    Field N5 worked fine on its own, until there was a zero input in K5, and then N5 would not calculate to a value of -100

    I then introduced column/field O5 to get the -100 value if K5 was 0,and I5 value was 5 or more, but I now have to add together field N5 and O5

    So I was really looking for way to combine N5 and O5 together under one column

    Thank you for your interest

  7. #7
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,037

    Re: combining 2 formulae

    maybe this?

    =IF(I5>=5, I5*20, -100)*(SIGN(K5))

+ 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