Close

Results 1 to 6 of 6
  1. #1
    DF Super Moderator
    DejaVu's Avatar
    Join Date
    Nov 2005
    Location
    Essex
    Posts
    9,107
    Thanks
    1,836
    Thanked:        4,004
    Karma Level
    954

    Default Excel Formula problem

    I'm usually quite good with Excel and can, most of the time, get by. But I've discovered his maybe a little bit too advanced for me...

    This is the problem in laymans terms as I think it would be the easiest way to explain it.

    I'm trying to find the values to put into the K Column which is known as 'Grade'. Grades are A thru to F with X being before A... ie X, A, B, C, D, E, F.

    Now Column I is a number entered, as is column B.

    An example is

    I = Achieved - 1,400
    B = Hours - 25

    I want to divide the 'Achieved' by the 'Hours' (Easy, =SUM(I2/B2) )

    But what I want is to work out from the answer to put in K is something like this.

    If the answer is

    0-300 = X
    301-500 = A
    501-800 = B
    801-1100 = C
    1101-1300 = D
    1301 - 1501 = E
    1500+ = F

    What formula would I need to put into K. I realise I will need to put other cells in to do the workings etc, but my head cannot get round it to well. I think this is where => or <= comes in (More than or less than), but have been doing my head in about it.

    I realise this doesnt explain it too well (but I've attached the XLSM) to show what I mean...


  2. #2
    DF VIP Member
    prezzy's Avatar
    Join Date
    Sep 2007
    Location
    Lancashire
    Posts
    8,135
    Thanks
    720
    Thanked:        988
    Karma Level
    1264

    Default Re: Excel Formula problem

    I would use the IF function to to do this - if I get time later / tomorrow I will do for you.


  3. #3
    DF VIP Member ka$h's Avatar
    Join Date
    Jan 2009
    Location
    Aberdeenshire
    Posts
    1,591
    Thanks
    150
    Thanked:        102
    Karma Level
    319

    Default Re: Excel Formula problem

    Using Nested IF Statements you would get:

    Code:
    =IF(AND(I2>=0,I2<=300),"X",if(and(I2=>301,I2<=500),"A",if(and(I2=>501,I2<=800),"B",if(and(I2=>801,I2<=1100),"C",if(and(I2=>1101,I2<=1300),"D",if(and(I2=>1301,I2<=1500),"E",if(I2=>1501,"F","INVALID")))))))
    If the number is less than 0, then the result would read invalid

    K
    What is it with steel wool? Is it steel? Or is it wool?


  4. #4
    DF VIP Member inspectercoley's Avatar
    Join Date
    May 2007
    Location
    TaxiMike
    Posts
    3,733
    Thanks
    234
    Thanked:        64
    Karma Level
    407

    Default Re: Excel Formula problem

    Yeah as Prezzy says:

    =IF(J2<=300,"X",IF(J2<=500,"A",IF(ETC,"B"," "))) etc
    [live=TaxiMike]TaxiMike[/live]

  5. #5
    DF Super Moderator
    DejaVu's Avatar
    Join Date
    Nov 2005
    Location
    Essex
    Posts
    9,107
    Thanks
    1,836
    Thanked:        4,004
    Karma Level
    954

    Default Re: Excel Formula problem

    ka$h... You are an absolute diamond. Thank you soooo much.

    K+ +Dollars!


  6. #6
    DF VIP Member Mr.James's Avatar
    Join Date
    Nov 2000
    Location
    town
    Posts
    4,264
    Thanks
    233
    Thanked:        408
    Karma Level
    576

    Default Re: Excel Formula problem

    You need to use a lookup table...

    I've attached an example using Jade A's Sheet.

Similar Threads

  1. Floppy problem
    By urbsy in forum PC Problems
    Replies: 8
    Last Post: 7th September 2002, 12:04 AM
  2. Formula farce
    By 4me2 in forum General Sports
    Replies: 17
    Last Post: 31st August 2002, 03:31 PM
  3. F12002 Problem
    By shawtek in forum Microsoft Consoles
    Replies: 9
    Last Post: 31st August 2002, 10:20 AM
  4. Problem with Compaq Armada E500 Laptop
    By Mr Olympia in forum PC Problems
    Replies: 2
    Last Post: 29th August 2002, 02:40 PM
  5. real audio recording problem
    By flypitcher in forum Music Factory
    Replies: 3
    Last Post: 28th August 2002, 11:25 PM

Social Networking 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
  •