Upload
noraini-mohd-nor
View
30
Download
0
Embed Size (px)
Citation preview
5/28/2018 MS EXCEL-IF
1/18
1
MS EXCEL - IF FUNCTION
Show All
Returns one value if a condition you specify evaluates to TRUE and another value if it evaluates toFALSE.
Use IF to conduct conditional tests on values and formulas.
Syntax
IF(logical_test,value_if_true,value_if_false)
Logical_test is any value or expression that can be evaluated to TRUE or FALSE. For example,
A10=100 is a logical expression; if the value in cell A10 is equal to 100, the expression evaluatesto TRUE. Otherwise, the expression evaluates to FALSE. This argument can use anycomparison
calculation operator.
Value_if_true is the value that is returned if logical_test is TRUE. For example, if this argument
is the text string "Within budget" and the logical_test argument evaluates to TRUE, then the IF
function displays the text "Within budget". If logical_test is TRUE and value_if_true is blank, this
argument returns 0 (zero). To display the word TRUE, use the logical value TRUE for this
argument. Value_if_true can be another formula.
Value_if_false is the value that is returned if logical_test is FALSE. For example, if this argument
is the text string "Over budget" and the logical_test argument evaluates to FALSE, then the IF
function displays the text "Over budget". If logical_test is FALSE and value_if_false is omitted, (that
is, after value_if_true, there is no comma), then the logical value FALSE is returned. If logical_test
is FALSE and value_if_false is blank (that is, after value_if_true, there is a comma followed by the
closing parenthesis), then the value 0 (zero) is returned. Value_if_false can be another formula.
Remarks
Up to seven IF functions can be nested as value_if_true and value_if_false arguments to construct
more elaborate tests. (See Example 3 for a sample of nested IF functions.) If you want to test more
than seven conditions, consider using theLOOKUP,VLOOKUP,orHLOOKUPfunction. (See Example 4
for a sample of the LOOKUP function.)
When the value_if_true and value_if_false arguments are evaluated, IF returns the value returned by
those statements.
If any of the arguments to IF arearrays,every element of the array is evaluated when the IF statement
is carried out.
Microsoft Excel provides additional functions that can be used to analyze your data based on a
condition. For example, to count the number of occurrences of a string of text or a number within a
range of cells, use the COUNTIF worksheet function. To calculate a sum based on a string of text or a
number within a range, use the SUMIF worksheet function. Learnabout calculating a value based ona condition.
http://office.microsoft.com/en-us/excel-help/redir/HP005198697.aspx?CTT=5&origin=HP005209118http://office.microsoft.com/en-us/excel-help/redir/HP005198697.aspx?CTT=5&origin=HP005209118http://office.microsoft.com/en-us/excel-help/redir/HP005198697.aspx?CTT=5&origin=HP005209118http://office.microsoft.com/en-us/excel-help/redir/HP005198697.aspx?CTT=5&origin=HP005209118http://office.microsoft.com/en-us/excel-help/redir/HP005209163.aspx?CTT=5&origin=HP005209118http://office.microsoft.com/en-us/excel-help/redir/HP005209163.aspx?CTT=5&origin=HP005209118http://office.microsoft.com/en-us/excel-help/redir/HP005209163.aspx?CTT=5&origin=HP005209118http://office.microsoft.com/en-us/excel-help/redir/HP005209335.aspx?CTT=5&origin=HP005209118http://office.microsoft.com/en-us/excel-help/redir/HP005209335.aspx?CTT=5&origin=HP005209118http://office.microsoft.com/en-us/excel-help/redir/HP005209335.aspx?CTT=5&origin=HP005209118http://office.microsoft.com/en-us/excel-help/redir/HP005209114.aspx?CTT=5&origin=HP005209118http://office.microsoft.com/en-us/excel-help/redir/HP005209114.aspx?CTT=5&origin=HP005209118http://office.microsoft.com/en-us/excel-help/redir/HP005209114.aspx?CTT=5&origin=HP005209118http://appendpopup%28this%2C%27645647615_1%27%29/http://appendpopup%28this%2C%27645647615_1%27%29/http://appendpopup%28this%2C%27645647615_1%27%29/http://office.microsoft.com/en-us/excel-help/redir/HP005251012.aspx?CTT=5&origin=HP005209118http://office.microsoft.com/en-us/excel-help/redir/HP005251012.aspx?CTT=5&origin=HP005209118http://office.microsoft.com/en-us/excel-help/redir/HP005251012.aspx?CTT=5&origin=HP005209118http://office.microsoft.com/en-us/excel-help/redir/HP005251012.aspx?CTT=5&origin=HP005209118http://office.microsoft.com/en-us/excel-help/redir/HP005251012.aspx?CTT=5&origin=HP005209118http://office.microsoft.com/en-us/excel-help/redir/HP005251012.aspx?CTT=5&origin=HP005209118http://appendpopup%28this%2C%27645647615_1%27%29/http://office.microsoft.com/en-us/excel-help/redir/HP005209114.aspx?CTT=5&origin=HP005209118http://office.microsoft.com/en-us/excel-help/redir/HP005209335.aspx?CTT=5&origin=HP005209118http://office.microsoft.com/en-us/excel-help/redir/HP005209163.aspx?CTT=5&origin=HP005209118http://office.microsoft.com/en-us/excel-help/redir/HP005198697.aspx?CTT=5&origin=HP005209118http://office.microsoft.com/en-us/excel-help/redir/HP005198697.aspx?CTT=5&origin=HP0052091185/28/2018 MS EXCEL-IF
2/18
2
Example 1
The example may be easier to understand if you copy it to a blank worksheet.
How to copy an example
1
2
A
Data
50
Formula Description (Result)
=IF(A2B2,"Over
Budget","OK")
Checks whether the first row is over budget (Over
Budget)
=IF(A3>B3,"Over
Budget","OK")
Checks whether the second row is over budget (OK)
Example 3
The example may be easier to understand if you copy it to a blank worksheet.
How to copy an example
http://togglediv%28%27divexpcollasst_365362171%27%29/http://togglediv%28%27divexpcollasst_365362171%27%29/http://togglediv%28%27divexpcollasst_201058725%27%29/http://togglediv%28%27divexpcollasst_201058725%27%29/http://togglediv%28%27divexpcollasst_877884081%27%29/http://togglediv%28%27divexpcollasst_877884081%27%29/http://togglediv%28%27divexpcollasst_877884081%27%29/http://togglediv%28%27divexpcollasst_201058725%27%29/http://togglediv%28%27divexpcollasst_365362171%27%29/http://togglediv%28%27divexpcollasst_877884081%27%29/http://togglediv%28%27divexpcollasst_201058725%27%29/http://togglediv%28%27divexpcollasst_365362171%27%29/http://togglediv%28%27divexpcollasst_877884081%27%29/http://togglediv%28%27divexpcollasst_201058725%27%29/http://togglediv%28%27divexpcollasst_365362171%27%29/http://togglediv%28%27divexpcollasst_877884081%27%29/http://togglediv%28%27divexpcollasst_201058725%27%29/http://togglediv%28%27divexpcollasst_365362171%27%29/5/28/2018 MS EXCEL-IF
3/18
3
1
2
3
4
A
Score
45
90
78
Formula Description (Result)
=IF(A2>89,"A",IF(A2>79,"B",
IF(A2>69,"C",IF(A2>59,"D","F"))))
Assigns a letter grade to the first
score (F)
=IF(A3>89,"A",IF(A3>79,"B",
IF(A3>69,"C",IF(A3>59,"D","F"))))
Assigns a letter grade to the second
score (A)
=IF(A4>89,"A",IF(A4>79,"B",
IF(A4>69,"C",IF(A4>59,"D","F"))))
Assigns a letter grade to the third
score (C)
In the preceding example, the second IF statement is also the value_if_false argument to the first
IF statement. Similarly, the third IF statement is the value_if_false argument to the second IF
statement. For example, if the first logical_test (Average>89) is TRUE, "A" is returned. If the first
logical_test is FALSE, the second IF statement is evaluated, and so on.
The letter grades are assigned to numbers using the following key.
IF SCORE IS THEN RETURN
Greater than 89 A
From 80 to 89 B
From 70 to 79 C
From 60 to 69 D
Less than 60 F
Example 4
In this example, the LOOKUP function is used instead of the IF function because there are thirteen
conditions to test.
The example may be easier to understand if you copy it to a blank worksheet.
How to copy an example
http://togglediv%28%27divexpcollasst_32828235%27%29/http://togglediv%28%27divexpcollasst_32828235%27%29/http://togglediv%28%27divexpcollasst_32828235%27%29/http://togglediv%28%27divexpcollasst_32828235%27%29/5/28/2018 MS EXCEL-IF
4/18
4
1
2
3
4
A
Score
45
90
78
Formula Description
(Result)
=LOOKUP(A2,{0,60,63,67,70,73,77,80,83,87,90,93,97},{"F","D-
","D","D+","C-","C","C+","B-","B","B+","A-","A","A+"})
Assigns a letter
grade to the first
score (F)
=LOOKUP(A3,{0,60,63,67,70,73,77,80,83,87,90,93,97},{"F","D-","D","D+","C-","C","C+","B-","B","B+","A-","A","A+"})
Assigns a lettergrade to the
second score (A-)
=LOOKUP(A4,{0,60,63,67,70,73,77,80,83,87,90,93,97},{"F","D-
","D","D+","C-","C","C+","B-","B","B+","A-","A","A+"})
Assigns a letter
grade to the third
score (C+)
5/28/2018 MS EXCEL-IF
5/18
5
MS EXCEL: IF FUNCTION (WS)
Learn how to use the Excel IF functionwith syntax and examples.
DESCRIPTION
The Microsoft Excel IF functionreturns one value if a specified condition evaluates to TRUE, oranother value if it evaluates to FALSE.
SYNTAX
The syntax for the Microsoft Excel IF functionis:
IF( condition, [value_if_true], [value_if_false] )
PARAMETERS OR ARGUMENTS
conditionis the value that you want to test.
value_if_trueis optional. It is the value that is returned if conditionevaluates to TRUE.
value_if_falseis optional. It is the value that is return if conditionevaluates to FALSE.
APPLIES TO
The IF functioncan be used in the following versions of Microsoft Excel:
Excel 2013, Excel 2011 for Mac, Excel 2010, Excel 2007, Excel 2003, Excel XP, Excel 2000
TYPE OF EXCEL FUNCTION
The IF functioncan be used in Microsoft Excel as the following type of function:
Worksheet function (WS)
EXAMPLE (AS WORKSHEET FUNCTION)
Let's look at some Excel IF function examples and explore how you would use the IF functionas a
worksheet function in Microsoft Excel:
5/28/2018 MS EXCEL-IF
6/18
6
Based on the spreadsheet above, the following Excel IF exampleswould return:
=IF(A1>10, "Larger", "Smaller") would return "Larger"
=IF(A1=20, "Equal", "Not Equal") would return "Not Equal"
=IF(A2="Tech on the Net", 12, 0) would return 12
Learn how tonest multiple IF Functions.(up to 7)
Learn how tonest multiple IF Functions.(more than 7)
FREQUENTLY ASKED QUESTIONS
Question:In Microsoft Excel, I'd like to use the IF function to create the following logic:
if C11>=620, and C10="F"or"S", and C4
5/28/2018 MS EXCEL-IF
7/18
7
Question:In Microsoft Excel, I'm trying to use the IF function to return 0 if cell A1 is either < 150,000or > 250,000. Otherwise, it should return A1.
Answer:You can use theOR functionto perform an OR condition in the IF function as follows:
=IF(OR(A1250000),0,A1)
In this example, the formula will return 0 if cell A1 was either less than 150,000 or greater than250,000. Otherwise, it will return the value in cell A1.
Question:In Microsoft Excel, I'm trying to use the IF function to return 25 if cell A1 > 100 and cell B1< 200. Otherwise, it should return 0.
Answer:You can use theAND functionto perform an AND condition in the IF function as follows:
=IF(AND(A1>100,B1
5/28/2018 MS EXCEL-IF
8/18
8
Question:In Microsoft Excel, I need a formula that does the following:
IF the value in cell A1 is BLANK, then return "BLANK" IF the value in cell A1 is TEXT, then return "TEXT" IF the value in cell A1 is NUMERIC, then return "NUM"
Answer:You can write a nested IF statement that uses theISBLANK function,theISTEXTfunction,and theISNUMBER functionas follows:
=IF(ISBLANK(A1)=TRUE,"BLANK",IF(ISTEXT(A1)=TRUE,"TEXT",IF(ISNUMBER(A1)=TRUE,"NUM",
"")))
Question:In Microsoft Excel, I want to write a formula for the following logic:
IF R1
5/28/2018 MS EXCEL-IF
9/18
9
Question:In Microsoft Excel, I am trying to create an IF statement that will repopulate the data froma particular cell if the data from the formula in the current cell equals 0. Below is my attempt atcreating an IF statement that would populate the data; however, I was unsuccessful.
=IF(IF(ISERROR(M24+((L24-S24)/AA24)),"0",M24+((L24-S24)/AA24)))=0,L24)
The initial part of the formula calculates the EAC (Estimate At completion = AC+(BAC-EV)/CPI);however if the current EV (Earned Value) is zero, the EAC will equal zero. IF the outcome is zero, Iwould like the BAC (Budget At Completion), currently recorded in another cell (L24), to berepopulated in the current cell as the EAC.
Answer:You can write an IF statement that uses theOR functionand theISERROR functionasfollows:
=IF(OR(S24=0,ISERROR(M24+((L24-S24)/AA24))),L24,M24+((L24-S24)/AA24))
Question:I have been looking at your Excel IF, AND and OR sections and found this very helpful,however I cannot find the right way to write a formula to express if C2 is either 1,2,3,4,5,6,7,8,9 andF2 is F and F3 is either D,F,B,L,R,C then give a value of 1 if not then 0. I have tried many formulasbut just can't get it right, can you help please?
Answer:You can write an IF statement that uses theAND functionand theOR functionasfollows:
=IF(AND(C2>=1,C2
5/28/2018 MS EXCEL-IF
10/18
10
For example, I want to put an equation for work hours and pay. IF I am paid more than I should be, Iwant it to read how many hours I owe my boss. But if I work more than I am paid for, I want it to readwhat my boss owes me (hours*Pay per Hour).
I tried the following:
=IF(A2=0),C1+A2, IF(AND(ISBLANK(B2)=FALSE,B2>=0),C1-B2,
IF(AND(ISBLANK(A2)=TRUE, ISBLANK(B2)=TRUE),C1,"")))
Question:How would I write this equation in Excel? IF D12 0 but600 then ((600*F12)+((D12-600)*E12))
Answer:You can write a nested IF statement as follows:
=IF(D12600,((600*F12)+((D12-600)*E12)),D12*F12))
Question:In Excel, I have this formula currently:
=IF(OR(A1>=40, B1>=40, C1>=40), "20", (A1+B1+C1)-20)
If one of my salesman does sale for $40-$49, then his commission is $20; however if his/her sale isless (for example $35) then the commission is that amount minus $20 ($35-$20=$15). I have 3
http://www.techonthenet.com/excel/formulas/concat2.phphttp://www.techonthenet.com/excel/formulas/concat2.phphttp://www.techonthenet.com/excel/formulas/concat2.phphttp://www.techonthenet.com/excel/formulas/concat.phphttp://www.techonthenet.com/excel/formulas/concat.phphttp://www.techonthenet.com/excel/formulas/concat.phphttp://www.techonthenet.com/excel/formulas/and.phphttp://www.techonthenet.com/excel/formulas/and.phphttp://www.techonthenet.com/excel/formulas/and.phphttp://www.techonthenet.com/excel/formulas/isblank.phphttp://www.techonthenet.com/excel/formulas/isblank.phphttp://www.techonthenet.com/excel/formulas/isblank.phphttp://www.techonthenet.com/excel/formulas/isblank.phphttp://www.techonthenet.com/excel/formulas/isblank.phphttp://www.techonthenet.com/excel/formulas/isblank.phphttp://www.techonthenet.com/excel/formulas/and.phphttp://www.techonthenet.com/excel/formulas/concat.phphttp://www.techonthenet.com/excel/formulas/concat2.phphttp://www.techonthenet.com/excel/formulas/concat2.php5/28/2018 MS EXCEL-IF
11/18
11
columns that are needed based on the type of sale. Only one column per row will be needed. Theproblem is that, when left blank, the total in the formula cell is -20. I need help setting up this formulaso that when the 3 columns are left blank, the cell with the formula is left blank as well.
Answer:Using theAND functionand theISBLANK function,you can write your IF statement asfollows:
=IF(AND(ISBLANK(A1),ISBLANK(B1),ISBLANK(C1)),"",IF(OR(A1>40, B1>40, C1>40), "20",
(A1+B1+C1)-20))
In this formula, we are using the ISBLANK function to check if all 3 cells A1, B1, and C1 are blank,and if they are return a blank value (""). Then the rest is the formula that you originally wrote.
Question:In Excel, I need to create a simple booking and and out system, that shows a date out anda date back
"A1" = allows person to input date booked out"A2" =allows person to input date booked back in
"A3"= shows status of product, eg, booked out, overdue return etc.
I can automate A3 with the following IF function:
=IF(ISBLANK(A2),"booked out","returned")
But what I cant get to work is if the product is out for 10 days or more, I would like the cell to say"send email"
Can you assist?
Answer:Using theTODAY functionand adding an additional IF function, you can write yourformula as follows:
=IF(ISBLANK(A2),IF(TODAY()-A1>10,"send email","booked out"),"returned")
Question:Using Microsoft Excel, I need a formula in cell U2 that does the following:
IF the date in E212/31/2010 but 12/31/2011, return T2*0
I tried using the following formula, but it gives me #VALUE!
=IF(E2DATE(2010,12,31),E2
5/28/2018 MS EXCEL-IF
12/18
12
Can someone please help? Thanks.
Answer:You were very close...you just need to adjust your brackets as follows:
=IF(E2DATE(2010,12,31),E2 121, then 5.44
Answer:You can write your formula as follows:
=IF(D3>121,5.44,IF(D3>=91,4.6,IF(D3>=31,3.4,1.51)))
Question:I would like ask a question regarding the IF statement. How would I write in Excel thisproblem?
I have to check if cell A1 is empty and if not, check if the value is less than equal to 5. Then multiplythe amount entered in cell A1 by .60. The answer will be displayed on Cell A2.
Answer:You can write your formula in cell A2 using the IF function andISBLANK functionasfollows:
=IF(AND(ISBLANK(A1)=FALSE,A1
5/28/2018 MS EXCEL-IF
13/18
13
Question:In Excel, I'm trying to nest an OR command and I can't find the proper way to write it. Iwant the spreadsheet to do the following:
If D6 equals "HOUSE" and C6 equals either "MOUSE" or "CAT", I want to return the value in cell B6.Otherwise, the formula should return the value "BLANK".
I tried the following:
=IF((D6="HOUSE")*(C6="MOUSE")*OR(C6="CAT"));B6;"BLANK")
If I only ask for HOUSE and MOUSE or HOUSE and CAT, it works, but as soon as I ask for MOUSEOR CAT, it doesn't work.
Answer:You can write your formula using theAND functionandOR functionas follows:
=IF(AND(D6="HOUSE",OR(C6="MOUSE",C6="CAT")),B6,"BLANK")
This will return the value in B6 if D6 equals "HOUSE" and C6 equals either "MOUSE" or "CAT". Ifthose conditions are not met, the formula will return the text value of "BLANK".
Question:In Microsoft Excel, I'm trying to write the following formula:
If cell A1 equals "jaipur", "udaipur" or "jodhpur", then cell A2 should display "rajasthan"If cell A1 equals "bangalore", "mysore" or "belgum", then cell A2 should display "karnataka"
Please help.
Answer:You can write your formula using theOR functionas follows:
=IF(OR(A1="jaipur",A1="udaipur",A1="jodhpur"),"rajasthan",
IF(OR(A1="bangalore",A1="mysore",A1="belgum"),"karnataka"))
This will return "rajasthan" if A1 equals either "jaipur", "udaipur" or "jodhpur" and it will return"karnataka" if A1 equals either "bangalore", "mysore" or "belgum".
Question:In Microsoft Excel I'm trying to achieve the following with IF function:
If a value in any cell in column F is "food" then add the value of its corresponding cell in column G (ega corresponding cell for F3 is G3). The IF function is performed in another cell altogether. I can do itfor a single pair of cells but I don't know how to do it for an entire column. Could you help?
At the moment, I've got this:
=IF(F3="food"; G3; 0)
Answer:This formula can be created using theSUMIF formulainstead of using the IF function:
http://www.techonthenet.com/excel/formulas/and.phphttp://www.techonthenet.com/excel/formulas/and.phphttp://www.techonthenet.com/excel/formulas/and.phphttp://www.techonthenet.com/excel/formulas/or.phphttp://www.techonthenet.com/excel/formulas/or.phphttp://www.techonthenet.com/excel/formulas/or.phphttp://www.techonthenet.com/excel/formulas/or.phphttp://www.techonthenet.com/excel/formulas/or.phphttp://www.techonthenet.com/excel/formulas/or.phphttp://www.techonthenet.com/excel/formulas/sumif.phphttp://www.techonthenet.com/excel/formulas/sumif.phphttp://www.techonthenet.com/excel/formulas/sumif.phphttp://www.techonthenet.com/excel/formulas/sumif.phphttp://www.techonthenet.com/excel/formulas/or.phphttp://www.techonthenet.com/excel/formulas/or.phphttp://www.techonthenet.com/excel/formulas/and.php5/28/2018 MS EXCEL-IF
14/18
14
=SUMIF(F1:F10,"=food",G1:G10)
This will evaluate the first 10 rows of data in your spreadsheet. You may need to adjust the rangesaccordingly.
I notice that you separate your parameters with semi-colons, so you might need to replace thecommas in the formula above with semi-colons.
Question:Im looking for an Exel formula that says:
If F3 is "H" and E3 is "H", return 1
If F3 is "A" and E3 is "A", return 2
If F3 is "d" and E3 is "d", return 3
Appreciate if you can help.
Answer:This Excel formula can be created using theAND formulain combination with the IFfunction:
=IF(AND(F3="H",E3="H"),1,IF(AND(F3="A",E3="A"),2,IF(AND(F3="d",E3="d"),3,"")))
We've defaulted the formula to return a blank if none of the conditions above are met.
http://www.techonthenet.com/excel/formulas/and.phphttp://www.techonthenet.com/excel/formulas/and.phphttp://www.techonthenet.com/excel/formulas/and.phphttp://plus.google.com/+Techonthenetcomhttp://twitter.com/tech_on_the_nethttp://facebook.com/techonthenetcomhttp://www.techonthenet.com/excel/formulas/and.php5/28/2018 MS EXCEL-IF
15/18
15
MS EXCEL: NESTED IF FUNCTIONS (WS)
Learn how to nest the Excel IF functionwith syntax and examples.
DESCRIPTION
It is possible to nest multiple IF functions within one Excel formula. You can nest up to7IF functionsto create a complex IF THEN ELSE statement.
SYNTAX
The syntax for the nesting the IF functionis:
IF( condition1, value_if_true1, IF( condition2, value_if_true2, value_if_false2 ))
This would be equivalent to the following IF THEN ELSE statement:
IF condition1 THEN
value_if_true1
ELSEIF condition2 THEN
value_if_true2
ELSE
value_if_false2
END IF
PARAMETERS OR ARGUMENTS
conditionis the value that you want to test.
value_if_trueis the value that is returned if conditionevaluates to TRUE.
value_if_falseis the value that is return if conditionevaluates to FALSE.
NOTE
This Nested IF functionsyntax demonstrates how to nest two IF functions. You can nest up to7 IF functions.
APPLIES TO
The Nested IF functioncan be used in the following versions of Microsoft Excel:
Excel 2013, Excel 2011 for Mac, Excel 2010, Excel 2007, Excel 2003, Excel XP, Excel 2000
http://www.techonthenet.com/excel/formulas/if.phphttp://www.techonthenet.com/excel/formulas/if.phphttp://www.techonthenet.com/excel/formulas/if.phphttp://www.techonthenet.com/excel/formulas/if.phphttp://www.techonthenet.com/excel/formulas/if.php5/28/2018 MS EXCEL-IF
16/18
16
TYPE OF EXCEL FUNCTION
The Nested IF functioncan be used in Microsoft Excel as the following type of function:
Worksheet function (WS)
EXAMPLE (AS WORKSHEET FUNCTION)
Let's look at an example to see how you would use a Nested IF examplesand explore how youwould use the Nested IF functionas a worksheet function in Microsoft Excel:
Based on the spreadsheet above, the following Excel Nested IF exampleswould return:
=IF(A1="10x12",120,IF(A1="8x8",64,IF(A1="6x6",36))) would return 120
=IF(A2="10x12",120,IF(A2="8x8",64,IF(A2="6x6",36))) would return 64
=IF(A3="10x12",120,IF(A3="8x8",64,IF(A3="6x6",36))) would return 36
FREQUENTLY ASKED QUESTIONS
Question:In Microsoft Excel, I need to write a formula that works this way:
If (cell A1) is less than 20, then multiply by 1, If it is greater than or equal to 20 but less than 50, then multiply by 2
If its is greater than or equal to 50 and less than 100, then multiply by 3 And if it is great or equal to than 100, then multiply by 4
5/28/2018 MS EXCEL-IF
17/18
17
Answer:You can write a nested IF statement to handle this. For example:
=IF(A1
5/28/2018 MS EXCEL-IF
18/18
18
Answer:You can write a nested IF statement that uses theAND functionand theISBLANKfunctionas follows:
=IF(AND(ISBLANK(A2)=FALSE,A2>=0),C1+A2, IF(AND(ISBLANK(B2)=FALSE,B2>=0),C1-B2,
IF(AND(ISBLANK(A2)=TRUE, ISBLANK(B2)=TRUE),C1,"")))
Question:How would I write this equation in Excel? If D12 0 but 600 then ((600*F12)+((D12-600)*E12))
Answer:You can write a nested IF statement as follows:
=IF(D12600,((600*F12)+((D12-600)*E12)),D12*F12))
Question:I have read your piece on nested IFs in Excel, but I still cannot work out what is wrongwith my formula please could you help? Here is what I have:
=IF(63=63,1,0)))
This formula will do the following:
If A2 >= 95, the formula will return 3 (first IF function) If A2 < 95 and A2 >= 80, the formula will return 2 (second IF function) If A2 < 80 and A2 >= 63, the formula will return 1 (third IF function) If A2 < 63, the formula will return 0
http://www.techonthenet.com/excel/formulas/and.phphttp://www.techonthenet.com/excel/formulas/and.phphttp://www.techonthenet.com/excel/formulas/and.phphttp://www.techonthenet.com/excel/formulas/isblank.phphttp://www.techonthenet.com/excel/formulas/isblank.phphttp://www.techonthenet.com/excel/formulas/isblank.phphttp://www.techonthenet.com/excel/formulas/isblank.phphttp://facebook.com/techonthenetcomhttp://www.techonthenet.com/excel/formulas/isblank.phphttp://www.techonthenet.com/excel/formulas/isblank.phphttp://www.techonthenet.com/excel/formulas/and.php