Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Multiple if statements in one cell

How many if statements i can use in single cell? one cell accepts only 8 if
statements. I want to assign conditions as given below:
Service Percentage
11 23
12 25
13 27
14 29
.. .
.. .

upto 30 years service I design three cells.
Year service Rate of Pension Amount
in year service user will enter 11, 12,13 etc. and the rate of pension will
automatically be calculated according to years, if 11 years service then 23%
etc.

Please help me.

specifically tell me how many if statements can be used in one cell and if i
want to check 20 conditions then is it possible?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,646
Default Multiple if statements in one cell

If you have max 29 choices then

=CHOOSE(A1-10,23,25,27,29,30,31,32,33,34,35,36,37,38,39,40,41 ,42,43,44,45)

return percentages shown in your table.
Replace percentage numbers to your real values.

You can use also VLOOKUP if you store your table in a separate sheet.

IF function can be embedded up to 7 levels. If you have more than 7
conditions you have to choose some other solution but there is no recipe, the
solution depends on the actual task.

Regards,
Stefi

a.g. ezt *rta:

How many if statements i can use in single cell? one cell accepts only 8 if
statements. I want to assign conditions as given below:
Service Percentage
11 23
12 25
13 27
14 29
. .
. .

upto 30 years service I design three cells.
Year service Rate of Pension Amount
in year service user will enter 11, 12,13 etc. and the rate of pension will
automatically be calculated according to years, if 11 years service then 23%
etc.

Please help me.

specifically tell me how many if statements can be used in one cell and if i
want to check 20 conditions then is it possible?


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Multiple if statements in one cell

Thanks a lot for prompt response,please provide me solution of this problem
which i clearly write he
"I have to design pension calculation work sheet in which one column
is"Years of Service" and "Pension rate." In which it is to check that if
"Years of Service=11" then show the pension rate of pension as 23" user will
only enter the year suppose Mr. X Years of service is 11 then the excel will
automatically give the rate of pension that is 23.

The solution provided may be right but i can not understand the =chose
function.

Please help me out, i have to submit my assignment.

Thank you.

"Stefi" wrote:

If you have max 29 choices then

=CHOOSE(A1-10,23,25,27,29,30,31,32,33,34,35,36,37,38,39,40,41 ,42,43,44,45)

return percentages shown in your table.
Replace percentage numbers to your real values.

You can use also VLOOKUP if you store your table in a separate sheet.

IF function can be embedded up to 7 levels. If you have more than 7
conditions you have to choose some other solution but there is no recipe, the
solution depends on the actual task.

Regards,
Stefi

a.g. ezt *rta:

How many if statements i can use in single cell? one cell accepts only 8 if
statements. I want to assign conditions as given below:
Service Percentage
11 23
12 25
13 27
14 29
. .
. .

upto 30 years service I design three cells.
Year service Rate of Pension Amount
in year service user will enter 11, 12,13 etc. and the rate of pension will
automatically be calculated according to years, if 11 years service then 23%
etc.

Please help me.

specifically tell me how many if statements can be used in one cell and if i
want to check 20 conditions then is it possible?


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 206
Default Multiple if statements in one cell

7 nested IF statements is the limit. However, that can be expanded by
assigning the formula a name in the same way you would name a range. If you
write a seven condition IF formula and then name that formula "Frmla1", you
now have 1 formula that contains 7 IF statements. Now create a name for the
next 7 IF statements "Frmla2". These 2 named formulas can now be used within
another formula in the cell like so:
= If (Frmla1, Frmla1, Frmla2)
You are now effectively evaluating 14 conditions with 1 IF statement. You
could theoretically continue naming formulas for say a hundred names, but
the catch is trying to keep track of the logic so the Mega Formula works
properly.

Mike F
"a.g." wrote in message
...
How many if statements i can use in single cell? one cell accepts only 8
if
statements. I want to assign conditions as given below:
Service Percentage
11 23
12 25
13 27
14 29
. .
. .

upto 30 years service I design three cells.
Year service Rate of Pension Amount
in year service user will enter 11, 12,13 etc. and the rate of pension
will
automatically be calculated according to years, if 11 years service then
23%
etc.

Please help me.

specifically tell me how many if statements can be used in one cell and if
i
want to check 20 conditions then is it possible?




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default Multiple if statements in one cell

If the percentages increase by two for each year, then assuming the first
"Year Service" is located in A2) you could put this formula in B2 ("Rate of
Pension") and copy down...

=2*A2+1

Of course, if those percentages are not fixed forever, you will need one of
the other solutions posted here to handle the variability.

--
Rick (MVP - Excel)


"a.g." wrote in message
...
How many if statements i can use in single cell? one cell accepts only 8
if
statements. I want to assign conditions as given below:
Service Percentage
11 23
12 25
13 27
14 29
. .
. .

upto 30 years service I design three cells.
Year service Rate of Pension Amount
in year service user will enter 11, 12,13 etc. and the rate of pension
will
automatically be calculated according to years, if 11 years service then
23%
etc.

Please help me.

specifically tell me how many if statements can be used in one cell and if
i
want to check 20 conditions then is it possible?





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Multiple if statements in one cell



Please help me to have the following set of arguments work; the last one is the one that cannot make it work; when the cell is empty i want it to give me a "in progress" message but it does not because the "Completed Early" argument takes over. =IF(F12=E12,"Completed",IF(F12E12,"Completed late",IF(F12
  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Multiple if statements in one cell

On Monday, August 6, 2012 7:48:41 AM UTC-5, LUIS wrote:
Please help me to have the following set of arguments work; the last one is the one that cannot make it work; when the cell is empty i want it to give me a "in progress" message but it does not because the "Completed Early" argument takes over. =IF(F12=E12,"Completed",IF(F12E12,"Completed late",IF(F12


this is the complete set of arguments; the last post did not have it all:

=IF(F12=E12,"Completed",IF(F12E12,"Completed late",IF(F12<E12,"Completed early",IF(F12,"","In progress"))))
  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Multiple if statements in one cell

On Friday, November 21, 2008 2:38:04 AM UTC-5, a. g. wrote:
How many if statements i can use in single cell? one cell accepts only 8 if
statements. I want to assign conditions as given below:
Service Percentage
11 23
12 25
13 27
14 29
. .
. .

upto 30 years service I design three cells.
Year service Rate of Pension Amount
in year service user will enter 11, 12,13 etc. and the rate of pension will
automatically be calculated according to years, if 11 years service then 23%
etc.

Please help me.

specifically tell me how many if statements can be used in one cell and if i
want to check 20 conditions then is it possible?


  #9   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,522
Default Multiple if statements in one cell

On Friday, November 21, 2008 1:38:04 AM UTC-6, a. g. wrote:
How many if statements i can use in single cell? one cell accepts only 8 if
statements. I want to assign conditions as given below:
Service Percentage
11 23
12 25
13 27
14 29
. .
. .

upto 30 years service I design three cells.
Year service Rate of Pension Amount
in year service user will enter 11, 12,13 etc. and the rate of pension will
automatically be calculated according to years, if 11 years service then 23%
etc.

Please help me.

specifically tell me how many if statements can be used in one cell and if i
want to check 20 conditions then is it possible?


How about
=(B16*2)+1
11*2=22+1=23

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
Multiple If Statements in the same cell JBarsema Excel Worksheet Functions 2 July 29th 08 04:21 PM
Multiple IF statements looking up multiple ranges. mike Excel Worksheet Functions 7 August 9th 07 04:55 PM
Multiple if statements with multiple conditions egarcia Excel Discussion (Misc queries) 4 January 29th 07 10:46 PM
Multiple IF statements in one cell Jones E[_2_] Excel Programming 3 May 1st 06 07:50 PM
Multiple "IF" statements every cell in range cbrd[_28_] Excel Programming 6 January 11th 06 02:23 PM


All times are GMT +1. The time now is 03:21 AM.

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

About Us

"It's about Microsoft Excel"