If someone asks you what Excel function you use most often, what would your answer be? In most cases, it's the Excel IF function. A regular If formula is very straightforward and easy to write. But what if your data requires more elaborate logical tests with multiple conditions? Continue reading
Comments page 14. Total comments: 656
Hi I'm Mijanur Rahman,
I want to help !!
Actually I, get a G.P.A with four subject mark.
Formula1: Suppose (Sub1+sub2+sub3)/3 it's Main subject GPA (3.93)
Formula2: IF Sub4 point is sub4>4.00 then add 0.50 with main subject GPA.
How to write two formula in one line....???
Plz Help
=if (sub4 > 4.00, (sub1+sub2+sub3)/3 + 0.50, (sub1+sub2+sub3)/3)
What if I have multiple overtime pay rates. For example, I want to calculate the total pay for 64 hours worked with these conditions:
-30 hours or less= $9.50 per hour
-More than 30 and less than 51=$12.50 per hour
-51 or more and less than 61=$15.50 per hour
-61 or more=$18 per hour
So for hour 1-30, I get paid 285. For hours 31-50, I get paid 237.50, etc. until I'm up to hour 64. I should have a total of 734 but I'm not sure how I would write the formula
If (cell <31,cell*9.85,if (cell<51,285 + ((cell - 30)×12.50), 525.50+((cell - 50)×15.50))).
I have a question
trying to create a nested a nested formula with 3 arguments
if A>720, B>16, C"IV" display RUX
please help
Hi Mohamed,
If you want to display "RUX" when all 3 cells contain the values you specified, then use IF in combination with the AND function, like this:
=IF(AND(A1>720, B1>16, C1="IV"), "RUX", "")
How would you explain to someone who is unfamiliar with Excel how to read a nested statement that contains 3 different conditions??
Hi!
I will try to explain the logic on an example of the first formula in this tutorial:
=IF(B2>249, "Excellent", IF(B2>=200, "Good", IF(B2>150, "Satisfactory", "Poor")))
Translated into plain English, the formula does the following:
1st IF: Evaluates the 1st condition (if B2 is greater than 249). If the condition is met (if B2>249), returns "Excellent", otherwise proceeds to the 2nd condition.
2nd IF: Checks if B2 is greater than or equal to 200. If it is, returns "Good", otherwise proceeds to the 3rd condition.
3rd IF: Checks if B2 is greater than 150. If it is, returns "Satisfactory", otherwise returns "Poor".
In other words, the formula reads as follows:
If B2>249, return "Excellent", otherwise check if B2>=200
If B2>=200, return "Good", otherwise check if B2>150
IF B2>150, return ""Satisfactory", otherwise return "Poor"
Thanks. This has been pretty useful. I'm trying to create a formula for a document thats over 7000 cells long. Would this negatively affect the formulae? I keep getting an Value? error.
Carolyn:
I hope on your end what I am saying comes up correctly because on my computer once I hit send, some of what I've written is cut off.
Hi,
Articles are quite good and knowledgeable.
Can yo help me with logical functions
I have some specific data for input diameter, input thickness output diameter and output thickness. based on these values I have to select the speed and feed for machine, which function I have to use, so that formula can check for given input and out put parameters what speed and feed to be selected?
I have a spreadsheet that I need help with. I have two columns, one is Regular and one is Overtime. I need the Overtime column to calculate for anything over 40 in the regular, but I need the regular column to change to 40.
example....
Employee has a total of 47 regular hours in column H, I need for column I which is the Overtime column to show the sum of H-40=I, but then for column H to show 40.
Is this possible and if so how.
basically in my mind it's If H is >40 then I would be equal to anything >40 and H = 40
Am I crazy or can this be done?
Carolyn Brown:
IF(sum(B2:G2)<=40,sum(B2:G2),40) 40,sum(B2:G2)-40," ") <---Overtime Hours Column (should be greater than 40)
Carolyn Brown:
Do you manually put the hours in the regular and overtime columns or are there cell references for each column for each employee that populate automatically in those cells in the given work period?
I don't remember anything before Excel 2013 so this maybe not work if you use a version older than that. I will also answer this assuming that hours populate automatically with cell references for each employee and cells B through G have the total hours worked each day from Monday to Saturday.
For the regular hour column you can setup an IF statement.
=IF(sum(B2:G2)40,sum(B2:G2)-40," ")
You can also setup a data validation in the regular hours column. You can set it where only numerical values can be entered in that column and the value cannot be greater than 40.
100,000.00 500,000.00 10% 225 one lac to 5-lac than 10% and plus 225
500,000.00 1,000,000.00 15% 1225 5-lac to 10-lac than 15% and plus 1125
1,000,000.00 2,000,000.00 18% 2225
2,000,000.00 3,000,000.00 20% 3225
Sr No Name of Annual income
1 waseem 3,500,000.00 350,225.00
2 waqas 4,000,000.00 400,225.00
3 waqar 500,000.00 50,225.00
4 aslam 1,000,000.00 100,225.00
5 abid 1,500,000.00 150,225.00
6 abdullah 2,000,000.00 200,225.00
7 rehman 2,500,000.00 250,225.00
8 zar 3,000,000.00 300,225.00
9 tahir 5,000,000.00 500,225.00
10 altaf 6,000,000.00 600,225.00
11 shams 300,000.00 30,225.00
12 pak 800,000.00 80,225.00
13 lah 900,000.00 90,225.00
14 pun 6,500,000.00 650,225.00
15 aus 9,000,000.00 900,225.00
16 can 1,200,000.00 120,225.00
please help me i put this formula but not get success.
=IF(AND(C6=$B$1,C6,$A$2,C6>=$B$2,C6>$A$3,C6>=$B$3,C6>$A$4,C6>=$B$4),"",(C6*10%)+225)
thanking you anybody help me.
Hi,
I need help for complex formula, tried using AND, OR, Search with IF but not able to get the result.
I have a Report data which I have converted into Table, in Column C under the Header "Assignment Group" there are country listed HRss Brazil uat, HRss Portuguese ant, HRss Spain hat, Hrss Italy amt and HRss BR sat. So I was trying this formula:
=IF(ISERROR(SEARCH("Portu",[Assignment group])),"True", IF("BR",[Assignment group],"False")) - what I want to do is if the country is Brazil or Portuguese or BR then the formula should return to False and rest should be True.
Please if you can help me it will be great, I have be trying multiple combination but to no avail it returning to "#Valid"
Many thanks in Advance
Rinks
Hi admin, I have a case to count between 2 column where these columns has date format, and each columns has different input,I need to count distance between 2 column with condition where ,ex : A1 to B1 has 4 days distance the result is "Done" Where condition 1 Day = 8 hours , and we have to achieve min 20 Hours to get "done" status.
Please Help me :(
I am trying to create a formula that evaluates multiple cells in the same row that will determine if any of the cells in that range have a no, then a file is failing. I'm using this: =if(countif(A2:H2,"No"),,"Fail","Pass")
It works for a smaller range, but not a larger range....
Is there another way to do this?
I have a formula that looks like this in a spread sheet +AZ3*IF)'YTD ALL'!$R$^'Overtime FY17'!AZ$1,'YTD ALL'!$R$6, 'YTD ALL'!$D$6))
What does this mean? I understand that the "YTD ALL' is another sheet being referenced but I can't figure what it is pulling.
Apparently the person whose position was more well versed on Excel than I am.
Thank you in advance
Hi Kristi, It is pulling things that are from YTD ALL tab and whatever comes after up to the comma. Example 'YTD ALL!' is the worksheet. $R$ is column R in that worksheet, $R$6 is a cell in that worksheet ect.
Hello, Ms. Svetlana Cheusheva,
Your IF condition articles are really helpful and much appreciated, I will be so grateful to you if you please help me out to set up this formula…..
I have several dates on a sheet in a column (e.g. 18/02/2018, 27/02/2018, 29/03/2018) What I want is deduct 10 days from every date and after deducting 10 days I need to check back for the date on Saturday. For example 18/02/2018 Minus (-) 10 days = 08/02/2018, now I check back for the date on Saturday, that is 03/02/2018. 3rd February 2018 will be my result. And another example for the date 29/03/2018 where the result will be 17/03/2018. Can you please help me to build this formula?
Thank you in advance.
Hi Mr Sarder,
Try this: ="Date"-10-(WEEKDAY("Date"-10))
In the "Date" you can sellect a cell, eg. A2.
Mr Alex, kindly help me in excel color formula.
i wanna ... clom a = 12
colm b = 6
colm c= if colm A is greater then or equale to colm b ..then show red colr in ful cell otherwise white.
siaz ali
Hi, Ms. Svetlana Cheusheva,
Your artile about IF condition really nice, can help me out for below data style, what will I apply formula for this to get better result (there are 3 Conditions to check);
PROJECT # TRAVEL TYPE DI STATUS COST CODE REMARKS
CONDITION 1 CONDITION 2 CONDITION 3
8326 LEAVE DIRECT TQ.08326-VC-L
8326 LEAVE INDIRECT TQ.08326-FC-I
8326 MOB DIRECT TQ.08326-VC-O
8326 MOB INDIRECT TQ.08326-FC-O
8326 OFFICIALTRAVEL DIRECT TQ.08326-VC-V
8326 OFFICIALTRAVEL INDIRECT TQ.08326-FC-V
RESULT TO BE REQUIRED IN FINAL SHEET AS BELOW;
FOR EXAMPLE
IF PROJECT # "8326" AND "LEAVE" AND "DIRECT" THEN CODE PASTE "TQ.08326-VC-L" IN REQUIRED COLUMN
Your prompt and favorable response will be highly appriciated.
Thanks & regards,
Riz
hello,
very helpful website...
I ve a query, I m looking to use IFERROR for more than 2 conditions with formula as pr below
=IFERROR(VLOOKUP(F2,'Formula report'!B:I,8,FALSE),dxg(F2,"XXX",,"XXXX Days")*100),=IFERROR(VLOOKUP(F2,'Formula report'!B:I,8,FALSE),dxg(F2,"VWAF",,"YYY: 7 Days")*100), "NO DATA"
Does someone is able to help me ?
ty
rene
Hello,
Here is the Data/Table(Sheet1)
ColumnA = Product Name
ColumnB = Amount
ColumnC = Barcode
**more or less there's 25-30 items in each given Column**
Is there a formula where in once barcode has been inputted/coded, ProductName and Amount will came after. (Sheet2)
Hello, I am trying to use nested IF formula including OR, without success. This is what I'm looking for:
Currently my data includes a column of "PASS"/"FAIL" results for each type of test, one Math and one Lit. I just need to identify which tests were taken based on whether or not results are present. Blank cells indicate a test was not taken. With the specific text of "Math + Lit" when indicating both tests were taken.
Example:
MATH LIT TAKEN
Pass Pass Math + Lit
Fail Pass Math + Lit
Fail Math
Fail Lit
Pass Math
Pass Fail Math + Lit
Pass Lit
Fail Fail Math + Lit
In cell D3, enter a nested IF function that will check
cell B3. If B3 is 120 or less, display the text string "Normal", IF B3 is greater than 120,
have Excel check B3 to see if it greater than 139. If it is greater than 139, it should
display the text string "High". If it is greater than 120 but less than 140, it should display
the text string "Prehypertensive".
20. Copy the formula down the whole column through 7/31 Can someone help me please!!!!!!
column A - 10000
column B - % (=E/A)
column c - wk1-8000
column d - wk2-7000
column e - wk3-6000
Is there a formula that I can auto update column B instead of manual update every week.
A B C D E F
Plant 10,000 Target Inv % 8000 7000 6000
Is there a way to create a formula in column c to auto update the % base on the current week. Instead of manual update column C weekly (=F/B and the next week G/B).
Hi,
I need multiple if condition to be merged.
Condition:
if A1= "implementation" & A2= "Complete" & A3="Complete"
Output should be:"Well Done"
if A1= "implementation" & A2= "NA" & A3="Complete"
Output : "Check ABC"
if A1= "implementation" & A2= "Complete" & A3="NA"
Output : "Check XYZ"
if A1= "implementation" & A2= "NA" & A3="NA"
Output : "Incorrect Processing"
I want these outputs if above conditions(inputs) are placed in the 3 cells. can it be done?
Let me know and please email to personal id if possible.
Hello,
I am trying to create a formula where I have 4 Yes/No fields but only 3 Yes's are required to obtain a final yes. I am having trouble figuring out how to write a formula where 3 of 4 yes's = final YES.
As you can tell, I am no excel expert so help is appreciated.
Thank you
L3 Yes/No
O3 Yes/No
R3 Yes/No
U3 Yes/No
These cells are the results of someone meeting a subset of criteria so there will be a yes if the criteria is met or a no if it is not. Same for all of the above cells. To fulfill the whole set of criteria, there must be 3 out of 4 Yeses. V3 will be either "Yes" the criteria has been met or "No" it has not been met.
I hope that helps.
I'm trying to make the formula return 4 possible answer which is (R-regular,A-absent,L-late,OT-overtime). My basis for regular is if the value of the cell is "8". So this is the formula that I made so far =IF(H16>7.9,"OT",IF(H16<7.9,"L",IF(H16=8,"R","A"))). It only returns (OT and L) something is very wrong and i can't figure it out. I'm just new to excel so please help me. Thank you so much in advance
I'm trying to make the formula return 4 possible answer which is (R-regular,A-absent,L-late,OT-overtime). My basis for regular is if the value of the cell is "8". So this is the formula that I made so far =IF(H16>7.9,"OT",IF(H16<7.9,"L",IF(H16=8,"R","A"))). It only returns (OT and L) something is very wrong and i can't figure it out. I'm just new to excel so please help me
Hi, I make a sheet for distribution incentive . her have multiple uneven amount . I want of use ceiling & floor e formula in on cell. How i use this formula ? i want to bellow this type to use by formula.
previous Required/Revised amount
amount
11,957 12,000 (IF Above 500 + it will next round amount
18,396 18,000 IF below -500 it will Previous round amount
7,818 8,500 (IF Above 500 + it will nearest round amount
7,818 7,500
5,059 5,000
Hi, I am trying to modify a current if/then combined calculation statement to reflect the proper calculation. Here is the original:
IIF (UDField09 < 86666.67, IIF (UPPER(last(2,TRIM(PayGroup)))='WK',
UDField09*.26627, UDField09*.576923), IIF (UPPER(last(2,TRIM(PayGroup)))='WK',23076.93,50000))
What I ultimately want it to do in the calc is this. I know I need some nesting and that is where I am having trouble. How should the 3rd line read?
IIF(UDField09 < 86666.67, IIF (UPPER(last(2,TRIM(PayGroup)))='WK',
UDField9/52/10*.36*12/52, UDField9/24/10*.36*12/52, IIF (UPPER(last(2,TRIM(PayGroup)))='WK',23076.93,50000))
I have a file containing multiple sheets the first of which is an index
sheet. The other sheets are hidden. I want to be able to click on a
hyperlink in the index sheet that will send me to the hidden sheet and
open it.
Is this possible ?
I have been trying to fix this formula all day, I don't know at this point what I'm doing wrong.
=IF(D2=Full,A2=1, IF(D2=Special Case, A2=2,IF(D2=Parts, A2=3,IF(D2=T&M, A2=4,IF(D2=Not Installed,A2=5, IF(D2=Customer Issue, A2=6))))))
Please help!
Hi Erika,
If my understanding is correct, you want the output in cell A2. If so, you should not reference A2 in the formula, just enter the formula in the target cell:
=IF(D2="Full", 1, IF(D2="Special Case", 2,IF(D2="Parts", 3, IF(D2="T&M", 4, IF(D2="Not Installed", 5, IF(D2="Customer Issue", 6, ""))))))
Also, please pay attention that all text values should be enclosed in double quotes.
I have 16K+ line items and I am trying to create a formula to take out manual work that will take hours. My forumla is below. The message I get in the cell is#NAME?
What am I doing wrong?
=IF(B297=ZRO,"Return Order", IF(B297=ZC2,"Credit Request", IF(B297=ZD2,"Debit Request", IF(B297=ZB3, "Incentives", IF(B297=ZB4,"Incentives")))))
Hi Alice,
The problem is in the logical text of the first IF (B297=ZRO). "ZRO" is a text value, so it should be enclosed in double quotes (as well as "ZC2", "ZD2", etc. if they are text). If these are cell references, no double quotes then, but you need to fix ZRO anyway.
HI, wonder if I could get help writing a function or direct me to a resource it would help me formulate it myself:
A1 * (B1 or C1 when B1 or C1 is different from zero or different from 'blank')
The B1 OR C1 values will be attributed from a pull down menu and it will be either B1 or C1). It seems so simple and easy but I have almost burned my brains out and nothing!
Thanks a million!!!
Hello,
I'm trying to use nested if with the following syntax but it keeps give me value error
=IF(LEFT(B5,4)="0122","Orange"), IF(LEFT(B5,4)="0127","Orange"), IF(LEFT(B5,4)="0120","Orange"), IF(LEFT(B5,4)="0128","Orange"))))
can you help me please
thanks
Can anyone help me with the argument below.
Age exceeding 10yrs but less than 12yrs - 5%
Age exceeding 12yrs but less than 15yrs - 20%
Age exceeding 15yrs - 50%
Assuming if Cell D3 is between 10 -12 = 5%, Cell D3 if greater than 12 but less than 15 = 20% and if greater 15 = 50%
I want to put the IF formula in Cell E10
If D3 12 but 15 then 50%
Thanks in advance
Hello. Thank you for contacting us.
Please try the following formula to get the result you need:
=IF(D3>=15, "50%", IF(D3>=12, "20%", IF(D3>=10, "5%", "")))
Thank soo much
I want a cell C6 to perform this function -
IF cell g2 falls between 45282 and 90563 then take g2 and subtract it by 45282 multiplied by .335.
If cell g2 is greater than 90563, simply do 45281 multiplied by .335.
How would I write this? Possible? Any help would be appreciated, thanks.
Afternoon,
I have a status column (Column B) that I would like to display "Open", "Closed", "Hold" or "Rejected" based on the contents of another column (Column N) in the same worksheet.
Open would be anything where Column N is blank
Closed would be anything where Column N contains a date
Hold would be anything where Column N has the word "HOLD"
Rejected would be anything where Column N has the word "Rejected"
Many thanks in advance
"# of Service
Provided" Fair
59 61%
108 61%
112 60%
123 63%
134 63%
147 68%
156 71%
I am trying to to put a formula if # of service provided 100 & 110 & 120&130&140 then add 3% with the fair column
I want a bill format like if quantity is 1 then discount will be 40% of amount and if quantity is 2 then discount will be 50% of the total amount and if quantity is 3 then discount will be 60% of the total amount
Hello, Jai,
Thank you for contacting us.
You may try the formula below:
=IF(D2=1, "40%", IF(D2=2, "50%", IF(D2=3, "60%", " ")))
I hope this helps. Please let me know if you have any other questions or difficulties.
I want set multiple condition in on cell below mention in brief
For male professional tax
7501 to 10000 then 175
Above 10000 then 200
For Feb month 300
For Female
Below 10000 then 0
Above 10000 then 200
For feb month 300
Hi everybody!!!
I want one formula for below problem.
Distance 0-50 kg 51-100 kg 101-250 kg 251-500 kg
Upto 25 NIL NIL NIL NIL
26-100 km 650 750 1000 1150
101-150 km 1000 1250 1500 1750
151-200 km 1250 1500 1750 2000
201-300 km 1500 1750 2000 2500
I mention here my dada. Sorry I am unable to give in excel.
I required formula for 2 condition i.e.
Distance 100 km & weight 50 kg = 650
Distance 100 km & weight 100 kg = 750 (2nd condition change)
Distance 100 km & weight 250 kg = 1000 (2nd condition change)
distance 100 km & weight 500 kg = 1150 (2nd condition change)
same with distance 150 to 300 km & weight 50 to 500 kg
I tried 'if and' formula but it's not working multiple time. Please help..
Hi, thanks for this great site. I am stumped with an Excel nested if that uses SEARCH to query for text in the adjoining column. Here's an example
=IF(SEARCH("a",A1),"A",IF(SEARCH("b",A1),"B",IF(SEARCH("c",A1),"C",IF(SEARCH("d",A1),"D",IF(SEARCH("e",A1),"E","other")))))
Unfortunately, I only get "A" or "#VALUE". I tried including IFERROR but got the same results
=IFERROR(IF(SEARCH("a",A1),"A",IF(SEARCH("b",A1),"B",IF(SEARCH("c",A1),"C",IF(SEARCH("d",A1),"D",IF(SEARCH("e",A1),"E"))))),"other")
This only returns "A" or "other". Can you please explain why my nested loop is not nesting? Thanks in advance.
FYI, I first thought the formula was chopped off but then realized that you have to side-scroll to see the entire line.
Hi Need your help,
I need a formula where:
If both x & y exist in column A it will show "Yes" in column C
IF only x or y exist in column A (not both) it will show No in column C
and if both does not exist in column a it will show None in column C.
Thank you!
I am trying to find a formula that will allow me to add a certain number of days to a date in a cell, dependent on certain information in another cell. For example:
A1 B1 C1
Date Rcv'd Level Date Response Due
6/30/17 Level 1 A1 + 20 days if Level 1
A1 + 30 days if Level 2
A1 + 30 days if Level 3
When I tried, I couldn't get the formula to recognize A1 as a date.
Thank you for your time and consideration in this matter. Any assistance would be greatly appreciated.
Hi all,
I'm hoping someone can help me please. I am trying to set up my own manufacturing schedule that shows products, volumes, times and dates etc. I have a formula that works out how long any given production run will take but I want to also take into account the change overs between products.
So, column C is drop down menu with all products and change overs, column E works out how many hours the run will take - I need a formula that looks to column C to see if it shows "change over 10" or "change over 30" and then returns 10 or 30 respectively - if neither are shown then run the calculation (D10/34/60)......
Is this possible? Thanks in advance for any help :)
how to hyperlink in a cell according to condition to open different - different data.
how to open excel sheet with drop down list; or combo box
Hi
I am trying to below pull below output on conditions A B & C, could you please help me in this (if B = C then based on column A it should extract the output)
Column A B C Output
Transactions No Yes Client custom in both versions > Transactions
Accounts No Yes Client custom in both versions > Accounts
No Yes Client custom in both versions
Cotains "History" No No This metadata appears only in V7 client database. Newly added metadata item under "History" folder.
Cotains "1000INT BE" No No Interest BE added in V7
Yes No New Standard Data item
Yes Yes 712 Metadata items match with both 61 and 712 Standard Template
why and how of a bracket {} in this IF argument:
{=MAX(IF('C6'!C:C<=WorkEx!I21,'C6'!C:C))}
The formulae result is different with and without bracket. Thank you.
Hi! I need help with my excel formula. I currently have conditions set on 1 cell. However, how do you add one more condition so that when you input a value on the other cell, the value on the current cell which has the formulas change? Help please please please
Hi,
I am trying to get the OT time and Regular working Hours both in different cells with below formula but the result value is something different, please help?
For Regular working hours =IF((((C6-B6)+(E6-D6))*24)>8,8,((C6-B6)+(E6-D6))*24) and for OT =IF(((C6-B6)+(E6-D6))*24>8, ((C6-B6)+(E6-D6))*24-8,0) , where column B is Log in, column C is Lunch Starts, column D is Lunch Ends and column E is Log Out.
Hi,
I am trying to get the OT time and Regular working Hours both in different cells with below formula but the result value is something different, please help?
For Regular working hours =IF((((C6-B6)+(E6-D6))*24)>8,8,((C6-B6)+(E6-D6))*24) and for OT =IF(((C6-B6)+(E6-D6))*24>8, ((C6-B6)+(E6-D6))*24-8,0)