Results 1 to 4 of 4

Thread: How would I write this formula?

  1. #1

    How would I write this formula?



    Register for a FREE account, and/
    or Log in to avoid these ads!

    With the reference number in cell G2 how would I write this? I keep getting errors. I get this far: IF(G2>=75,6,IF(G2?

    >= 75% add 6
    65-74.9% add 3
    55-64.9% add 1
    45-54.9% none
    35-44.9%. subtract 1
    25-34.9%. subtract 3
    Less then 25% subtract 6

    Any help would be greatly appreciated! Thanks

  2. #2
    Administrator Ken Puls's Avatar
    Join Date
    Mar 2011
    Location
    Nanaimo, BC, Canada
    Posts
    2,250
    Articles
    57
    Blog Entries
    14
    Excel Version
    Excel Office 365 Insider
    Skip the IF function and use VLOOKUP. Example attached.
    Attached Files Attached Files
    Ken Puls, FCPA, FCMA, MS MVP (Excel)

    Learn to Master Your Data at the Power Query Academy (the world's most comprehensive online Power Query training) or with my book M is for Data Monkey!

    Main Site: http://www.excelguru.ca -||- Blog: http://www.excelguru.ca/blog -||- Forums: http://www.excelguru.ca/forums
    Check out the Excelguru Facebook Fan Page -||- Follow Me on Twitter

    If you've been given VBA code (a macro) for your solution, but don't know where to put it, CLICK HERE.

  3. #3

    Soln

    Or if IF Condition is all you want to use, then u'd have to use this formula

    This is assuming the Value that you want to use is in Cell A1, also you have to format the cell to %

    =IF(A1="","",IF(A1<25%,-6,IF(A1<35%,-3,IF(A1<45%,-1,IF(A1<55%,0,IF(A1<65%,1,IF(A1>=75%,6)))))))

  4. #4
    Acolyte Canapone's Avatar
    Join Date
    Oct 2011
    Location
    Italy
    Posts
    97
    Articles
    0
    Excel Version
    Excel 2010
    Hi,

    in B2 the percentage

    Code:
    =vlookup(B2,{0,-6\0.25,-3\0.35,-1\0.45,0\0.55,1\0,65,3\0.75,6},2,1)
    Please refer to the small example attached: not sure to have translated correctly from my "not English/U.S." settings.

    Regards
    Attached Files Attached Files
    Last edited by Canapone; 2012-01-19 at 09:27 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •