#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default If Conditions

well i want to create a frmula to calculate the incentive of my employees.

the formula shoud be like this
if the [CellXX] is "XX" then calculate the incentive through this IF
formaula or
if the [CellXX] is "YY" then calculate the incentive through this IF formula
or
if the [cellXX] is "ZZ" then calculate the incentive through this IF formula
of
if the [CellXX] is "AA" then calculate the incentive through this IF formula

i just need the santax for the above mention for formaul

thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,089
Default If Conditions

=IF([CellXX]="XX",XXFormula,IF([CellXX]="YY",YYFormula,IF([CellXX]="ZZ",ZZFormula,IF([CellXX]="AA",AAFormula,"Some
other value or formula"))))

For example:

=IF(A1="XX","XXFormula",IF(A1="YY","YYFormula",IF( A1="ZZ","ZZFormula",IF(A1="AA","AAFormula","Some
other value or formula"))))

Regards

Trevor


"leagal document" wrote in
message ...
well i want to create a frmula to calculate the incentive of my employees.

the formula shoud be like this
if the [CellXX] is "XX" then calculate the incentive through this IF
formaula or
if the [CellXX] is "YY" then calculate the incentive through this IF
formula
or
if the [cellXX] is "ZZ" then calculate the incentive through this IF
formula
of
if the [CellXX] is "AA" then calculate the incentive through this IF
formula

i just need the santax for the above mention for formaul

thanks



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 213
Default If Conditions

the formula shoud be like this
if the [CellXX] is "XX" then calculate the incentive through this IF
formaula or
if the [CellXX] is "YY" then calculate the incentive through this IF
formula or
if the [cellXX] is "ZZ" then calculate the incentive through this IF
formula of
if the [CellXX] is "AA" then calculate the incentive through this IF
formula



For one possible approach, start with
=LOOKUP([cellXX],{"XX",1;"YY",2;"ZZ",3;"ZZ",4})
and replace 1, 2, 3, and 4 with the four IF formulas.
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need to Sum when THREE Conditions are met jimswinder Excel Worksheet Functions 7 July 24th 06 08:03 PM
Conditions Help Curtis Excel Worksheet Functions 2 March 10th 06 08:02 PM
How to sum with 2 conditions Alejandro Excel Discussion (Misc queries) 9 July 7th 05 12:45 PM
Help Me to Conditions! davidtips Excel Discussion (Misc queries) 2 July 7th 05 11:28 AM
How to multiple conditions to validate more than 2 conditions to . Bhuvana Govind Excel Worksheet Functions 1 January 28th 05 07:07 PM


All times are GMT +1. The time now is 11:50 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"