A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

IF + IF?



 
 
Thread Tools Display Modes
  #1  
Old August 28th, 2008, 11:52 PM posted to microsoft.public.excel.worksheet.functions
roadkill
external usenet poster
 
Posts: 162
Default IF + IF?

Is there a way to combine the IF Statement. I will be using a similar formula
for six separate metrics so would be great if I didn't need to build a table
and do index matching.

Basically I want it to do this in my C6 cell:

IF A6="Cons" then =IF(B6=90%, 5, IF(B6=85%,4, IF(B6=80%,3, IF(B6=70%,2,
IF(B670%,1,"")))))

and

IF A6="Prem" then =IF(B6=91%, 5, IF(B6=86%,4, IF(B6=83%,3, IF(B6=75%,2,
IF(B675%,1,""))))).
  #2  
Old August 29th, 2008, 12:01 AM posted to microsoft.public.excel.worksheet.functions
dan dungan
external usenet poster
 
Posts: 67
Default IF + IF?

see if_worksheet_function in help
  #3  
Old August 29th, 2008, 12:06 AM posted to microsoft.public.excel.worksheet.functions
JLatham
external usenet poster
 
Posts: 3,017
Default IF + IF?

How about

=IF(A6="Cons",IF(B6=0.9,5,IF(B6=0.85,4,IF(B6=0. 8,3,IF(B6=0.7,2,IF(B60.7,1,""))))),IF(A6="Prem", IF(B6=0.91,5,IF(B6=0.86,4,IF(B6=0.83,3,IF(B6=0 .75,2,IF(B60.75,1,""))))),""))


"RoadKill" wrote:

Is there a way to combine the IF Statement. I will be using a similar formula
for six separate metrics so would be great if I didn't need to build a table
and do index matching.

Basically I want it to do this in my C6 cell:

IF A6="Cons" then =IF(B6=90%, 5, IF(B6=85%,4, IF(B6=80%,3, IF(B6=70%,2,
IF(B670%,1,"")))))

and

IF A6="Prem" then =IF(B6=91%, 5, IF(B6=86%,4, IF(B6=83%,3, IF(B6=75%,2,
IF(B675%,1,""))))).

  #4  
Old August 29th, 2008, 12:12 AM posted to microsoft.public.excel.worksheet.functions
roadkill
external usenet poster
 
Posts: 162
Default IF + IF?

I guess I was just missing the "")) at the end.

Thanks

"JLatham" wrote:

How about

=IF(A6="Cons",IF(B6=0.9,5,IF(B6=0.85,4,IF(B6=0. 8,3,IF(B6=0.7,2,IF(B60.7,1,""))))),IF(A6="Prem", IF(B6=0.91,5,IF(B6=0.86,4,IF(B6=0.83,3,IF(B6=0 .75,2,IF(B60.75,1,""))))),""))


"RoadKill" wrote:

Is there a way to combine the IF Statement. I will be using a similar formula
for six separate metrics so would be great if I didn't need to build a table
and do index matching.

Basically I want it to do this in my C6 cell:

IF A6="Cons" then =IF(B6=90%, 5, IF(B6=85%,4, IF(B6=80%,3, IF(B6=70%,2,
IF(B670%,1,"")))))

and

IF A6="Prem" then =IF(B6=91%, 5, IF(B6=86%,4, IF(B6=83%,3, IF(B6=75%,2,
IF(B675%,1,""))))).

  #5  
Old August 29th, 2008, 12:13 AM posted to microsoft.public.excel.worksheet.functions
Pete_UK
external usenet poster
 
Posts: 8,780
Default IF + IF?

Put this in C6:

=IF(A6="Cons",IF(B6=90%,5,IF(B6=85%,4,IF(B6=80% ,3,IF(B6=70%,
2,1)))),IF(A6="Prem",IF(B6=91%,5,IF(B6=86%,4,IF( B6=83%,3,IF(B6=75%,
2,1)))),""))

I think it does what you want.

Hope this helps.

Pete


On Aug 28, 11:52*pm, RoadKill
wrote:
Is there a way to combine the IF Statement. I will be using a similar formula
for six separate metrics so would be great if I didn't need to build a table
and do index matching.

Basically I want it to do this in my C6 cell:

IF A6="Cons" then =IF(B6=90%, 5, IF(B6=85%,4, IF(B6=80%,3, IF(B6=70%,2,
IF(B670%,1,"")))))

and

IF A6="Prem" then =IF(B6=91%, 5, IF(B6=86%,4, IF(B6=83%,3, IF(B6=75%,2,
IF(B675%,1,""))))).


  #6  
Old August 29th, 2008, 12:24 AM posted to microsoft.public.excel.worksheet.functions
Pete_UK
external usenet poster
 
Posts: 8,780
Default IF + IF?

Actually, you do have 2 redundant IFs, because all values of B6 are
exhausted so you dont need the condition IF(B60.7,1,"") under
A6="Cons" as this will never return "", and similarly for
IF(B60.75,1,"") if A6="Prem".

Hope this helps.

Pete

On Aug 29, 12:12*am, RoadKill
wrote:
I guess I was just missing the "")) at the end.

Thanks



"JLatham" wrote:
How about


=IF(A6="Cons",IF(B6=0.9,5,IF(B6=0.85,4,IF(B6=0. 8,3,IF(B6=0.7,2,IF(B60.*7,1,""))))),IF(A6="Prem" ,IF(B6=0.91,5,IF(B6=0.86,4,IF(B6=0.83,3,IF(B6= 0*.75,2,IF(B60.75,1,""))))),""))


"RoadKill" wrote:


Is there a way to combine the IF Statement. I will be using a similar formula
for six separate metrics so would be great if I didn't need to build a table
and do index matching.


Basically I want it to do this in my C6 cell:


IF A6="Cons" then =IF(B6=90%, 5, IF(B6=85%,4, IF(B6=80%,3, IF(B6=70%,2,
IF(B670%,1,"")))))


and


IF A6="Prem" then =IF(B6=91%, 5, IF(B6=86%,4, IF(B6=83%,3, IF(B6=75%,2,
IF(B675%,1,""))))).- Hide quoted text -


- Show quoted text -


  #7  
Old August 29th, 2008, 12:25 AM posted to microsoft.public.excel.worksheet.functions
Roger Govier[_3_]
external usenet poster
 
Posts: 2,297
Default IF + IF?

Hi

Try
=IF(A6="Cons",1+(B6=0.7)+(B6=0.8)+(B6=0.85)+(B6 =0.9),
IF(A6="Prem",1+(B6=0.75)+(B6=0.83)+(B6=0.86)+(B 6=0.91),""))

--
Regards
Roger Govier

"JLatham" HelpFrom @ Jlathamsite.com.(removethis) wrote in message
...
How about

=IF(A6="Cons",IF(B6=0.9,5,IF(B6=0.85,4,IF(B6=0. 8,3,IF(B6=0.7,2,IF(B60.7,1,""))))),IF(A6="Prem", IF(B6=0.91,5,IF(B6=0.86,4,IF(B6=0.83,3,IF(B6=0 .75,2,IF(B60.75,1,""))))),""))


"RoadKill" wrote:

Is there a way to combine the IF Statement. I will be using a similar
formula
for six separate metrics so would be great if I didn't need to build a
table
and do index matching.

Basically I want it to do this in my C6 cell:

IF A6="Cons" then =IF(B6=90%, 5, IF(B6=85%,4, IF(B6=80%,3,
IF(B6=70%,2,
IF(B670%,1,"")))))

and

IF A6="Prem" then =IF(B6=91%, 5, IF(B6=86%,4, IF(B6=83%,3,
IF(B6=75%,2,
IF(B675%,1,""))))).


  #8  
Old August 29th, 2008, 01:58 AM posted to microsoft.public.excel.worksheet.functions
JMB
external usenet poster
 
Posts: 1,266
Default IF + IF?

Just another version of what you've already posted
=1+SUM((A6="Cons")*(B6={0.7,0.8,0.85,0.9}),(A6="P rem")*(B6={0.75,0.83,0.86,0.91}))

"Roger Govier" wrote:

Hi

Try
=IF(A6="Cons",1+(B6=0.7)+(B6=0.8)+(B6=0.85)+(B6 =0.9),
IF(A6="Prem",1+(B6=0.75)+(B6=0.83)+(B6=0.86)+(B 6=0.91),""))

--
Regards
Roger Govier

"JLatham" HelpFrom @ Jlathamsite.com.(removethis) wrote in message
...
How about

=IF(A6="Cons",IF(B6=0.9,5,IF(B6=0.85,4,IF(B6=0. 8,3,IF(B6=0.7,2,IF(B60.7,1,""))))),IF(A6="Prem", IF(B6=0.91,5,IF(B6=0.86,4,IF(B6=0.83,3,IF(B6=0 .75,2,IF(B60.75,1,""))))),""))


"RoadKill" wrote:

Is there a way to combine the IF Statement. I will be using a similar
formula
for six separate metrics so would be great if I didn't need to build a
table
and do index matching.

Basically I want it to do this in my C6 cell:

IF A6="Cons" then =IF(B6=90%, 5, IF(B6=85%,4, IF(B6=80%,3,
IF(B6=70%,2,
IF(B670%,1,"")))))

and

IF A6="Prem" then =IF(B6=91%, 5, IF(B6=86%,4, IF(B6=83%,3,
IF(B6=75%,2,
IF(B675%,1,""))))).


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:08 PM.


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