IF is one of the most popular Excel functions and very useful on its own. Combined with the logical functions such as AND, OR, and NOT, the IF function has even more value because it allows you to test multiple conditions in desired combinations. Continue reading
Comments page 3. Total comments: 222
Hi need help. I would want to automatically get the rates when these combinations are selected. Please see table. Thank you so much in advance.
Service Paper Size Print Color Rate
Print - Plain TEXT Letter Grayscale | B/W 5.00
Print - Plain TEXT A4 Grayscale | B/W 5.00
Print - Plain TEXT Long / Folio Grayscale | B/W 7.00
Print - IMAGE (Half page) Letter Grayscale | B/W 7.00
Print - IMAGE (Half page) A4 Grayscale | B/W 7.00
Print - IMAGE (Half page) Long / Folio Grayscale | B/W 10.00
Print - IMAGE (Half page) Letter Colored 12.00
Print - IMAGE (Half page) A4 Colored 12.00
Print - IMAGE (Half page) Long / Folio Colored 15.00
Print - IMAGE (Full page) Letter Grayscale | B/W 10.00
Print - IMAGE (Full page) A4 Grayscale | B/W 10.00
Print - IMAGE (Full page) Long / Folio Grayscale | B/W 12.00
Print - IMAGE (Full page) Letter Colored 15.00
Print - IMAGE (Full page) A4 Colored 15.00
Print - IMAGE (Full page) Long / Folio Colored 20.00
Print - Digital photo 4R Colored 30.00
Photocopy Letter Grayscale | B/W 5.00
Photocopy Letter Colored 7.00
Photocopy A4 Grayscale | B/W 5.00
Photocopy A4 Colored 7.00
Scan 10.00
addt'l - Editing 3.00
Hello!
You can find the answer to your question in this guide: Extract a substring after the last occurrence of the delimiter
=RIGHT(A2,LEN(A2)-SEARCH("$",SUBSTITUTE(A2," ","$",LEN(A2)-LEN(SUBSTITUTE(A2," ","")))))
Thank you for this but I am not looking for the delimiter. What I am trying to get is the "RATES". For instance if I input "Print - Plain TEXT" on "SERVICE" then "Long / Folio" on the "PAPER SIZE" then "Grayscale" on "Print colour" it will get me automatically the "RATE" of 7.00..
Hi!
From text: Print - Plain TEXT Long / Folio Grayscale | B/W 7.00 - formula extracts 7.00
If it is not a single text string but several cells, which you did not mention, use these guidelines: Excel INDEX MATCH with multiple criteria.
Hey Alexander Trifuntov ! Thank you so much for the help. Works really great! Awesome! Just as the result I really wanted. :D
I am trying to sum a range of cells if another range of cells says either yes or no. If yes then sum the cells, if no, then subtract the amount in that cell. Can someone help?
Hi!
You can also find useful information in this article: How to use SUMIF function in Excel with formula examples. I hope it’ll be helpful.
doc_no frm_date to_date missing date
1662450337 01-Apr-22 04-Apr-22
1662450337 05-Apr-22 07-May-22
1662450337 08-May-22 04-Jun-22
1662450337 05-Jun-22 04-Jul-22
1662450337 05-Jul-22 04-Aug-22
1662450337 05-Aug-22 04-Sep-22
1662450337 05-Sep-22 04-Oct-22
Hi,
Can you please help. i need help with the following
=IF(OR(K20="DE",K20="FR",K20="SE",K20="ES",K20="IE",K20="IT",K20="DK",K20="NL",Z20>150),"GB 320000",K20)
if for example K20= "CH" is not listed in the above formula. is there an add on to this formula to just show K20 as CH
Hope this makes sense.
thanks
Hi!
Add another OR condition as described in the article above.
this is the full formula i'm looking for, but no joy. help would be greatly appreciated
=IF($K20="DE",IF($Z20>150,GB 320000),IF($K20="FR",IF($Z20>150,GB 320000),IF($K20="SE",IF($Z20>150,GB 320000),IF($K20="ES",IF($Z20>150,GB 320000),IF($K20="IE",IF($Z20>150,GB 320000),IF($K20="IT",IF($Z20>150,GB 320000),IF($K20="DK",IF($Z20>150,GB 320000),IF($K20="NL",IF($Z20>150,GB 320000),IF($K20="CH",IF($Z20>0,CH)
I am using the following formula, but I am finding examples where the SUM of T to V = 2 in the first argument and it is still returning a Compliant result when it should be Non Compliant for not being = to 3?
=IF(OR(N46=1,SUM($T46:$V46)=3,N46=0,SUM($T46:$U46)=2),"Compliant","Non Compliant")
Hello!
You are using the logical OR function. If at least one condition is true, the formula returns TRUE.
Simple formula, but I can't figure out how to use IF, or if it is IF OR or IF AND to nest the ifs.
Column A (Salary) has values ranging from 10 to 100.
I want to indicate in Column B whether the numbers in Column A would be, '75 and below,' '50 and below,' and '25 and below.'
I can do the basic =IF(A2<=100,"100 or less","0") but then get stuck trying to add the '75 and below,' '50 and below,' and '25 and below.'
Thanks!
Hi!
Use nested IF function and this example. This should solve your task.
Hi,
Thanks for you great works.
I am working on a file with column A containing dropdown list of numbers 100, 200, and 300. The number represents "account department", "legal department" and "sales department" respectively.
How can I make column B dependent on what is chosen on the dropdown list of column A? That is, if 100 is chosen on the dropdown list in column A, I want column B to return "account department" on its own.
Thank yoy.
Hi!
If you want to check if multiple conditions are true, use a nested IF function.
I would like to calculate a sum of products, but with a pricing break.
1st item= $50, 2nd item onwards = $70 each
Let's say if A buys 3 products, he will have to pay $50 for the first product, for the other 2 items, he will have to pay $70 each.
How could I create a formula for this problem? Hope you could assist me, it'll be a great help
Thank you in advance
Hi!
Use the IF function to calculate the sum for values greater than zero.
The formula below will do the trick for you:
=IF(A1>0,(A1-1)*70+50,0)
I'm trying to use IF to show "ok" or "out of balance" if a value is over or under by more than 5%.
Cell C20 has a value of 700
Cell C21 has a value of 650
My formula for D20 is =C20-C21 giving a value of 50
My formula for D20 is =IF(D20< C20*5%,"Ok","Out of balance")
This works but if the figures in C20 & C21 were reversed the value in D20 is -50 and shows as"Ok"
What I want is the formula to show "out of balance" if the value was over OR under by more than 5%
Hi!
To ignore what is a positive or negative number, use the ABS function -
=ABS(C20-C21)
This should solve your task.
Cell I2="Any Text", J2="Blank Text,K2="Blank Text,L2="Blank Text,
than need answer in Cell M="Any Text"
Blank Text = Blank Cell
one column have any text and other column have no text, I want to type text only automatically
Hi!
You can merge cell values using the CONCATENATE function as described in this article: Combine text strings, cells and columns.
Is there a syntax error with this formula? I'm getting #Name. Likewise with this formula,
=IF(AND(OR(AH2=”glass”,AH2=”stained glass”,AH2=”window”),I2>14,AA2>20),"Y","N")
Hi!
When you copy a formula from a website page, change the slash quotes ” to straight quotes ".
Hi there-
I'm trying to code blood pressure according to JNC 7 criteria for normal/prehypertension/stage 1/stage 2 categories. i have different collumns for "systolic" and "diastolic" blood pressure numbers. A blood pressure can qualify for prehypertension, for example, if the systolic OR the diastolic numbers qualify. Here is what I have - can you help me figure out why it's not working?
=IF(OR(G10 > 159,H10 > 99),"2",IF(OR(G10 > 139,H10 > 89),"1",IF(OR(G10 > 119,H10 > 79)"PRE",IF(G10 < 120,"NORM"))))
Hi!
I can't see your data and therefore can't tell what doesn't work in the IF function with multiple conditions. But a comma was missing in the formula.
=IF(OR(G10 > 159,H10 > 99),"2",IF(OR(G10 > 139,H10 > 89),"1",IF(OR(G10 > 119,H10 > 79),"PRE",IF(G10 < 120,"NORM"))))
Maybe that will help.
Trying to combine these two IF statements into one IF OR statement:
=IF(F:F<TODAY(),"Past Due", "Future Ship")
=IF(G:G=H:H, "Picked" , "N/A")
Any help would be appreciated!
Hi1
What you want to do is not possible. These formulas use different values and are not connected in any way.Please re-check the article above.
What is the best way to combine the two following statements. Combing is where I seem to have problems.
=IF(AND(K2="Urgent"),IF(N21,"Fail")))
=IF(AND(K2="Not Urgent"),IF(N23, "Fail")))
Thank you
Hi!
Based on your description, it is hard to completely understand your task. IF(N21,”Fail”) - doesn't make sense. However, I’ll try to guess and offer you the following formula:
=IF(AND(K2="Urgent",N21="Fail"),TRUE,IF(AND(K2="Urgent",N21="Fail"),))
I recommend reading this guide: IF AND in Excel. Nested formula, multiple statements, and more.
i have customers data in excel how create customer wise statement a period of year or month
Hi!
The information you provided is not enough to understand your case and give you any advice. However, I can assume that you can select data about the customer using the FILTER function. The following tutorial should help: Excel FILTER function - dynamic filtering with formulas.
Hello there!
I could not get this formula to work. Could you help me identify where could be the error? It always gives a #VALUE! result.
=IF(OR(B:B={"Third Party & Terminal PIU Unit","Shaybah Projects Inspection Unit","Dist & Refined Product P/L PIU Unit","RT Refinery & Juaymah NGL Unit","RTR Clean Fuel Complex Unit","Riyadh Refinery Unit","Cross Country Pipeline PIU Unit","Master Gas System Proj Inspection Unit","Pipeline Upgrade & Crude Delivery Unit","WR Refining & NGL Projs Insp Unit","WR Pipelines & Terminal Unit","WR Bulk Plant & Dist Unit","Jazan Complex Projs Inspection Unit"}), "DPID", ""), IF(OR(B:B={"Maritime Yard Dev Project Inspection Sec","Ship Building Projects Inspection Unit","Off, Rigs Platform & Utls Proj Insp Unit","Maint & Support Vessels Proj Insp Unit","Special Kingdom Projects Inspection Unit","Community Projects Inspection Unit","Communication & Security Unit","Batch Plants & Civil Testing Unit"}), "MBIPID", ""), IF(OR(B:B={"Gas Compression Projs Inspection Sec","NA Gas Facilities","SA Gas Facilities","Fadhili Project Insp Unit","Hawiyah Increment Projs Inspn Unit","Haw/Una Gas Reservoir Storage PIU","North Gas Comp Plants Proj Insp Unit","Haradh&Hawiyah Comp P/L Proj Insp Unit","Satellite Gas Comp Plants Proj Insp Unit","South Gas Comp Plants Proj Insp Unit","Infrastructure & Support Proj Insp Unit","Jafurah Util, Sulfur & Intrcon Sys PIU","Jafurah Gas Processing Trains PIU","Jafurah Pipelines, IT & Site Dev PIU","Jafurah Infra & 3rd Party Coord PIU","Wasit-Jafurah NGL Fractionation PIU","Jafurah Pipelines, & Downstream Fac PIU","NGL Recovery & Fract' Unit","Utilities, Flare & Piperack Unit","Site Prep, ISF, SSF Unit","Inlet Storage & Compression Unit","Downstream Pipeline Unit","Gas Treat, Sulfur Rec' & Han' Fac Unit","Unconventional Resources Projs Insp Unit"}), "UGIPID", ""), IF(OR(B:B={"SA Oil MP Projs Inspection Unit","NA Oil MP Projs Inspection Unit","Gas MP Projs Inspection Unit","Marjan Offshore Gas Facilities Unit","Marjan GOSP-4 Unit","Marjan Offshore Oil Facilities Unit","Marjan Onshore Oil Facilities Unit","Zuluf Onshore Facilities Proj Insp Unit","Zuluf Offshore Facilities Proj Insp Unit","Infras, Pipeline & Comm Proj Insp Unit","North Ghawar Oil Facilities Unit","NA Oil Facilities","South Ghawar Oil Facilities Unit","Berri Increment Processing Fac Unit","Berri Onshore Facilities Unit","Fabyards ProJ Insp Unit","Installation Projects Insp Unit","Onshore Proj Insp Unit"}), "UOPID", "")
Many thanks.
Hi!
Your formula is so big that it is impossible to understand it. It's not clear what you want to do. However, keep in mind that such a formula always returns an array of values.
=IF(A1:A10={"a","b","c"},TRUE)
See the result of this formula.
“Gopal informed other students if you score 20 marks in end term exam OR 60 marks in total in
subject then you PASS otherwise FAIL.” write an excel command.
I need help,
I have this scenario where Agent 1 has a ceiling of 500, Agent 2 has 250 and Agent 3 has 150.
If at anytime any of the agents pay goes above the ceiling, then 10% is calculated on the ceiling if the pay is below the ceiling then the 10% is calculated on that amount
How do i use IF statement to achieve this in Excel
Hello!
I recommend reading this guide: Nested IF in Excel – formula with multiple conditions.
If I understand your task correctly, the following formula should work for you:
=IF(A1="Agent 1",IF(B1>500,500*10%,B1*10%),IF(A1="Agent 2",IF(B1>250,250*10%,B1*10%),IF(A1="Agent 3",IF(B1>150,150*10%,B1*10%))))
This works. Thank you
Hello,
Is there a way to combine two formulas below:
=IF(B63=TRUE; (G63)-(F63*1,21*D63); 0)
=IF(B63=TRUE; (G63)-(F63*1,21*D63); 0)
Tried this way, but it's not working:
=IF(B63=TRUE; (G63)-(F63*1,21*D63); 0); OR(=IF(B63=TRUE; (G63)-(F63*1,21*D63); 0))
Thank You for Your time!
Sorry, mistake! I meant:
=IF(B63=TRUE; (G63)-(F63*1,21*D63); 0)
=IF(H63="Paid"; (G63)-(F63*1,21*D63); 0
Tried this way, but it's not working:
=IF(B63=TRUE; (G63)-(F63*1,21*D63); 0); OR(=IF(H63="Paid"; (G63)-(F63*1,21*D63); 0))
Hi!
I think you have not read the article very carefully. There is an answer to your question.
=IF(OR(B63=TRUE;H63=”Paid”);(G63)-(F63*1,21*D63); 0)
I really appreciate Your answer! Thank You!
How To Extract Unique Values or Duplicate Names and sort (A-Z) Based On Criteria In Excel? Using index or match.
For Example:-
Sl No# Location Name score
1 Mumbai Rohit 93
2 Mumbai Sachin 93
3 Gujrat Suresh Raina 90
4 Ranchi M.S Dhoni 85
5 Ranchi Sorabh Tiwari 85
Hello!
How to extract unique values using INDEX + MATCH functions, read this tutorial.
Your examples helped me find a solution - thanks for posting this page.
Please check to see if the following is an error in the section "IF OR statement in Excel" where you state the lines below [in brackets like those enclosing this phrase to avoid confusion if I used double quotes]:
[ Here's is an example of the IF OR formula in the simplest form:
=IF(OR(B2="delivered", B2="paid"), "Closed", "Open")
What the formula says is this: If cell B2 contains "delivered" or "cancelled", mark the order as "Closed", otherwise "Open". ]
However, as I read the formula, it indicates that if cell B2 contains "delivered" or "paid" (not "cancelled") then the order will be marked as "Closed". If you look at the screen shot, the row containing "Cancelled" shows a Status of "Open", not "Closed" as your explanation states it will. Please clarify for your readers.
Hello!
Of course, it is "paid", not "cancelled". Thank you for pointing that out, fixed!
I am trying to say that if One Cell = this amount add / subtract a Certain amount.
Can this be done??
EX: =IF(D6/7=E6,G6) OR (D6/7=E6,H6) OR (D6/7=E6,I6) OR (D6/7=E6,J6) OR (D6/7=E6,K6)
Thx...Dawn
Hi!
Sorry, I cannot understand your formula
=IF(AND(A2="VISHAL", B2="HP", C2=610), "6", "10"), IF(AND(A2="VISHAL", B2="HP", C2=2310), "15", "20")
WILL THIS WORK?????????
I NEED TO ENTER MULTIPLE RESULT IN A SINGLE CELL, FROM DIFFERENT CONDITIONS.
Hello!
Your conditions contradict each other. For example, if A2 = ”VISHAL”, B2 = ”HP”, C2 = 900 then the first condition will return 10, and the second - 20.
This isn't working. What am I doing incorrectly?
=IF((OR(E2=Daily, E2=Weekly)), Next Shift, ENTER DATE)
Column E indicates if a project is due daily or weekly. Column F would ideally calculate today+1 for daily or today+8 days for weekly.
Hi,
You must enclose text values in quotation marks, such as "Weekly".
What is "Next Shift, ENTER DATE"?
Based on your description, it is hard to completely understand your task. However, I’ll try to guess and offer you the following formula:
=IF(E2="Daily",TODAY()+1,IF(E2="Weekly",TODAY()+8,""))
Hope this is what you need.
I got it! thank you. :)
Hi.. need help.
i have date today and start date, to calculate the case age but another column is the status of the case, close or open.. so the logic will be.. calculate the case age if the case is still open..
thank you in advance.
Hello!
In the condition of the IF function, write down the check that the case is open. If the condition is met, calculate the age using the DATEDIF function.
Hope you’ll find this information helpful.
I got this formula: =IF(OR(C2="Closed","--"),(SUM(A2-B2)))
but..
it's working but the other way around. it calculates the age if the case is marked as "Closed".
Hi, I would like to know a formula to show if something if greater than or less than a number to show a figure for example
11 years service - if the years service is more than 10 to show 2, if it is less than 10 but more than 5 to show 1 and if it is less than 5 to show 0.
hope this makes sense.
TIA
Hello!
I hope you have studied the recommendations in the tutorial above. It contains answers to your question.
=IF(A1>10,2,IF(A1>5,1,0))
there are some proble with me in excell example
=if(a1<10,100,"enough",if(d1=0,"niu"))
Please I need your help how can I come up with the formula for this
45000 =0%
5000=15%
Next 2950000=30%
Excess 3000000=35%
Hello!
A similar question has already been asked many times on our blog. I think this answer will be helpful.
I need some help in constructing the formula to this:
I need to derive a result(column title) if ALW(column title) is 1.56 and up its Oversize, if ALW is 1.20-1.55 its Goodsize, if ALW is 1.10-1.19 its Undersize, if ALW is 1.0-1.09 its Offsize, and if ALW is below 1.0 its Runts
Hello!
I’m sorry but your task is not entirely clear to me.
What is the column title? In Excel and other spreadsheet applications, the column header is the colored row of letters used to identify each columnwithin the sheet, or workbook. Column title is a letter.
If your question is about an Excel cell -
=IF(A1>=1.56,"Oversize", IF(A1>=1.2,"Goodsize", IF(A1>=1.1,"Undersize", IF(A1>=1,"Offsize", "Runts" ))))
i need a formula like ( date of joinin - current date less than 365 days then the answer should be 0
Hello!
How to use Excel IF function with dates read in this article.
Hi,
I am trying to do the following if statements with the last if statement to add on an additional 1 week if P13 = "U" but I can't get this to work. Any help would be welcomed.
=IF(AND(O131,O133,O135),4,IF(AND(P13="U",2),TRUE)))))
Hello Joanne!
I’m sorry but your task is not entirely clear to me.
Please describe your problem in more detail. Include an example of the source data and the result you want to get. It’ll help me understand your request better and find a solution for you. Thank you.
Hi,
I am trying to do the following if statements with the last if statement to add on an additional 1 week if P13 = "U" but I can't get this to work. Any help would be welcomed.
=IF(AND(O131,O133,O135),4,IF(AND(P13="U",2),TRUE))))).
Thanks so much.
IF(A1="DELIVERY",THEN C1(CELL NO)*.020%,IF NO C1*.004% I NEED CORRECT FORMULA
How do I write the formula for... If either Cell A1 or Cell D1 contains a term, say "ENGLISH", then the consequent grade of ENGLISH from the C1 or F1 should be filled in cell G1.
Is it possible?
Hello Michael!
If I got you right, the formula below will help you with your task:
=IF(A1="ENGLISH",C1, IF(D1="ENGLISH",F1,""))
I hope it’ll be helpful.
=IF(E45="PA1",0.85,IF(E45="PA2",0.95,IF(E45="CB1",0.99,"")))
I NEED A FORMULA FOR CELL F45
IF CELL E45 = "PA1" THEN CELL F45= .85 AND IF CELL E45 = PA2 THEN CELL F45 READS .95 AND IF CELL = E45 - CB1 THEN F45 = .99
THANKS
Trying to write a formula that picks out the word grapefruit from D14 or the word recorder from D14 and gives a zero.. if those words aren't found then F14-E14. The formula works for just Grapefruit but when I add in the Or and Recorder it doesn't. What am I writing wrong? It's telling me to many arguments.
=If(Or(Is number(Search("Grapefruit"'D14,(Is number(Search("Recorder",D14),0,F14-E14))
Can I not make cell to cell comparison with if/or? Here is the formula I am using.
=IF(OR(D3<E3,D3=E3,"Good", "Review"))
Here is the formula I used after reviewing the responses to other questions on this forum. New formula works.
=IF(D3<=E3, "Good", "Review")
Hi Sam,
Your original formula would work as well. You just had to move the other bracket to close off the or( function.
=IF(OR(D3<E3,D3=E3),"Good", "Review")
Can you help me on the error in this formula. =IF(ISNUMBER($AH15),ANDIF($AH15>150,(" High Random Blood Sugar "&$AH15&" Mg.%. ", "")&" "&IF($AH15>150,"Urine Sugar "&$AI15&". ", ""),("")
AH15 is Number or Text "ND" i.e. Not Done.
Thank you.
=IF(OR(ISNUMBER($AH15),$AH15="ND"),IF($AH15>150,"High Random Blood Sugar"&$AH15&"Mg.%.","")&" "&IF($AH15>150,"Urine Sugar"&" "&$AI15&".",""),"")
The above formula seems to work for me.
I have a price range for warranty coverage. I need to see when sales either sold the item over or under the range for a warranty package. For example:
Min Product $ Range Max Product $ Range Product $ Sold
1000 1499.99 269.00
300 599.99 1049.00
1000 1499.99 578.00
600 799.99 1456.00
I need a formula that tells me if the product sold for $269.00 was "oversold" or "undersold" contract range? I tried =if(or(c1=B2,"oversold"))
It doesn't work. What am I doing wrong?
A = Min / B = Max / C = Sold
=IF(C1B1,"OVERSOLD","")
Something is wrong with the formula not being posted properly.
=IF(C1B1,"OVERSOLD","")
It should be:
=IF(C1 less than A1,"UNDERSOLD",IF(C1 greater than B1,"OVERSOLD","")
Hello,
I want to write a formula to write C1 as:
1 if A1>10 or B1>20
2 if 7<A1<10 or 10<B1<20
3 if 4<A1<7 or 5<B1<10
4 if 1<A1<4 or 1<B1<5
5 if A1<1 or B1<1
Thanks in advance
I have student totals,I want to apply comments, 400 and above should have good performance, 300-400 should have fair performance, below 300 should have poor performance,the cell for total is I
I need a formula in google spreadsheet that will:
+1 when the value is >=5,
+2 when the value is >=10,
+3 when the value is >=15,
+4 when the value is >=20,
+5 when the value is >=25
The formula I am currently using is:
=IF(F7>=5,H7+1,IF(F7>=10,H7+2,IF(F7>=15,H7+3,IF(F7>=20,H7+4,H7))))
This formula is working for the +1 when the value is >=5, but when the value is >=10, it is still adding +1.
Please Help!
Hello Tina,
You see, your first condition fits to all other conditions as well - the value is greater than 5. You need to limit each condition and check, for example, if the number is not only greater than or equal to 5 but also less than 10.
Your formula for spreadsheets should look like this:
=IF(AND(F7>=5,F7<10), H7+1, IF(AND(F7>=10,F7<15), H7+2, IF(AND(F7>=15,F7<20), H7+3, IF(F7>=20,H7+4, H7))))
You will find the info about the IF function in Google Sheets in this post.
I have 2 columns, work email(D2) & personal email(E2). I am trying to create a formula in a new field (preferred email) that says if D2 is blank use E2 (if there is a value) or if E2 is blank use D2 or leave blank. Is this possible?
Hi Sue,
If you love compact formulas, use this one :)
=IF(D2<>"", D2, IF(E2<>"", E2, ""))
That's awesome.
Hi,
If I get it right, your task is as follows: if a cell in Column D contains an email address, a formula is to bring it; if not, it should bring an email address from a cell in Column E; if both cells are empty, the formula has to bring nothing. I hope you do not mind lengthy formulas:
=IFS(OR(AND(N(ISBLANK(D2))=0, N(ISBLANK(E2))=0), AND(N(ISBLANK(D2))=0, N(ISBLANK(E2))=1)), D2, AND(N(ISBLANK(D2))=1, N(ISBLANK(E2))=0), E2, AND(N(ISBLANK(D2))=1, N(ISBLANK(E2))=1), "")
Someone please help me, i cant get this to work
In column C I enter one of 7 names.
Depending on the name I want different results in column N
So
If the name is
1 - Andy Black the result should be 400
2 - Mr Jet, Nina Sven or Mike Young the result should be 600
3 - Dr Joe, Miss Adams or Neil Foe the result should be 800
4 - Ms Hard the result should be 1000
5 - Mr Woo the result should be 1200
Which formula do I use to solve this?
Hi Björne,
The following formula suggests itself:
=IFS(C2="Andy Black", 400, OR(C2="Mr Jet", C2="Nina Sven", C2="Mike Young"), 600, OR(C2="Dr Joe", C2="Miss Adams", C2="Neil Foe"), 800, C2="Ms Hard", 1000, C2="Mr Woo", 1200)
Formula 2. If a cell is this OR that, then calculate
=IF(OR(D3>0,D390,D3180,D3270,D30,D390,D3180,D3270,D3<360),W3] are not coming
- need to know what to change to make it work .. than you
I am looking for the correct formula to use to return the greatest of two values. For example, if Q3 (5.89) is greater than R3 (7.452), I want S3 to show R3 value (7.452). If Q17 (28.86) is greater than R17 (3.105), I want S17 to show Q17 value (28.86).
Hi Jwalker,
I hope that your task may be expressed in the following way: if the value in Cell R3 is less than the value in Cell Q3, the value from Cell Q3 is needed; if the value in Cell R3 is more than the value in Cell Q3, the value from Cell R3 is needed. If so, here is the formula you could apply:
=IF(Q3 < R3, R3, Q3)
I need to validate customer order to ensure it is not less than minimum order value(MOV) and not less than minimum order qty. We validated order value on one column, filter out the order lines with order value lower than MOV and then validated order qty on another column. Is there shortcut to have all the validation performed under single column with a sophisticated nested if function?
hi everyone,
how can i formulate this one?
if >=6 : full assistance
if =4 or 5 : half assistance
if <= 3 : no assistance
Hi Farzaneh,
I hope the following formula will do the job:
=IFS(D2<=3, "no assistance", OR(D2=4,D2=5), "half assistance", D2>=6, "full assistance")
So how would I do this? If cell A1 is equal to 10, I want to multiply B1 by ten, but if A1 is equal to 25 I want to multiply B1 by four, but if A1 is equal to 50 I want to multiply B1 by 2.
Thanks in advance!
Hi Marty,
I think that both the IF function and the IFS function may help you with your task. Please choose whatever you like:
=IF(A1=10, B1*10, IF(A1=25, B1*4, IF(A1=50 ,B1*2)))
=IFS(A1=10, B1*10, A1=25, B1*4, A1=50, B1*2)
If you feel like exploring the subject, you may find it helpful to read the following articles:
'Excel Nested IF statement: examples, best practices and alternatives', 'Excel nested IF statement - multiple conditions in a single formula', and 'Use the new Excel IFS function instead of nested IF'.
Hi all
I want to differentiate the cell values into the crores, Lakh, Thousand, Hundred, Tens, Units
Example : -
123456789
12 Crores 24 Lakh 56 Thousand 7 Hundred 89
So how will i do can anyone here who can help me
Hi, Hoping someone can help.
I'm trying to write a formula using the IF, AND, or OR function but can't get the formula correct. It should be simple, really.
The conditions are;
If the SUM of Cells E4:G4 = between 10 and 15, then Cell G14 = 25
If the SUM of Cells E4:G4 is greater than or equal to 15, then Cell G14 = 50
Then there's one other result that I'm trying to achieve (in a separate cell but a similar formula)
If the SUM of Cells E4:P4 = between 400 and 600, then Cell P15 = 10
If the SUM of Cells E4:P4 is greater than or equal to 600, then Cell P15 = 20
I can't work out what I'm doing wrong, I wont paste what formulas i currently have to avoid causing a case of mass confusion.
THANKS IN ADVANCE
=IF(AND(SUM(E4:G4)>10,SUM(E4:G4)15,50,""))
=IF(AND(SUM(E4:P4)>400,SUM(E4:P4)600,25,""))
Completely butchered the original answer. This one should work.
=IF(AND(SUM(E4:G4>10),SUM(E4:G4=15,50,"")))
=IF(AND(SUM(E4:P4>400),SUM(E4:P4=600,20,"")))