+ Reply to Thread
Results 1 to 15 of 15

confusion with 'greater than >' formula & result

  1. #1
    Registered User
    Join Date
    08-14-2009
    Location
    Nottingham, England
    MS-Off Ver
    Excel 2003
    Posts
    9

    Thumbs up confusion with 'greater than >' formula & result

    Hi folks, i was wondering if any of you could help me with a little problem i have stumbled across.

    I do not venture into the World of excel very often so please be patient as i try to explain

    Here is the table i am trying to maintain.
    \1

    We will focus on Row 3
    Column B is basically 550 points + column C = Base Roll.
    We need to introduce a cap so no more than 1000 points can be displayed/earned. So column G adds all points & column F caps.
    So far it's all ok.
    Now when i add a value to column E (points spent) those points are deducted from column G instead of the capped 1000.
    Entering a value of 500 displays 800 in column F instead of 500.

    The formulas i am using
    D
    Please Login or Register  to view this content.
    F
    Please Login or Register  to view this content.
    G
    Please Login or Register  to view this content.
    Any ideas where i am going wrong or any pointers?

    Much appreciated
    Last edited by Neen; 08-14-2009 at 08:55 PM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,607

    Re: Help with formula

    Please rename your title according to the rules:

    http://www.excelforum.com/forum-rule...rum-rules.html

    Hint: be more specific about your problem, avoid words as help, please etc.

    At the end, when you get solution don't foget to make thread [solved]

  3. #3
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983

    Re: Help with formula

    Neen

    Welcome to Exceltip forum

    Please take a couple of minutes and read ALL the Forum Rules then edit your thread title by following the instructions in the rules (Rule 1) so that it better discribes your problem/request
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

  4. #4
    Registered User
    Join Date
    08-14-2009
    Location
    Nottingham, England
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Help with formula

    Sorry, i'll have a read & rename etc

    You don't often think about reading FAQs and suchm thanks

  5. #5
    Registered User
    Join Date
    08-14-2009
    Location
    Nottingham, England
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: confusion with 'greater than >' formula & result

    Title edited, i think it's a bit more clear now :D

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: confusion with 'greater than >' formula & result

    to cap something use
    =min(your sum,1000) now whatever your sum is the most it can be is 1000
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  7. #7
    Registered User
    Join Date
    08-14-2009
    Location
    Nottingham, England
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: confusion with 'greater than >' formula & result

    Thanks for the reply, this helps me with capping a number.
    But i am still having the issue where column F, row 2 displays a value deducted from 1300 instead of 1000.

    I hope that make sense

  8. #8
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: confusion with 'greater than >' formula & result

    you said formula in col f is

    =IF(G3 > 1000, "1000",G3)
    so where is this value deducted from 1300 fit in with that formula?
    cant see that from an image post the workbook

  9. #9
    Registered User
    Join Date
    08-14-2009
    Location
    Nottingham, England
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: confusion with 'greater than >' formula & result

    The idea is that column G would add the total points earned (B+C-E), column F would then cap them at 1000.
    But when i add a value to column E it doesn't recognise the 1000 cap. So if i add 1000 to the current points spent in the picture i posted, the current points displays 300 when it should be 0.

  10. #10
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: confusion with 'greater than >' formula & result

    post the workbook!

  11. #11
    Registered User
    Join Date
    08-14-2009
    Location
    Nottingham, England
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: confusion with 'greater than >' formula & result


  12. #12
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: confusion with 'greater than >' formula & result

    Maybe you could just post it here ...
    Entia non sunt multiplicanda sine necessitate

  13. #13
    Registered User
    Join Date
    08-14-2009
    Location
    Nottingham, England
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: confusion with 'greater than >' formula & result

    Sorry i didn't realise i could attach
    Attached Files Attached Files

  14. #14
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: confusion with 'greater than >' formula & result

    Following Martin's suggestion, in G2 and down, = MIN(1000, 100*B2 + C2 - E2)

  15. #15
    Registered User
    Join Date
    08-14-2009
    Location
    Nottingham, England
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: confusion with 'greater than >' formula & result

    Thanks for that, i still seem to be having the same issue though.

    I've updated the table a tad with your code. Columns F or G should read 500 though but they read 1000.

    A bit more info about this;
    This is for a role-playing game, the table has a few hundred names on it.

    The idea is that you spend points on anything you wish. But you can not earn over 1000 so the more frequent role players do not leave the less frequent players in the dust so to speak.

    So if you earn 20000 points, technically you will never have over 1000, so if you spend 1000 you go to 0 & start again
    Attached Files Attached Files

+ 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