IF is one of the most popular and useful functions in Excel. Generally, you use an IF statement to test a condition and to return one value if the condition is met, and another value if the condition is not met. Continue reading
by Svetlana Cheusheva, updated on
IF is one of the most popular and useful functions in Excel. Generally, you use an IF statement to test a condition and to return one value if the condition is met, and another value if the condition is not met. Continue reading
Comments page 113. Total comments: 4830
Dear,
I have
0-19 =Cat-3,
20-49=Cat-2,
above50 =cat 1,
how to use if formula
pls help
vaule cat
19
24
25
35
12
45
Hi i need some help with a formula if possible. I'm trying to do the following.
In Cell C1 i have an amount "£"
In cell E1 i want the word "paid"
In Cell F1 i have the following "=SUMIF(E1,"paid",C1)"
In Cell G1 i have this formula "=IF(E1="paid",NOW(),"Outstanding")"
Now the problem i'm having is that if i copy this down my spreadsheet everytime i change a cell to "paid" every cell that already has a date in it changes to the date i make the new entry.
Is there a way to keep the dates.
For example.
I input "paid" into a cell yesterday and the "date" shows as 4/11/15
i put a "Paid" into a cell today and the "date" shows as 5/11/15 but keeps the previous day as is.
Hi,
I need some assistance with this...
For Example
=IF(G6>0,"FR")AND(H6+I6+J6=0,"NR")
Hi Iris,
I believe the correct syntax is as follows:
=IF(G6>0,"FR", IF(H6+I6+J6=0,"NR", ""))
It is to good.
I am trying to get an IF or SUMIF formula to work but having slight problems arise. What I am after?! If cell A is 6, I need cell B to = Cell D x Cell E. Very simple I am sure however I cannot seem to figure it out. Any assistance would be appreciated. A real life example of what I am trying to achieve… If Sam buys 6 or less oranges it will cost her $1 per orange making it $6 however if Sam purchase 7 or more she will get oranges for 95cents each making the total $6.65 if she purchased 7.
I found that if the text strings in the cells that I want to test are "TRUE" and "FALSE" then my if formula is not working as desired.
Using your example in the above article how would you handle if your column C heading is 'Delivered (TRUE/FALSE)' and column D is 'Action Required (Yes/No)' ??
I am able to control it if the string is anything other than 'true' and 'false' Are these exceptions or am I missing anything?
Can you please assist me with a logical formula?
Need to create a formula that will replace the word "YES" if Cell F2 is less than 25% of cell H2 or replace the word "NO" if this condition is NOT met.
Hai i try to create a formula as follow
I need the answer in C1.
if B1A1------Late
all other condition (if the cell is blank or the cell contains text) leave as Blank
I try this one.... =IF(B1A1,"LATE",""))
Can any one help me
I am trying to create a formula that will replace the min value between d20:d27 if it is less than e2 with e2. my failed attempt is below:
=IF(MIN(d20:d27)<E2,REPLACE(C20:C27,C20:C27,3,E2))
I've built an evaluation form. It looks like this:
Agent greeted the customer: Yes No N/A Score
Agent sounded professional:
Agent ended the call properly:
Now; I want to have check/option button under each attribute. So, If I check Yes; it should place 4.5 under the score. If I check No; it should place 0 under the score column and so on...
Thanks,
im trying to use the if function to connect two tabs together.
this is my command
"=IF(B5=Daily!A:A,Daily!B:B,0)"
even though everything is correct its still saying it false.
can anyone help?
it return error
can anybody help me with this function ?
=IF(C28=B2,($C$3-C28)/30*1.25,IF(($C$3-C28)/30>36,15)),if((($C$3-c29)/30>60,17)))
Can you help me? I want to do this, I have a maximum mark of 320 teachers evaluation and If the mark obtained is higher than it has to write 320, if not it should write the mark itself. My problem is that E6 is already the answer of a condition statement and it returns 320 but this number is not recognised as a number by the following condition. I try to format it but it doesn't allow it.
IF(Ensino!H$50>E6;320;Ensino!H$50)
I figured it out if anyone wants to know
=IF(OR(D3="",TODAY()>=C3,AND(D3"",D3>=C3)),"Yes","No")
I figured it out if anyone wants to know:
=IF(OR(D3="",TODAY()>=C3,AND(D3"",D3>=C3)),"Yes","No")
HI ID NEED A FORMULA THAT IF COL a1 HAS THE LETTER H IN COL a2 WILL ADD 1
Hello,
Sorry it's not my day today... I do a loop with my brain :D
So if somebody can help me to solve the following issue, it would be great.
I would like to plan maintenance for equipments so I gather all the SMU & Last Maintenance date for each of my equipments.
I compare if I the last SMU value is > of x time the schedule in column E (every 100, 250, 500, 1000, 2000 hours and so on)
If the value of the Last SMU is superior of the Schedule I should find the next schedule SMU
Below my table:
Column B Column C Column D Column E Column F
Last Job date Last SMU UNIT Schedule Next scheduled JOB SMU
9/28/2015 64881 HRS 100 65000
9/28/2015 64881 HRS 250 65000
9/28/2015 64881 HRS 4000 68000
9/28/2015 64881 HRS 6000 66000
And the formula... It's working... but I need to simplify it in order to check up to 100 times the schedule in column E.
Thank you in advance.
=IF(C9>E9,IF(C9>2*E9,IF(C9>3*E9,IF(C9>4*E9,IF(C9>5*E9,IF(C9>6*E9,IF(C9>7*E9,IF(C9>8*E9,IF(C9>9*E9,IF(C9>10*E9,IF(C9>11*E9,IF(C9>12*E9,IF(C9>13*E9,IF(C9>14*E9,IF(C9>15*E9,IF(C9>16*E9,IF(C9>17*E9,IF(C9>18*E9,IF(C9>19*E9,IF(C9>20*E9,IF(C9>21*E9,IF(C9>22*E9,IF(C9>23*E9,IF(C9>24*E9,IF(C9>25*E9,IF(C9>26*E9,IF(C9>27*E9,IF(C9>28*E9,IF(C9>29*E9,IF(C9>30*E9,IF(C9>31*E9,IF(C9>32*E9,IF(C9>33*E9,IF(C9>34*E9,IF(C9>35*E9,IF(C9>36*E9,IF(C9>37*E9,IF(C9>38*E9,IF(C9>39*E9,IF(C9>40*E9,IF(C9>41*E9,IF(C9>42*E9,IF(C9>43*E9,IF(C9>44*E9,IF(C9>45*E9,IF(C9>46*E9,IF(C9>47*E9,IF(C9>48*E9,IF(C9>49*E9,IF(C9>50*E9,IF(C9>51*E9,IF(C9>52*E9,IF(C9>53*E9,IF(C9>54*E9,IF(C9>55*E9,IF(C9>56*E9,IF(C9>57*E9,IF(C9>58*E9,IF(C9>59*E9,IF(C9>60*E9,IF(C9>61*E9,62*E9),61*E9),60*E9),59*E9),58*E9),57*E9),56*E9),55*E9),54*E9),53*E9),52*E9),51*E9),50*E9),49*E9),48*E9),47*E9),46*E9),45*E9),44*E9),43*E9),42*E9),41*E9),40*E9),39*E9),38*E9),37*E9),36*E9),35*E9),34*E9),33*E9),32*E9),31*E9),30*E9),29*E9),28*E9),27*E9),26*E9),25*E9),24*E9),23*E9),22*E9),21*E9),20*E9),19*E9),18*E9),17*E9),16*E9),15*E9),14*E9),13*E9),12*E9),11*E9),10*E9),9*E9),8*E9),7*E9),6*E9),5*E9),4*E9),3*E9),2*E9),1*E9)
Hello Everyone,
If I could please have your help.
=IF(AND(D4="",TODAY()>=C4,OR(AND(D4"",D4>=C4))),"Yes","No")
I need an if function that con do the following:
If return date D4="", and today's date is greater or equal to C4 then Yes, otherwise No. If D4 is not equal to empty, then D4>=C4, Yes otherwise no.
I can't seem to figure it out =(
I am not sure to have fully understood your query but try this way..
=IF(D4>0,IF(TODAY()>=C4,"YES","NO")
Hello,
I am trying to do something along the lines of if Aetna, BCBS and so on are typed in the J5 field then Multiply K5, L5 or M5, etc. by the % that is entered in AJ5. Is there a formula for this?
having a hard time getting this to work.
voice and screen true - yes, false = no
I have door numbers listed in boxes across. I need a formula that totals the number of boxes filled in with any number. 201, 202, 203 = 3
=@COUNT( DID IT.
i want to know haw to get value to close value by if function
Hi
I am trying to create if statement that has both text and number here is the code:
=IF(U18="YES",VLOOKUP(W18,'Assumptions and Factors (2)'!U148:U150,1,VLOOKUP(Q18,'Assumptions and Factors (2)'!W110:X135,2),VLOOKUP(Q18,'Assumptions and Factors (2)'!Z110:AA135,2)))
it is to create manhours on specific pipe sizes (Q18=3.00,'ADDS IN A MODIFIER,but if W18 is not None,1B,ET1, it goes to another table modifier)
I do get #value when I do a calculation step it shows me but I just cannot seem to get pass this.
any direction would be helpful
Thank you
I am attempting to return a set of responses should a series of the following exist...
If Material/Service/Other COlumn = "Service", MSA column = "N" , COI Column = "N" , & COI Valid/Expired = "Expired"......= "No COI and MSA"
and then in the same cell
if(and(Material/Service/Other Column="Service", MSA Column="N", COI Column="Y",& COI Valid/Expired="Expired"...="Expired COI and No MSA"
and continuing with the same cell and adding on to the above...
If(and(material/service/other column="Service", MSA Column="Y", COI Column="N",& COI Valid/Expired="Expired"....="No COI"
Due Date Date of Deposite Delayed days Penalty Amt
10/21/2015 10/26/2015 5 2000
Interest for Late Filing of Return
Particular Amount
Up to 30 day 2,000.00
Above 30 day 5,000.00
how to put IF formula in penalty amt column if file the return before 30 days (penalty Rs.2000) after 30 days (penalty Rs.5000) and on the same day (no late file the return)
Hi,
I need a =if(or) formula
=IF(OR(G153="Sta",451)=IF(G153="Fra",939)=IF(G153="LOG",294)
Hi, I have to collect samples of employees dust exposure at a underground mine.
Here are the conditions of re-sampling a sample dependent on the lab results:
Underground
• Below 0.3 mg/m3 (Re-sample one sample)
• Above 5 mg/m3 (Re-sample one sample)
• Above 10 mg/m3 (Re-sample two samples)
Can you please help me with a formula?
Hi I want a formula which is suitable for my data entry sheet Ex: if any party name or amount entered into sheet1 would change the amount in sheet2 simultaneously with the same name and amount.
I am writing a spreadsheet where column d has a validation so only 6 options are available from a drop down menu. I would like to have the next cell auto populate with a specific value based on the previous choice what would my formula look like.
ex: row 1column d reads refrigerator column e should populate 0001
row 2 column d reads stove column e should populate 0002
Thanks for your response Ahmed. However your formula did not work.
Here is a portion of my worksheet.
Date Achieved
(mm/yy) CARRY (5 Points)
Feb-2015 1.Carry an object held against body with 2
hands.
Apr-2016 2.Carry an object held against body with 1
hand.
Apr-2016 3.Carry an object away from body with 2 hands.
4.Carry an object away from body with 1 hand.
May-2017 5.Carry two (2) objects – one in each hand.
As you can see in this sample, the skill of Carry has 5 parts. In Feb. 2015 the student achieved 1 part in the skill of Carry. In April 2016, the student achieved 3 parts and in 2017 the student achieved 4 parts of the skill.
Now in my chart. What happens when I use the formula =COUNT(A1:A5)EXCEL adds all the parts achieved which is what I want it to do BUT NOT change the number in the previous year. So my chart should look like this:
(the dates are linked to years in another worksheets so they come in when a new year is added)
Feb-2015 Apr-2016 May-2017
1 3 4
Hope someone can help with this.
Thanks, Debra
Hi
I want to translate the following equation
IF($D$35>0;D35-C35;0)
I do hope you can help. I have tried numerous IF, COUNT,COUNTIF,COUNTA formulas to no avail.
I am trying to track the progress of the number of skills achieved each year over the course of multiple years. Each skill is broken into multiple parts. When a part of the skill is achieved a date (such as Mar -2015) is recorded in the cell next to that part of the skill.
I wanted to create a chart to show the date and the number of skills that was achieved for each year over the course of multiple years.
So I created a chart with 2 rows with 10 columns under the skill. The first row records the dates, the second row records the number of items achieved in that year. I want EXCEL to automatically record this information
I need Excel to count the number of skills the student achieved for the year and put it in the cell under the date. Now each year I give the test I want it to record how many skills the student achieves without Excel changing the number of skills achieved from the previous year.
Hi,
Can you please help me to get the data using "if" function..
Data....
Batch Joining Date
Batch 1 10/10/2015
Batch 2 10/17/2015
Batch 3 10/24/2015
Batch 4 11/7/2015
Batch 5 11/14/2015
Batch 6 11/21/2015
Batch 7 12/5/2015
Batch 8 12/12/2015
Batch 9 12/19/2015
Batch 101/2/2016
Type of training
Induction training 2 weeks IT
Technical Training 3 weeks TT
Process training 6 weeks PT
I need to know, how many members would attend the training from which batch for which training
can I get this data please
Hi,
I have trouble with formula, i want make formula will show the specific value if found specific text/string in row, i want to make simple formula for java bytecode you can see the byte code here https://en.wikipedia.org/wiki/Java_bytecode_instruction_listings
so if i type Mnemonic in first coloum and i get the OpCode (hexdec) as a result in second coloum
I AM HAVING TROUBLE I HAVE A FLOW CHART WITH DUE DATES ON THEM EXAMPLE I HAVE WORK THAT NEEDS TO BE COMPLETED WITH IN 3,6 AND 9 MONTHS HOWEVER IF THEY GET COMPLETED BEFORE I WANT TO NEXT SET OF DATES TO GET TRIGGERED BY COMPLETED TIME IF LESS THEN THE ACTUAL DUE DATE HOW WOULD I DO THIS?
Hi
If i have to pay someone who has secured the below marks
Equal to 70% - 89% - 10 USD
90% and above - 20 USD
Below 69% - 0 USD
What formula do you use ?
have a formula i have been trying to fix -
=IF(AND(X16>99.9999%, Y16>99.9999%),(IF(TRUE,W33),IF(AND(X16<99.9999%, Y16<99.9999%),(IF(FALSE,W32)))))
what im wanting is the X16 + Y16 if both are true to show the info in cell W33 BUT if ether is False to show info in cell W32 - is there something im missing?
Hi I am trying to use check boxes to add up a list of items one might purchase and give me a sum total. I tried the formula for just one box but it keeps giving me zero instead of the dollar amount I expecting ($5).
The formula I am using is =IF(D3="true",C3, 0)
In this case D3 is true
C3 is $5
The result comes back as 0
Any ideas?
Hi Paul,
Because TRUE and FALSE are Boolean values, you don't need to enclose them in quotes, and your formula will work perfectly:
=IF(D3=TRUE,C3, 0)
Svetlana that works perfectly, now for part two which I thought I could figure out if part one worked. I have a list of prices that if they are true I would like them to total up at the bottom. I tried =IF(D3:D14=TRUE,SUMC3:C14, 0) but it doesn't work
Paul,
For this, you'd better use the SUMIF function:
=SUMIF(D3:D14, TRUE, C3:C14)
The above formula sums values in column C if a cell in the corresponding row in column D is TRUE.
Thank you again, that worked.
Hi I've got a problem on a question with IF Functions. The problem I'm stuck on is saying to enter a formula in cell H6 that determines total cost based on the number of days the vehicle was rented and the discount indicated in B42(Discount). If the payment was Express Miles or Rewards(B42) then the customer should receive the discount.
Days rented is= E6
Daily rate is= G6
This is what I have so far.
=IF(F6="Express Miles",G6*E6(1-Discount),G6*E6)
Thanks for helping if thats enough info!
Hello,
Just a quick one.
I need some assistance with this...
=IF(F6="A", H6)
For Example
F G H
6 A =IF(F6="A", H6) Hello
7 Goodbye
I need the if command to also pick up other values too
Could someone please help me describe how writing an incorrect IF statement might produce the wrong data??
Hi!
Good day! I was trying to link the formula from one cell to another.
sample: =IF(D14=0,"Required Field","") ((This is under E14)
Formula cannot be used id created under D14.
Or are there any other formula that can produce the same answer which is "Required Field"
Your help is much appreciated.
Thank you.
Hi Jenah,
>Formula cannot be used id created under D14.
Absolutely right. You cannot enter a formula in a cell that contains other data. If you enter it in E14, the formula should work fine.
Please note that D14=0 checks D14 for 0. If you want to check for an empty cell, use D14="".
hiiiii
i want to place a specific word in all the row.but some row is having a specific word
for eg. 1 name having dr.sameer
2 name having kanti
so i want dr. in all name which is having word dr in it or not
Hi!
Good day! I am currently working on an Application Form. I don't want them to missed any required fields. Is there any formula that we can use to prevent them in missing any fields or "this is a required field" will prompt on each missed out cell.
=IF(D6=" "," ","Required Field")is not working. Help please!
Thank you!
Hi Jenah,
If you want the formula to return "Required Field" when D6 is empty, you should put it the other way round:
=IF(D6="","Required Field", "")
Hi there,
I want formula for this
if in cell A1 I write "MISC CON_Sep15_vat12"
in cell B2 i have to write VAT AMOUNT.IN other words
if THE cell A1 contains THE WORD VAT THEN only I can enter any numerical value in THE CELL B2
Please help to apply:
If A1>48, “5 Years” A1>36, “4 Years” A1>24, “3 Years”
Hi Svetlana:
My formula is: =IF(D$2>=$B$1,D3-D4-D5,0)
D2 is "Q1'17"
B1 is "Q3'16"
The result based on above formula is "0", which I know it should be the calculation based on D3-D4-D5. Would you please help correcting the formula so it can recognize that Q1'17 is greater than Q3'16.
Thank you
Hi Diana,
In all Excel formulas, you need to enclose text strings, not numbers, in double quotes, like "x".
So, here's the formula as per your conditions:
=IF(A12="X"; 0; IF(ISNUMBER(A12); 1; ""))
If A12 is neither "x" nor number, the formula will return an empty string (blank cell).
Hi Svetlana. Please heeeelp me with a formula. So, if in my table, I have X, I want the result to be "0"and if in the table appears a number, the result to be "1". I've tried:
IF(A12=X,"0";"1") but it doesn't work. It gives me NAME as result