On our blog, we already have a handful of Excel IF tutorials and still discover new uses every day. Today, we are going to look at how you can use IF together with the AND function to evaluate two or more conditions at the same time. Continue reading
Comments page 5. Total comments: 490
Hello,
Can you help me make a formula, I had it before but it got lost and now struggling to remake it.
So I have a row for example A1 - B1 - C1
if A1 is filled with for example £100 I need to minus 2% into with the sum into E1
if A1 is empty but B1 is filled then I need it to minus 3% with the sum into E1
then the same for C1 if A & B are empty but C is filled.
Thanks!!
Hi!
I hope you have studied the recommendations in the tutorial above. It contains answers to your question. You can also find useful information in this article: Nested IF in Excel – formula with multiple conditions.
Try the following formula:
=IF(NOT(ISBLANK(A1)),E1*0.98, IF(AND(NOT(ISBLANK(B1)),ISBLANK(A1)),E1*0.97, IF(AND(ISBLANK(B1),ISBLANK(A1),NOT(ISBLANK(C1))),E1*0.97,"")))
Hi!
I'm still unbale to identify the error on the following formula. Excell keeps replying back "There is a problem with the formula".
any guidance will be appreciated.
=IFERROR(IF(OR(X2>=5000),"DNB",IF(OR(W2-AN2=-500),"DNB",IF(OR(((W2-AN2))/AN2)>=0.1,"DNB", IF(OR(AND(T2="1'-Customer Shortage",S2="N",AN2>=5000,"DNB")))),"N/A").
the formula works thill this statment:
=IFERROR(IF(OR(X24>=5000),"DNB",IF(OR(W24-AN24=-500),"DNB",IF(OR(((W24-AN24))/AN24)>=0.1,"DNB"))),"N/A")
however this portions, breaks it.
IF(OR(AND(T2="1'-Customer Shortage",S2="N",AN2>=5000,"DNB")))),"N/A")
Thanks!
JV
Hi!
Based on your description, it is hard to completely understand your task. However, I’ll try to guess and offer you the following formula:
=IFERROR(IF(OR(X2>=5000),"DNB",IF(OR(W2-AN2=-500),"DNB",IF(OR((W2-AN2)/AN2>=0.1),"DNB", IF(OR(AND(T2="1'-Customer Shortage",S2="N",AN2>=5000)),"DNB")))),"N/A")
OR operators are not needed in this formula.
I am hoping to get the IF(AND) FORMULA FOR 30+10=36. BUT 30 + 5=35 ALL AS THE SAME FORMULA
Hello Everyone,
It’s my first time here, so I would like to thank everyone in advance for bearing with me and helping me out.
Here’s what I’m trying to do … in as simple terms as I can explain … the problem is much complex …
EXAMPLE:
Client has to pay $30,000 (or whatever)
He has 10 months to pay (or whatever)
His monthly payment amount is consistent
How do I calculate his last payment using a formula?
Since I can’t post a spread sheet – here’s how I have it setup
--- A3 TO B14 ---
TOTAL PAYMENT
BASE PAYMENT
PAYMENT 1
PAYMENT 2
PAYMENT 3
PAYMENT 4
PAYMENT 5
PAYMENT 6
PAYMENT 7
PAYMENT 8
PAYMENT 9
PAYMENT 10
--- B3 TO B7 ---
$30,000.00
$9,000.00
=B4
=B4
=IF(SUM($B$5:B6)<$B$3,$B$4,($B$3-(SUM($B$5:B6))))
--- B7 TO B14 --- DRAG AND FILL FORUMLA ABOVE
I’m usually pretty good at performing my own research for excel problems, but I’ve really been stuck on this one for a while – I’ve tried many different formulas, possibilities … but I can’t seem to figure it out ….
In advance, please be nice … I’m no expert at excel.
Hi!
To calculate the sum of payments already paid, use this instruction: How to do a running total in Excel (Cumulative Sum formula)
Hi,
My excel query,
Not sure I'm in right excel forum but anyway...
Column 1 has 4 possible outcomes for a predicted blood group for a fetus, each one selected from a drop down box :
Pos, neg, inconclusive, rejected
Column 2 has actual blood group results when baby is born : pos,neg, unknown.
How do i find out total number of predicted pos outcomes from A which have an unknown outcome in B.
Hi,
To count the number of values that match two criteria, you can use the COUNTIFS function.
For example:
=COUNTIFS(A1:A35,"pos",B1:B35,"unknown")
That's great. Thanks. Much appreciated.
Hello sir
I want to assign zero to above 0.5 and below 0.2
I am using the formula
=IF(AND(AE2>=0.85,AE2<=0.02)"0","AE2")
please help me to write the correct one
thanks and regards
Hi!
All the necessary information is in the article above. Change the numbers in the formula and don't use quotation marks. Read the manual carefully.
I want to give more than 0.85 and less than 0.02 to the zero else same value is it right ?????
=IF(AND(AE2>=0.85,AE2<=0.02)"0","AE2"
I need help with a formula, an IF formula i think. What i want to do is have a Cost cell change every time cells above it are changed. The cells above are on a dropdown. The drop down options are listed way below in the sheet so I can link those. I got it to work if its one option, but when I add multiple it doesnt work. I dont want the result to be Pass, or fail or a word, it needs to be a formula, for example, if cell A is changed to 2500 on the dropdown, the changing cell is decreased by 4% (.96). I am not sure if this makes sense but any help would be appreciated.
Hi!
Your information is not enough to give you formula advice. Maybe this article will be helpful: Nested IF in Excel – formula with multiple conditions.
Hi, Really new to excel and trying to get this formula to work. Not sure if I'm even on the right track.
=IF(and(B10="true",A25="true",B25*52/12,"",if(and(b11="true",a25="true",B25*26/12,""))))
I've been searching this site for help, but not sure I'm even in the right area.
Thanks so much
Hi!
Without seeing your data it is difficult to give you any advice. Try this formula:
=IF(AND(B10="true",A25="true"),B25*52/12,IF(AND(B11="true",A25="true"),B25*26/12,""))
or
=IF(AND(B10=TRUE,A25=TRUE),B25*52/12,IF(AND(B11=TRUE,A25=TRUE),B25*26/12,""))
I recommend reading this guide: Nested IF in Excel – formula with multiple conditions.
Hi,
Here is my formula which actually works:
=IF($H8="","",IF($H8=TODAY(),"Due Today",IF($H8TODAY()+15,"On Track",IF($H8>TODAY(),"Anticipated Past Due","")))))
However, I need to add another condition which even if one of the above condition has been met but another cell (let us say L8) is not empty then the result should be Closed.
How can I add that in the formula?
Hi!
Add another nested IF condition:
=IF(ISBLANK(L8), [our formula] ,"Closed")
I hope it’ll be helpful.
Good morning,
I'm trying to write a formula that completes the VLOOKUP calculation and not returning TRUE value:
=IF($A$7="F30/28z Louvre",AND(C7>=1),D7-VLOOKUP(A7,Louvre_table,4)*2+20.1)
Cell A7 has a drop down list of 4 different items, as seen above one is "F30/28z Louvre", if this is selected do the calculation:
D7-VLOOKUP(A7,Louvre_table,4)*2+20.1) for the 3 other items I need to do this calculation: D7-VLOOKUP(A7,Louvre_table,4)*2+5.1)
Hopefully you will be able to help, Thank you.
Hello!
If I understand your task correctly, the following formula should work for you:
=IF($A$7="F30/28z Louvre",D7-VLOOKUP(A7,Louvre_table,4)*2+20.1, D7-VLOOKUP(A7,Louvre_table,4)*2+5.1)
I can't check the formula that contains unique references to your workbook worksheets.
Alexander,
Thank you so much, I was trying everything and getting frustrated by adding to many variables & boom you solved it, Thank you.
I am trying to write a condition that has 7 criterias. if all criteria are YES or a combination of YES or N/A then it will return "Completed" if blank or NO it will return "Not Completed"
Hello!
To count criteria, use the COUNTIF function.
=IF(COUNTIF(A1:A7,"")+COUNTIF(A1:A7,"No")=7,"Not Completed", IF(COUNTIF(A1:A7,"N/A")+COUNTIF(A1:A7,"Yes")=7, "Completed",""))
This should solve your task.
Hello- what formula would I need to write if I want to find all the workers that have the same primary and secondary skills? If I need all workers for example that have network skills, I would see that James, Bill, Bob and David have network skills. I have a list of about 200 employees. Can you assist?
Employee Primary Skill Secondary Skill
James Network
Bill Firewall Network
Bob Automation Network
David Network Firewall
Robert Data UC
Hello!
To get a list of values by multiple criteria, use the FILTER function. The following tutorial should help: Excel FILTER function - dynamic filtering with formulas.
The formula might look like this:
=FILTER(A2:A6,(B2:B6="Network")+(C2:C6="Network"))
Thank you for the quick response! This works- you are amazing!
I need help with the below: I am looking for a formula that will compare phone numbers. There are 2 phone numbers that are internal numbers which will require no speed dialing because they are internal numbers but all other numbers will require the user to dial a 9 and the number.
If the numbers are not, then a 9 is needed in front of the number to dial out. Can anyone help me with this formula?
717332xxxx
717840xxxx
Hi!
Sorry, I do not fully understand the task. Maybe this article will be useful: How to compare two cells in Excel. If this is not what you wanted, please describe the problem in more detail.
I am looking for a formula (likely an if and then statement) that will state if phone numbers with these first 6 numbers of: 717332xxxx and 717840xxxx are found, we will do nothing but if they are not found in my list of phone number entries, we need to add a number 9 in front of the other numbers for speed dialing.
So if 717424xxxx is not part of the 717332xxxx and 717840xxxx, I need to add a 9 in front of 717424xxxx.
This is close below but there may be something I am doing incorrectly because I need it to add a 9 in front of the formula for all other numbers.
=IF(COUNT(SEARCH({"717332","717840"},A1)),"No Speed Dial",IF(ISNUMBER(SEARCH("other",A1)),"Speed Dial"))
Hello!
Use the ISNUMBER function to determine when the SEARCH function finds a text string.
Please try the following formula:
=IF(SUM(--ISNUMBER(SEARCH({"717332","717840"},A1)))>0,"No Speed Dial","Speed Dial")
Hope this is what you need.
Hello - I am trying to code some events as occurring on workdays (daytime events Monday-Friday, evening events Monday-Thursday) and some events as occurring on weekends (evening events on Fridays, daytime and evening events on Saturdays and Sundays). My dataset has one column with a date in mm/dd/yyyy (column J) and one column with a "time type" - either Day or Evening (column O) that's coded with the timevalue formula.
I'm able to get a formula that mostly works, but it doesn't capture the fact that Mon-Thurs evenings are workdays.
For row 279, for example: =IF(AND(WEEKDAY(J279,2)<=5,O279="Day"),"Workday","Weekend")
*this returns "Weekend" for every single evening event
I did try an amended formula but it returns inverse results (workday when I want weekend and weekend when I want workday).
=IF(AND(WEEKDAY(J280,3)<=4,O280="Day",(OR(WEEKDAY(J280,3)<=3,O280="Evening"))),"Weekend","Workday")
I'm trying to play around with this and would love any advice. Thank you.
Hi!
Here is an example formula for your problem. Read carefully the last paragraph of the article above.
=IF(OR(AND(WEEKDAY(A1,3)<=4,F1="Day"), AND(WEEKDAY(A1,3)<=3,F1="Evening")), "Workday","Weekend")
Hi What i want is:
I have two tables
First Table contains Address of several person from different countries
Another Table is having different country names like below
Table A
Column A Column B
Alexender, Turkey
Alexander, China
Alexander, South Africa
Alexander, South America
Alexander, North America
Table B
Column A
China
South Africa
Turkey
North America
South America
Now our formulae should value of column Table B from Table A Column A and the matching country name should be reflected in the Column B of Table A like below results in Column B of Table A
Turkey
China
South Africa
South America
North America
Is it possible ?
Hi! I’m not sure I got you right since the description you provided is not entirely clear. If you want to get the name of the country from the text, use the MID function to extract the text after the decimal point.
=MID(A2,SEARCH(",",A2)+2,30)
You can also use the new TEXTAFTER function
=TEXTAFTER(A2,", ")
Thank you so much - all set now, and have a new formula structure to use going forward!
Hi there,
I am trying to write a nested IF(AND) formula as follows but its not working for me:
=IF(AND(C23<D23,C23<E23,C23,(IF(AND(D23<C23,D23<E23,D23,(IF(AND(E23<C23,E23<D23,E23)))))))
What am I doing wrong here please?
Thankyou, Rosie
Hi!
Please use the formula below:
=IF(AND(C23<D23,C23<E23),C23,(IF(AND(D23<C23,D23<E23),D23,(IF(AND(E23<C23,E23<D23),E23)))))
Conditions in an AND statement must be enclosed in parentheses.
Nevermind - I worked it out:
=IF(AND(C27>=D27,C27>=E27),C27,(IF(AND(D27>=C27,D27>=E27),D27,(IF(AND(E27>=C27,E27>=D27),E27,1)))))
Hi
I've created the following formula below
=IF(AND(R6=2,W6=99,X6="R"),4,IF(AND(R6=1,W6=99,X6="R"),2,IF(AND(R6=3,W6=99,X6="R"),9,)))
I would like to add to the formula so that if R6=1,W6 is any number except "99" and X6="P" then it should return a 1, I was trying to use "99" to include every number except 99 but the formula doesn't appear to work.
Any help would be appreciated.
Many thanks
Joel
Hi!
Adds another condition to the nested IF statements.
The formula below will do the trick for you:
=IF(AND(R6=2,W6=99,X6="R"),4, IF(AND(R6=1,W6=99,X6="R"),2, IF(AND(R6=3,W6=99,X6="R"),9, IF(AND(R6=1,ISNUMBER(W6),W6<>99,X6="R"),1,))))
Thank you so much Alexander, you're a star!
I want to test if a cell (text) in columns B:I aligns with the cell (text) in column A.
Rules:
If 1 cell text in B:I aligns with cell text in A, and all other cells in B:I are blank = TRUE
If >1 cell text in B:I aligns with cell text in A, and all other cells in B:I are blank = TRUE
If any cell text in B:I does not align with cell text in A = FALSE
Thank you!
Hello!
If I understand your task correctly, the following formula should work for you:
=((SUM((A1<>B1:I1)+(B1:I1<>"")-1)=0)*SUM(--(A1=B1:I1))>0)
You can read an explanation of this formula in this article: AND and OR operators in array formulas.
Yes - that is exactly what I was after. Thanks so much for your help, Alexander!
Hello
I am trying to create a formula so that the following information auto populates
IF D3=1 day, then "Monthly", IF D3=180days, then "Bi-Weekly", IF D3=270days, then "Weekly". Below is the formula I used but whenever I try to input it, it says that I've put too many arguments in one function. Could you please help?
IF(AND(D3=1),"Monthly","",IF(AND(D3=180),"Bi-Weekly","",IF(AND(D3=270),"Weekly","")))
When I use the formula without the quote marks
=IF(AND(D3=1),Monthly,IF(AND(D3=180),Bi-Weekly,IF(AND(D3=270),Weekly)))
Then it says FALSE.
Hello!
I recommend reading this guide: Nested IF in Excel – formula with multiple conditions.
Please try the following formula:
=IF(D3=1,"Monthly",IF(D3=180,"Bi-Weekly",IF(D3=270,"Weekly","")))
Hi sir, I would like to compare data between the number percentage
I'm using this
=IF(AND(0%<=W143<=10.99%),"Class 1",IF(AND(11%<=W143<=20.99%),"Class 2",IF(AND(21%<=W143=30.1%,),"Class 4",""))))
So example if my data is 31%, it should be showing me Class 4 instead of blank
And When i drag to other cell, it all show blank too
Exp: 19.9% showing blank too instead of Class 2
Hope you can help me!
Thanks!
Hello!
See the first paragraph of this article carefully for how to use IF AND correctly. I recommend reading this guide: Logical functions in Excel: AND, OR, XOR and NOT.
Instead AND(0%<=W143<=10.99%) use AND(W143 >= 0%, W143 <= 10.99%)
This should solve your task.
Hi, Please can you help me, I am trying to add this formula, can you help.
=IF(I7>30,265, IF(I7>100,530,IF(I7>200,795, IF(I7>300,1060,IF(>400,1325,)))))
regards
Hello!
The last nested IF function is missing a cell reference. Perhaps this formula is
=IF(I7 > 30,265, IF(I7 > 100,530,IF(I7 > 200,795, IF(I7 > 300,1060, IF(I7 > 400,1325,)))))
IF(AND(LEN(D48)0,LEN(C48)0,D48=C48),"ON TIME",IF(AND(LEN(D48)0,LEN(C47)0,D48>C48),"DELAY",IF(AND(LEN(D48)0,LEN(C47)0,D48<C48),"BEFORE TIME"))), This formula is depend on actual end date
This formula I used to get status of one process, but now I want to use for overall project if the first process is delay then overall project status will be delay if one process completed and second process is before time then project status will be before time, like that there are 5 process in each project so how can I do it
Hi!
Unfortunately, your formula is not clear to me. Explain in more detail. Give an example of the source data and the desired result. Perhaps this article will be useful for multiple conditions: Excel Nested IF statements - examples, best practices and alternatives.
I've been trying to use the IF+AND Function to know if my Focus Data is equal to the Accepted data, Y/N. However, after manually checking, it always comes up with a No despite it being a Yes instead.
My formula is =IF(AND(K2=B2:B186,L2=D2:D186),"Yes","No")
My Focus data are found in Columns K and L. The Accepted Data is found in Columns B and D.
Note:
-I already converted the data to all of these cells to values but it is the same.
-There are duplicate values in the columns except the data found in Column L. Data in Column L are unique.
Hi!
The condition K2=B2:B186 returns an array of 185 TRUE/FALSE values. The IF function does not work with arrays. To determine at least one match of K2 with a list of values, you can use SUM(--(K2=B2:B186))
If they don’t work for you, then please describe your task in detail.
Hello,
I'm trying to return a % based on a range. So for instance. If a discount is between 20%-29%, I want it to return a 3% value. If the discount is between 30% - 39%, I want it to return a 4% value and so on. How do I write this statement? What am I doing wrong?
=IF(AND(J3>20%,J330%,J340%,J3<100%),"5%","")
Hi!
Use nested IF function with AND. You can find the examples and detailed instructions here: Nested IF statement with multiple AND/OR conditions.
=IF(AND(J3>20%,J3<30%),3%,IF(AND(J3>30%,J3<39%),4%,""))
I hope my advice will help you solve your task.
I am stuck on expanding this IF statement. The below IF - AND - OR works fine, but..
=IF(AND(OR(A9="Kevin",A9="Nick"),F9>=(--"10:00 AM")),"good","Bad")
I want to expand the about to add another name to the OR check and a different time
for example, I would like A9="Joe" with the F9 check to 8:00 am
I have tried every combination with multiple IF statements but can't seem to expand this check. At some point, I would like to grow this by 8-10 names and 4-5 times.
Any help would be appreciated
Hello!
You can find the examples and detailed instructions here: Excel IF statement with multiple AND/OR conditions, nested IF.
=IF(AND(OR(A9="Kevin",A9="Nick"),F9 > = TIME(10,0,0)),"good",IF(AND(A9="Joe",F9 > = TIME(8,0,0)),"good","Bad"))
Instead of nested IF you can use the new Excel IFS function.
=IFNA(IFS(AND(OR(A9="Kevin",A9="Nick"),F9>=TIME(10,0,0)),"good",AND(A9="Joe",F9>=TIME(8,0,0)),"good"),"Bad")
I hope my advice will help you solve your task.
Hi, i have a a scenario for programe "Annaul procedure review", with frequencey 1year and 3 years and five years. Plz suggest me formula for that scenario.
Dear Sir,
I have a excel file which created by my superior, I tried to understand how the formula works but in a mist of the logic, please see below the formula:
=IF(AND(ES$2>=$M14519,ES$2<=$N14519),IF(MONTH(ES$2)=MONTH($M14519),$K14519/$Q14519*(ES$1),$K14519/$Q14519*ES$1),0)
Remark:
ES$2 = 31 Mar 2021; M14519 = 28 Mar 2021; N14519 = 27 Mar 2022; K14519 = 41600; Q14519 = 365
ES$1 = 31
Basically this formula created to work out the fee amount by month accordingly to the lump sum amount and the contract start/end period.
I am in a mist of the setup of this part "IF(MONTH(ES$2)=MONTH($M14519)" & what is the relationship of the $K14519/$Q14519*(ES$1),$K14519/$Q14519*ES$1) with the first half of the formula? Why K14519/Q14519*(ES$1) appeared twice in the formula?
Regards
Hello!
It doesn't make any sense that TRUE and FALSE are the same in an IF function. Expression
IF(MONTH(ES$2)=MONTH($M14519),$K14519/$Q14519*(ES$1),$K14519/$Q14519*ES$1)
can be replaced with
$K14519/$Q14519*ES$1
Hello! Can you please assist me on the below?
I have 4 Cells (B4:E4) consisting of dependent drop-down lists where a final solution is to appear in Cell B5. Until the final solution appears, it always indicates "PENDING".
Unfortunately, I have run into a couple of situations where I have received the 8,192 character limit error.
If I have various scenarios that look similar to the below, how could this be written differently to help with my character limit issue? I have attempted practicing with other formulas just on this small set of lines (ex. IF(AND(OR, IF(OR(AND, IFS..), however I cannot make them work but truly I have no experience using those 3 formulas. Forgive me, but you are working with someone who is still learning but definitely tries!
TO SUM UP THE LINES BELOW....
CELL B4 - DIFFERENT IN ALL OF THESE LINES
CELLS C4, D4, E4 - DROP-DOWN'S ALL MATCH IN EACH OF THESE LINES
CELL B5 (THE SOLUTION, OR WHAT IS 'TRUE') - IS THE SAME IN EACH LINE, EXCEPT THE LAST LINE (DUE TO DROP-DOWN B4)
THESE ARE ALL DROP-DOWN POSSIBILITIES WHERE BOTH D4="CLEARLY WRITTEN, COMPLETE" & E4="NO" EXIST TOGETHER. WHAT IS 'TRUE' IN CELL B5 IS THE SAME, EXCEPT WHEN DROP-DOWN B4="DB" IS SELECTED. OTHERWISE, I'D SIMPLY WRITE THIS AS:
=IF(AND(D4="CLEARLY WRITTEN, COMPLETE",E4="NO"),"UPDATE THE SYSTEM TO MATCH THE FORM. DO NOT SEND LETTER.","PENDING")
=IF(AND(B4="EA",C4="YES",D4="CLEARLY WRITTEN, COMPLETE",E4="NO"),"UPDATE THE SYSTEM TO MATCH THE FORM. DO NOT SEND LETTER.",
IF(AND(B4="HP",C4="YES",D4="CLEARLY WRITTEN, COMPLETE",E4="NO"),"UPDATE THE SYSTEM TO MATCH THE FORM. DO NOT SEND LETTER.",
IF(AND(B4="CP",C4="YES",D4="CLEARLY WRITTEN, COMPLETE",E4="NO"),"UPDATE THE SYSTEM TO MATCH THE FORM. DO NOT SEND LETTER.",
IF(AND(B4="WP",C4="YES",D4="CLEARLY WRITTEN, COMPLETE",E4="NO"),"UPDATE THE SYSTEM TO MATCH THE FORM. DO NOT SEND LETTER.",
IF(AND(B4="FN",C4="YES",D4="CLEARLY WRITTEN, COMPLETE",E4="NO"),"UPDATE THE SYSTEM TO MATCH THE FORM. DO NOT SEND LETTER.",
IF(AND(B4="ML",C4="YES",D4="CLEARLY WRITTEN, COMPLETE",E4="NO"),"UPDATE THE SYSTEM TO MATCH THE FORM. DO NOT SEND LETTER.",
IF(AND(B4="SS",C4="YES",D4="CLEARLY WRITTEN, COMPLETE",E4="NO"),"UPDATE THE SYSTEM TO MATCH THE FORM. DO NOT SEND LETTER.",
IF(AND(B4="DB",C4="YES",D4="CLEARLY WRITTEN, COMPLETE",E4="NO"),"UPDATE THE SYSTEM TO MATCH THE FORM. SEND MS1 LETTER.","PENDING"))))))))
Again, these are only a set of lines. If you need more, please just let me know. Here is a list of all drop-down's if preferred.
CELL B4 (CONSISTS OF INFO A FORM IS RECEIVED WITH) =
EA
HP
CP
WP
FN
MI
DB
GE
SS
CELL C4 (ASKING IF THE INFO IS ALREADY IN THE SYSTEM)=
YES
NO
CELL D4 (THE INFO ON THE FORM IS or CONSISTS OF... dependent drop-downs based on what is selected in cell B4) =
ID PROVIDED
CLEARLY WRITTEN, COMPLETE
WRITTEN, BUT ILLEGIBLE OR INCOMPLETE
REASON PROVIDED INDICATING WHY THEY DID NOT INCLUDE
INVALID IN THE SYSTEM
NOT PROVIDED
BOTH MARKED
E4 (available if C4 drop-down is "YES", asking if the info provided matches what the system currently shows) =
YES
NO
Hi!
I didn't quite understand where the error occurred with a large number of characters. But you can reduce the number of characters in the formula if you write a long text in separate cells and make references to these cells in the formula.
For example, instead of
=IF(AND(D4=”CLEARLY WRITTEN, COMPLETE”,E4=”NO”),”UPDATE THE SYSTEM TO MATCH THE FORM. DO NOT SEND LETTER.”,”PENDING”)
=IF(AND(D4=”CLEARLY WRITTEN, COMPLETE”,E4=”NO”),M1,”PENDING”)
I hope this will help.
Note: Line 6 of formula should have indicated B4="MI" (not B4="ML").... sorry about that :/
Me again! DISREGARD! I went back through everything and re-tried the very last example above
** IF AND OR ..... =IF(AND(OR(B2=$G$1,B2= $G$2), C2>$G$3), "x", "") ** ....
It worked on my side as:
=IF(AND(OR(B4="EA",B4="HP",B4="CP",B4="WP",B4="FN",B4="MI",B4="SS"),C4="YES",D4="CLEARLY WRITTEN, COMPLETE",E4="NO"),"UPDATE THE SYSTEM TO MATCH THE FORM. DO NOT SEND LETTER.",
IF(AND(B4="DB",C4="YES",D4="CLEARLY WRITTEN, COMPLETE",E4="NO"),"UPDATE THE SYSTEM TO MATCH THE FORM. SEND MS1 LETTER.","PENDING"))
I am not sure what I did incorrectly when trying it earlier on my side, but thrilled right now! Thank you!
I have formulas that I need to combine together.
D2 = tool size
We have small, med/lg, and critical. So if the mold is above 351 (med/lg) it pulls information from another sheet and put in corresponding row. If under 350 (small), then it put in that row. We have added the "critical" criteria, so I need the formula to look at tool size and look to see if the tool size listed has a "C" after it. If the tool size has a "C" after it, then it needs to go to the critical row, otherwise it needs to go to small or med/l
=IF(D$2>351,'Project Readiness'!I40,0)
=IF(ISNUMBER(FIND("C",D$2)),'Project Readiness'!I40,"0")
TOOl # 2
TOOL SIZE 1300C
small 0
med/l 22
critical 22
=IF(AND(ISNUMBER(FIND("C",D$2)),D$2>351),'Project Readiness'!I40,"0")
This didn't work because it still pulled in based on size to the med/l and the critical based on the "C"
Hi!
Your task is not completely clear to me. Explain what it means "go to the critical row" and "go to small or med/l".
Hello there,
Thank you for such insightful site!
I tried following your web but I still don't really get the logic, and when i tried my formula below, some of the case it's good, but some of the case it said FALSE. I think there's something missing in my formula.
Input: Row E is every 25th of the month, no matter what day it is
Wanted Output : I want to create an automatic calendar for every 25th of the month for payroll system.
The condition is, if 25th of the month is a public holiday or weekends (Saturday, Sunday), it should be moved to H-1 (24th) or the nearest working day.
What I get right now:
=IF(COUNTIF($H$22:$H$25,E13)>0,IF(WEEKDAY(EDATE(E13,0),12)>5,EDATE(E13,0)-(WEEKDAY(EDATE(E13,0),12)-4),IF(WEEKDAY(EDATE(E13,0),12)5,EDATE(E13,0)-(WEEKDAY(EDATE(E13,0),2)-5),EDATE(E13,0)))))
This is the description of the formula
=IF(COUNTIF($H$22:$H$25,E13)>0, [to see If 25th is a public holiday]
IF(WEEKDAY(EDATE(E13,0),12)>5, EDATE(E13,0)-(WEEKDAY(EDATE(E13,0),12)-4),
[if the public holiday falls on Sunday or Monday- 6 or 7, then this is to move the date to nearest weekday - Friday]
IF(WEEKDAY(EDATE(E13,0),12)5,EDATE(E13,0)-(WEEKDAY(EDATE(E13,0),2)-5),[if no, 25th of the month is not a public holiday but it is on weekend Saturday, Sunday, then this is to move the date to nearest weekday - Friday
EDATE(E13,0))))) [if the 25th is a workday]
I hope you understand what I'm trying to say since it is a bit complicated and English is not my first language.
I would very highly appreciate it if you can help me with this!
Many thanks, Dahlia
Hello!
If I understand your task correctly, the following formula should work for you:
=IF(WEEKDAY(E13,2) > 5,IF(COUNTIF($H$22:$H$25,E13-WEEKDAY(E13,2)+5) > 0,E13-WEEKDAY(E13,2)+4,E13))
I hope it’ll be helpful.
Hi, thank you for replying!
I tried the formula but sometimes the result is FALSE
For example, i put the E13 date is Monday, 2nd May 2022 which is a holiday, so it should be Friday, 29 April 2022 but the result written FALSE.
Also, I have a case if the holiday happened at Monday, 2 May 2022 and Friday, 29 April 2022, can you help me to revise the formula?
Thank yiu so much for your help!
Hi!
I don't know which days of the week are your holidays. Therefore, if necessary, change the argument of the WEEKDAY function as you need. In this formula, the first day of the week is Monday. Holidays are 6 and 7 days.
=IF(WEEKDAY(E13,2) > 5,IF(COUNTIF($H$22:$H$25,E13-WEEKDAY(E13,2)+5) > 0,E13-WEEKDAY(E13,2)+4,E13-WEEKDAY(E13,2)+5),IF(COUNTIF($H$22:$H$25,E13) > 0,IF(WEEKDAY(E13,2)=1,E13-3,E13),E13))
Hey! Thank you very much again for replying!
This formula works well, but I'm getting new issue now.
So, if i want to apply the formula to holiday that falls on Tuesday or other weekdays (except monday) then how i should add the formula but different weekday function?
Hi!
You can set which day of the week is a weekend using the second argument of the WEEKDAY function.
Hi, a little update on the formula so I tried to move here and there, now it kinda work for 3 holidays in a row on the weekdays, but now it can not filter the weekends anymore
here is the formula:
=IF(COUNTIF($A$2:$A$18,I26)>0,
IF(WEEKDAY(I26,12)>=5,I26-(WEEKDAY(I26,12)-4),
IF(COUNTIF($A$2:$A$18,I26-1)>0,
IF(WEEKDAY(I26-1,12)>=5,I26-1-(WEEKDAY(I26-1,12)-4),
IF(COUNTIF($A$2:$A$18,I26-2)>0,
IF(WEEKDAY(I26-2,12)>=5,I26-2-(WEEKDAY(I26-2,12)-4),(I26-3)),(I26-2))),(I26-1))),I26)
I want to fix it but I think it makes the formula even harder, again can you please help me the formula?
Really really appreciate your help!
Hi!
Try to use WORKDAY.INTL function:
=WORKDAY.INTL(E13+1,-1,1,H22:H25)
This will help you find the nearest working day, taking into account holidays and weekends.
Hope this is what you need.
Hello, I have multiple conditions for calculating faculty workload and can't seem to get my formula right. The original formula was:
=IF((AD80-40)/2>0,(AD80-40)/2,"--")
However I need to check some conditions before performing the operation above.
-If the total workload credits are >= 24
-And the total contact hours are >= 48
-Then run =IF((AD80-40)/2>0,(AD80-40)/2,"--")
Is this possible?
Hi!
The answer to your question can be found in this article: Excel IF statement with multiple AND/OR conditions, nested IF formulas.
For example,
=IF(AND(A1 > = 24,B1 > = 48),IF((AD80-40)/2>0,(AD80-40)/2,"–"),"-")
I would like to use the If(And) formula shown in this page but looking at distinct numbers in a large excel like user id's, for example. How could I use this formula to search many rows of data for a specific column?
I was thinking vlookup with the IF(And) within it but I was unable to get the syntax correct.
Hi!
Sorry, it's not quite clear what you are trying to achieve.
There are a lot of formulas on this page. Please describe your problem in more detail.
Hi there,
Thank you for such a valuable site!
Question: I have a check out system for items where I need the item to show status in column C:
-Blank if there is no date entered as due
-"Not due" if there is a date that does not exceed today's date
-"Overdue" if there is a date past today's date
-"Returned" if there is a date entered into the Returned cell.
Column C is Status, D is Item, E is Name, F is Notes, G is Due Back Date, H is Returned Date
The formula I have so far that works to address the first 3 criteria using line 8 as my example:
=IF(ISBLANK(G8),"",IF(G8<TODAY(),"Overdue","Not due"))
but I cannot figure out how to get the final criteria to supersede the other criteria if a return date is present in H8 with a result of "Returned".
If you can help with this I would appreciate it very much!
Many thanks - Georgina
Good day from South Africa. I am struggling with a formula containing AND and OR.
Question:
All books with cost prices between $50 and $80 (both prices included) on Accounting (Acc) and Tax supplied by the publisher Butterworths. Cost price is in column F, Type of book is in Column D and the publisher is in column E.
My formula:
=and(F4>=50,F4<=80),OR(D4="Tax",D4="Acc"),AND(E4="Butterworths")
Why is my formula not working?
Thank you
Hi!
I'm assuming you want to find the sum with conditions. I recommend this tutorial with examples: How to use Excel SUMIFS and SUMIF with multiple criteria.
Hope this is what you need.
On the same topic I also have the following question where my formula is not working:
Extract a list of all Afrikaans, English and Japanese (Column I) books and DVD's (Column G) that were issued since 2000 (Column D), the year 2000 excluded.
My formula:
=OR(I2="English",I2="Afrikaans,I2="Japanese),OR(G2="Book",G2="DVD"),AND(D2>2000)
Please help me - I would be very grateful. I find putting the formula in three different line using the ALT + ENTER option, splits them so that I can understand them, but as soon as I need to string them together, I somehow fail.
Thank you and kind regards
Hi!
To get a list of values by conditions, use the FILTER function. I recommend reading this guide: Excel FILTER function - dynamic filtering with formulas
Hello!
If I understand your task correctly, the following formula should work for you:
=IF(ISNUMBER(H8),"Returned",IF(ISBLANK(G8),"", IF(G8 < TODAY(),"Overdue","Not due")))
Please have a look at this article: Nested IF in Excel – formula with multiple conditions.
As fate would have it - I actually saw the formula working and now it is no longer working....
Here is what I have on line 8:
=(ISNUMBER(H8),"Returned",IF(ISBLANK(G8),"", IF(G8<TODAY(),"Overdue","Not due")))
Initially this exact formula showed a value of "Returned", when a return date was entered into H8. After going back to it and entered more data it only showed "Overdue" as the value even though a date (correct format) was entered into the Returned Date field, now I am receiving nothing but a "There's a problem with this formula" prompt. Please help again...
Hello!
You didn't exactly copy the formula.
=IF(ISNUMBER(H8),"Returned",IF(ISBLANK(G8),"",IF(G8 < TODAY(),"Overdue","Not due")))
Well that's embarrassing - my apologies for wasting your time in responding as I have been using the full formula and it is not working
This is a direct paste from the first line (row 2):
=IF(ISNUMBER(H2),"Returned",IF(ISBLANK(G2),"",IF(G2 < TODAY(),"Overdue","Not due")))
Am I missing something else?
Continued gratitude for your help,
Georgina
Hi!
I'm not sure I understand your conditions, but try this formula -
=IF(ISBLANK(G8),"",IF(ISNUMBER(H8),"Returned",IF(G8 > TODAY(),"Overdue","Not due")))
You have been extremely helpful - cannot thank you enough!
With 2 minor tweaks of your formula corrections it is now working. Here's what ended up working:
=IF(ISBLANK(G2),"",IF(ISTEXT(H2),"Returned",IF(G2 > TODAY(),"Not due","Overdue")))
The "ISNUMBER" would not accept a date as the data so I changed it to "ISTEXT" and switched Overdue and Not due and all working now.
If it wasn't for your kindness in giving alternate solutions I would still be experiencing such frustration.
Alexander - Thank you thank you thank you!!
Hi!
ISNUMBER doesn't work because your date is written as text. This is not normal, but I cannot know about it. For a normal date, ISNUMBER works, since a date is a number.
Totally worked thank you SO much!! I really appreciate the help!
can help me to work my formula. I need generate PASS Or fail with sample size and major and minor damage.
=IF(J3=0,"PASS","FAIL"),IF(I3="13",IF(K3<2,"PASS",IF(L3<3,"PASS","FAIL")),IF(I3="20",IF(K3<3,"PASS",IF(L3<4,"PASS","FAIL")),IF(I3="32",IF(K3<4,"PASS",IF(L3<6,"PASS","FAIL")),IF(I3="50",IF(K3<6,"PASS",IF(L3<8,"PASS","FAIL")),IF(I3="80",IF(K3<8,"PASS",IF(L3<11,"PASS","FAIL")),IF(I3="125",IF(K3<11,"PASS",IF(L3<15,"PASS","FAIL")),IF(I3="200",IF(K3<15,"PASS",IF(L3<22,"PASS","FAIL")),IF(I3="300",IF(K3<17,"PASS",IF(L3<24,"PASS","FAIL"))))))))))
Hello
I have a list of students from countries all over the world and I would like to complete a column which says which continent they are from.
For example if a students comes from Spain , I want Europe to be written in the continent column and find a formula that can do that.
I don't know if it's possible though.
I would like to have all the continents ( Europe, Amercia , Asia ...) and every country on our list to be enclosed in one specific continent. We have almost all countries in the world, it's a lot of names.
Something like if (student column A) ( column B spain , France, italy , germany (and so on) , " Europe" " America" "Asia".. )
I went through all the examples mentionned and I tried many times different formulas but I can get my head around it. Help would be highly appreciated
Many thanks
Cyil
Hello!
You can automatically insert a value from a list into a cell based on the value in another cell using the VLOOKUP function. See this article for instructions and examples: How to use Excel VLOOKUP function: tutorial with formula examples.
I hope my advice will help you solve your task.
Many thanks for your quick reply !!
I had a look at this function but it's not what I am looking for because from the list of students coming from all over the world I won't be able to differenciate the countries and have a specific country aattributed to matching continents
I had another idead, I have listed European countries under the number 1 , Asian countries under th number 2 and so on ..
I am now looking to have a function to say in colum A (the countries from the students list I want to identify as continents) in the column the following (B1:B5) is Europe , (B16:B50) is Asia ...) so if B16 then it's Asia , if it's B4 then it's Europe
Sorry I hope I made myself clear
Hello!
Unfortunately, I can't understand why the VLOOKUP function is not suitable for you and what you want to do.
Hi, I need an help in the IF formula in number and text combined. I will post the test can resolve this for or suggest the what can I do for this.
A B
CODE CATEGORY
1600 A Team
1601 A Team
1602 A Team
1603 A Team
1604 B Team
1605 B Team
1606 B Team
If I enter the any code number in A2 cell and the B2 auto pick the correct team. this is what i want can you please give me the solution for this.
I have 100 combination like this and to complete the task my self only.
Hello!
If I understand the problem correctly, you can find the command that matches the code using the VLOOKUP function. You can find examples and detailed instructions in this article.
I hope it’ll be helpful.
Thank you for the help Mr. Alex
Hi! I have built a formula that calculates when we need to send out an order (20 days after receiving previous order), based on how many months were ordered. I built in an IF function that hides numbers if there isn't any data in the formula. Now I want to add into the formula that stops calculating a ship date if there are no more paid orders. I have another column that has how many months were purchased. How do I integrate an AND function into this that would only calculate if months>2? I cannot get the formula to compute.
=IF([@[First order Delivered/Received]]="","",[@[First order Delivered/Received]]+20)
Hi!
If I understand your task correctly, the following formula should work for you:
=IF(AND([@[First order Delivered/Received]]=””,[@[months_purchased]]>2) ,””,[@[First order Delivered/Received]]+20)
Hi!
Thanks so much for the response. For some reason, it isn't. It is still calculating, even when the number of months is 2. The formula makes sense to me as well.
Hey, i am looking for formula that can calculate at different amounts. For example. I have 40 apples, but the first 10 apples are at $2, the other 11 to 30 apples @ $2.50 and any apples over 40 @ $3.00. Then get the summation of all this in one cell.
can someone help.
thanks
Hey, here is the article that may be helpful to you: Multiple IF statements in Excel (nested IF's).
Hi I am trying to work out a formula to update on cell based on the conditions of 2 cells.
If Cell 1 = 2 and Cell 2 = Yes then cell 3 should = No. Hope that is a clear expalanation
Hi!
The first paragraph of this article has the answer to your question.
Previously posted incorrectly.
I am trying to get formula to return either 19/20 20/21 or 21/22 depending on when the date falls.
However the formula does not seem to be working.
'=IF(AND(x>=01.04.2019,x=01.04.2020,x=01.04.2021,x<=31.03.2022),'21/22',"-"
Hi!
Please check out this article to learn how the IF function works with dates.
I cannot understand why my formula is not working.
=IF(AND("x">="01.04.2019","x"="01.04.2020","x"="01.04.2021","x"<="31.03.2022"),"21/22","--"
Hello!
You need a parenthesis at the end of your formula. Then it will work properly if it matches your data.
=IF(AND("x">="01.04.2019","x"="01.04.2020","x"="01.04.2021","x"<="31.03.2022"),"21/22","--")
I am working to get a formula that calculates if (D6 says "Yes" and C6 says "Pay Run" ,B6*26) or if (D6 Says "Yes" and C6 says "Month", B6*12) or if (D6 says "Yes" and C6 says "Year", B6*1) or if D6 says "No" return 0.00.
I have tried =IF(AND(D6="Yes",C6="Pay run"),B6*26,IF(OR(D6="Yes",C6="Month"),B6*12,IF(OR(D6="Yes",C6="Year"),B6*1,"0"))) and this works for D6 saying "Yes" and C6 saying "Pay Run" and D6 saying "Yes" and C6 saying "Month" but doesn't work for D6 saying "Yes" and C6 saying "Year" or if D6 says "No"
Can you help?
Hi!
Replace OR with AND in the formula
=IF(AND(D6=”Yes”,C6=”Pay run”),B6*26,IF(AND(D6=”Yes”,C6=”Month”),B6*12,IF(AND(D6=”Yes”,C6=”Year”),B6*1,”0″)))
Thank you for your quick reply! This works perfectly - thank you!
I'm trying to return a date in another worksheet if S3 is showing an N/A. I'm using this formula that is working but I need to go a step further. I'm looking to show blank/nothing in the cell if S3 doesn't equal N/A, what do i need to add to make that happen?
=IFNA(S3,VLOOKUP(@N:N,Completed_Ocean[[Equipment '#]:[Date and Time '@ Consolidator]],26,FALSE))
Thanks!
Hello!
Use an IF formula with condition an ISNA function
=IF(ISNA(S3),VLOOKUP(@N:N,Completed_Ocean[[Equipment ‘#]:[Date and Time ‘@ Consolidator]],26,FALSE),"")
Hope this is what you need.
This worked, thanks for the help and all the insight the site provides!!
Hi
i need help doing something very simple - i need a certain cell to say 0 if the cell previous says CLOSED.
What formula do i use?
thanks,
Hi,
Try this formula:
=IF(A1="CLOSED",0,"")
You can learn more about IF function in Excel in this tutorial.
I am trying to do a compensation file based on full-time and part-time FTE to come back with -$500 if they do not meet a certain number of meetings. I can't get the below formula to work, but the work separately but I need to combine them. Any/all help with this matter is greatly appreciatied
=IF((AND($F:$F>=0.51,$R:$R<3)),-500,0),OR(IF((AND($F:$F<=0.5,$R:$R<1.5)),-500,)
Fulltime fte 3 or more meetings or -500
parttime fte l.5 or more meetins or -500
Hi!
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((AND($F:$F>=0.51,$R:$R<3)),-500,IF((AND($F:$F<=0.5,$R:$R<1.5)),-500,0))
I am Trying to =if(and(E11="Gram",G11>=1.08,G11=3.7,G11<=4),"Pass","Fail"))) then I will add more depending on packaging requirements. How do I Create a single "If/and formula" all based on what Product is entered into Column E to show a pass fail in column I based on the weights entered into column G?
Hello! I am trying to set up a code with two conditions and three options within each condition. The value I would like to generate in E depends on BOTH columns C and D.
I would like to do the following if the value in D is =30,"3",
IF(C1>=25,"2",
IF(C1>=20,"1","0"))) /=70:
=IF(C1>=30,"3",
IF(C1>=25,"2",
IF(C1>=22,"1","0"))) /=20 and D/=22 and D>/=70.
I understand how to do these arguments separately (as written above), but I would like to combine the arguments into a single code, where, depending on the value in D, different conditions for C are applied. Not sure how to apply 'AND' arguments in this scenario. Thank you for your help!
Hello!
According to your formula, I cannot understand all the conditions. What is D is = 30, ”3 ″ or D / = 22 and D> / = 70?
At the same time, the article above has all the necessary information to write the formula
Hi, Thank you for the great content. I have a question related to the the following formula I have created:
=OR(AND($BB63>=P$7,$BB63
Hi!
I am not sure I fully understand what you mean. Part of the formula is missing.
Please describe your problem in more detail. Write an example of the source data and the result you want to get.
Hello Sir,
How do you formulate a scenario like this "if studentA is taking a maths subject this semester as per this class registration list, then they should pay $1000.
I have list of students pursuing different subjects this semester, but each subject is charged a different rate.
Thank you!
Hello!
You didn't say what your registration lists look like. You can use the VLOOKUP or INDEX + MATCH function to search the list. You can find the examples and detailed instructions here: Advanced VLOOKUP in Excel with formula examples.
I hope this will help, otherwise please do not hesitate to contact me anytime.
I am trying to find a formula to calculate a commission value.
Here is the table:
Goal Attainment Commission Value
0 - 15% $- 0.00
16% - 30% $10.00
31% - 40% $12.00
41% - 50% $15.00
51%+ $20.00
The formula I came up with is:
=IFS(J4<16,”0”,J4<31,”10”,J4<41,”12”,J450,"20")
This keeps resulting in #NAME?
I am using MS Excel for Mac version 16.54
Hello!
The IFS function is available starting with Excel 2019.
sorry, type O in above table. this is what I am using
=IFS(J4<16,”0”,J4<31,”10”,J4<41,”12”,J450,"20")