Question : CASE Function - MS Excel

Hello Everyone, I need to create funtion which will allocate a value depedning upon the value from another cell. I have attached the excel sheet for reference. What i trying to achieve is
if cell a2 >= 100000 then "100k Plus Commission"  and it should put 100k plus commission in cell b2..
other conditions are if cell is >=50000 but less than <100000 then 50-10000 k
if cell is >=20000 but less than <50000 then 20-50k
else ithen 20k
Attachments:
 
Commission Banding - Case Statement
 

Answer : CASE Function - MS Excel

Sorry slight correction,


$result = mysql_query("
      SELECT
            `ordering`.`user_id`,`ordering`.`first_name`, `ordering`.`last_name`, `ordering`.`total`,
                  sum(`ordering`.`total`) as `total`
            FROM
                  `ordering`

            GROUP BY   `ordering`.`user_id
            ORDER BY `total` DESC    
;");
Random Solutions  
 
programming4us programming4us