Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=IF(AND(B6="FT",(IF(D64,15,IF(D6=2,10,IF(D6=2,1 0,IF(D6=1,5,0)
Hi. I am trying to create a formula to return the values above if the "B6="FT" is true. If true return the values for the nested if statement, else return zero. I either get an error or "True" or "False". I want to return either 15, 10,5, or zero. Can you help me fix this formula to give me the results I need? Thank you! |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Belinda,
Try this if(B6="FT", if(D64,15,if(D6=2,10,if(D6=1,5,0,""))),"") Wkr, JP "Belinda" wrote in message ... =IF(AND(B6="FT",(IF(D64,15,IF(D6=2,10,IF(D6=2,1 0,IF(D6=1,5,0) Hi. I am trying to create a formula to return the values above if the "B6="FT" is true. If true return the values for the nested if statement, else return zero. I either get an error or "True" or "False". I want to return either 15, 10,5, or zero. Can you help me fix this formula to give me the results I need? Thank you! |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=IF(D6=4,15,IF(D6=2,10,IF(D6=1,5,0)))
=IF(B6="ft",IF(D6=4,15,IF(D6=2,10,IF(D6=1,5,0)) ),"") -- Don Guillett Microsoft MVP Excel SalesAid Software "Belinda" wrote in message ... =IF(AND(B6="FT",(IF(D64,15,IF(D6=2,10,IF(D6=2,1 0,IF(D6=1,5,0) Hi. I am trying to create a formula to return the values above if the "B6="FT" is true. If true return the values for the nested if statement, else return zero. I either get an error or "True" or "False". I want to return either 15, 10,5, or zero. Can you help me fix this formula to give me the results I need? Thank you! |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Try
=IF(B6="FT",(IF(D64,15,IF(D6=2,10,IF(D6=1,5,0)) ))) HTH Bob "Belinda" wrote in message ... =IF(AND(B6="FT",(IF(D64,15,IF(D6=2,10,IF(D6=2,1 0,IF(D6=1,5,0) Hi. I am trying to create a formula to return the values above if the "B6="FT" is true. If true return the values for the nested if statement, else return zero. I either get an error or "True" or "False". I want to return either 15, 10,5, or zero. Can you help me fix this formula to give me the results I need? Thank you! |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
"Belinda" wrote:
=IF(AND(B6="FT",(IF(D64,15,IF(D6=2,10,IF(D6=2,1 0,IF(D6=1,5,0) [....] I am trying to create a formula to return the values above if the "B6="FT" is true. If true return the values for the nested if statement, else return zero. You state quite clearly that you want zero if B6<"FT". You also state quite clearly that you want only the results "15, 10,5, or zero". So: =IF(B6<"FT", 0, IF(D64,15,IF(D6=2,10,IF(D6=1,5,0)))) There are alternative formulas that avoid that deep function nesting, depending on what you know about the values in D6. For example: =IF(B6<"FT", 0, LOOKUP(D6,{-1E307,1,2,4},{0,5,10,15})) -1E307 should cover all values of D6<1. But if you know that D6 is, say, no less than 0, replace -1E307 with 0 for a more readable formula. ----- original message ----- "Belinda" wrote: =IF(AND(B6="FT",(IF(D64,15,IF(D6=2,10,IF(D6=2,1 0,IF(D6=1,5,0) Hi. I am trying to create a formula to return the values above if the "B6="FT" is true. If true return the values for the nested if statement, else return zero. I either get an error or "True" or "False". I want to return either 15, 10,5, or zero. Can you help me fix this formula to give me the results I need? Thank you! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Nested if statements | Excel Worksheet Functions | |||
Nested If statements | Excel Worksheet Functions | |||
Nested if statements - is there a better way? | Excel Worksheet Functions | |||
Nested IF Statements | Excel Discussion (Misc queries) | |||
Nested IF statements | Excel Worksheet Functions |