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 108. Total comments: 4830
Hi Dear,
I have 150416060006003 number. Its are come from ERP soft.
this is dtmsid but i want like this (4/16/2015 8:58:36 PM)
can you help me
hi,
I tried this a few times but can't get excel to understand what I need. Is it even possible?
1 = < 90% 2 = 90% to 97.9% 3 = 98% to 104.9% 4 = 105% to 110% 5 = 110% & above
I want to get the number 1-5 as results from the percentages value.
Thanks
IN EXCEL SHEET THERE IS A CELL A1,B1,C1,D1,.....
IN CELL A1 IS 50
IN CELL B1 IS 50,
IN CELL C1 IS A1+B1
IN CELL D1,IF THERE IS OPTION LIKE YES OR NO,IF I PUT YES IN CELL D1 THE VALUE OF C1 SHOULD SHOW,IF I PUT NO IN CELL D1 THE VALUE OF C1 SHOULD NOT SHOW.
CELL D1 SHOULD OPERATE CELL C1.
PLEASE GIVE ME THE FORMULA FOT THIS.
Type this in C1:
=IF(D1="YES",A1+B1,"") -> This way, anything other than "yes" in D1, will not show anything.
If you want something else to show in case theres neither "yes" or "no" in cell D1, let me know because you'll need a nested IF formula.
THANK YOU
BUT FOR ADDING THIS IS OK, BUT IF I NEED TO MULIPLE OR SUBRACT
WHAT I SHOULD DO
FOR EG:IN C1 =A1/50*B1
WHAT SHOULD I DO
SALMAN,
Just replace A1+B1 in the formula with any other calculation you want, e.g.:
=IF(D1="YES", A1/50*B1,"")
If I enter cell A1 date C1 should calculate and show number of days pending, if enter date in B1, C1 should show message completed, if A and B1 empty C3 show Don't worry massage.
Hi Manju,
> If I enter cell A1 date C1 should calculate and show number of days pending
How exactly shall the formula calculate the number of days pending? Is it a difference between the date in A1 and today's date? Shall it be a past or future date, or either?
I need to know the formula if you enter value ex. in cell b2 and the output in b3 will be the date today
Henry,
Our blog engine has problems with < and > symbols, sorry for this.
Nana,
Here's the complete formula:
=IF(B2<>"", TODAY(), "")
Thank you! lol
THANKS SVETLANA
Put this in B3:
=IF(B2"",TODAY(),"")
For some reason the formula above didnt show up correctly, but between B2 and "" you got to include
OMG it isn't showing lol
you got to include the "not equal" sign
THANKS HENRY HELPS A LOT..... :)
Hi,
I need to make cell 'BLANK' if data less than 0.
I work on daily precipitation data, if precipitation value for day j is missing the value equal to (-999), for this I want cell becomes empty for all the data below zero.
thank you in advance for any help you provide.
You have to open Excel Options, Formulas, and Enable Iterative Calculations.
then you put in the cell you want to make blank if below zero (for instance A1).
=IF(A1<0,"",A1)
Hi Svetlana,
I have cells date formatted to record dates of meetings. Is it possible to have a default text message in each cell 'No Meeting' until a date is entered.
Otherwise, could I solve this with a drop box which gives a choice of Enter Date or No Meeting. If I use this, is it possible to date format the cell.
Hai Svetlana Cheusheva
Rupees value
a1 = no.of student represent
b1 = no. of students present
i want the result b1<=5 then value is result 75 (rs) if it is greater than the value b1X10 now i want the formula to get 0 if the value is zero if i want result zero
Hi!
I am not sure if this IF function can do this in excel, but i'm looking to if the IF function evaluate a column of values for a blank entry, or a null value, then i'd like to output the names of those values in a different sheet.
Example:
Supplier Status Paid
---------------------------
Bob Delivered X
John Delivered
Mary Delivered X
I'd like to read the paid column for a blank value, then on another sheet, output all supplier names who haven't been paid. Am I attempting to do something too difficult?
Thanks for all your help!
I am using excel 2007.
I have data created every half hour entered in column A starting at 00h 30m
Column B has nothing in it until 24 hrs has elapsed (00h 00m)then has day "1" displayed in B48.
C48 has the sum of data for that day only.
D48 has the sum of data between the hours of 8am and 5pm only.
Columns B,C, and D have nothing in them until row 48 (end of day).
I wish to graph the day end results only and my problem is I have 12 months of data in column A.
My problem is I wish to plot a chart showing the single end of day results only ie just the 365 values in each column every 48 rows down for 17,520 rows (365 days x 48/day).
How do I avoid plotting the null values in the rows in columns B,C, and D where the intraday data in column A is located. I have been trying to do this by creating another sheet and manually referring to each "day number" row for 365 days and then copying cells sideways but got tired of this after about 12 days. There must be an easier way.
Can someone please help - I don't know VBA
Hi i want in one raw if value <3 then give me value 0 if <2 then give me 1 and if <1 then give me 2 and if blank give me 3 in one formula so that i can drag same formula in entire excel sheet
Hi Dhirendar,
You can use nested If functions as follows:
=IF(A1="", 3, IF(A1<1,2, IF(A1<2,1, IF(A1<3,0,""))))
Trying to build a formula where one sheet one there would be a list of colors. On the next sheet would be columns for people to guess a color; however once they guess a color I do not want them to be able to guess that color again. Is there a formula that can compute that.
Trying to build a formula for:
Row 1 - 200
Column A measurement
Column B alpha size.
I want to show: if A1 is 38<41.5 show s; 42<44 show m; 44.5,47 show l
Then I can do countif(1:200,"s") etc
I then want to cross-check:
count in column A all cells that have measurement 38<41.5
Hi ,
I am trying to create a formula if the sale days are less than 100 to take the name of the sale item
Can you send me a screenshot of it so I have a better idea of how your table is set up?
Hello,
I am trying to create a formula for:
CellA: $amount CellB: Store Number
How can I make all cells with the same store number to add up as the amount is
being inputted into the table.
Thank you please help
I'm not sure I completely understand your question
ydi mujhe suppose mujhe if condition lagane par coloumn me likhe name chahiye to syntax kya dena hoga
Hello,
I would like to write a formula to give me alarm by changing the cell to red color and the formula is about the following:
If the amount in Cell (AE300) is bigger than zero and the date is 30 days before the date in cell (G300), then change the cell (AE300) color into red.
Thanks in advance.
What cell are you taking the first date value from, to compare to the date in G300?
Desired Date: Accomplished date: Result
15-Nov-15 15-Nov-15 or Lower dates Achieved
15-Nov-15 16-Nov-15 Failed
15-Nov-15 Not Accomplish
Anyone can help? My problem was the blank space; I can’t formulate the blank space. The output was on the right side. Please help me to solve this.
basically i do not want have a value over 1, if it comes out over i want it to be 1. if it is under then whatever the number is fine.
=IF((C6/D6)>=1,1,(C6/D6))
I am wanting to put in a formula that I keep getting an error message. This is the basic idea though. IF(C6/d6)>=1,if true = 1, if false use c6/d6. Can somone help me with the formula
Hi Svetlana
Imam kolona B so brojki od pravecot na veterot( vo stepeni) od 0 do 360. Vo kolona C treba namesto brojki da stoi samo znak so strana na svetot ( I,Z,S,J,SI,SZ,JI,JZ). Probav so slednata formula ama nekade gresam.
IF(OR(B2>=337;B2=23;B2=68;B2=113;B2=158;B2=203;B2=248;B2=293;B2<=336);"NW"))))))))
Molam za pomos. Fala odnapred.
I have a column B with numbers of wind direction (deg) from 0 to 360.In column C How to change number to data ex: if wind direction is 0 = N, 46=NE,....
=IF(OR(B2>=337;B2=23;B2=68;B2=113;B2=158;B2=203;B2=248;B2=293;B2<=336);"NW"))))))))
hello sevena, i can not use IF function for the rate of percent.how to use it on the excel program. for example: how to find the rate of 88% (percent). =IF and what i should write something then
Hi,
i want to use the function to write a value in another cell whether the result is true or false.
For example: if cell (A1+A2)>3; true: A3=4; false: A3=0
Is it possible or it is with another function?
Thanks in advance!
If you want the cell A3 to always display 4 in case its true, the formula would be:
IF((A1+A2)>3,4,0)
Now, if you want the cell A3 to display the result of A1+A2, then the formula would be:
IF((A1+A2)>3,(A1+A2),0)
Hi,
So I have two tables. Table 2 is named "Servers" has two columns. One column with a list of databases and the column next to it with the list of servers those databases are located on. Table 1 is for data entry. I want the cells in Table 1 to auto populate the associated server name when the database name is input.
I'm an excel noob I'm sorry.
=IF(H72=(*a specific value found somewhere in column C in table "servers",*the value in the column B in the same table, *if no value exists remain blank))
I hope you understand.
Nevermind I found it!
=INDEX(Servers!A:A,MATCH(H64,Servers!C:C,0))
I'm using IF statement to compare due date with today's date to provide a priority number on my task worksheet. However I want to add to this formula by showing "Completed" if the task is done. This is the formula I am currently using =IF(C9<8,1,IF(C9<15,2,IF(C930,4)))) where C9 has an updated number of days left before due date. How can I insert "Completed" into this from my status cell G9? Please let me know if I need to clarify more.
Alright so I have this formula I'm working on:
{=IF('[Jobs Bills & Due Dates.xlsx]Billing'!$B$20:$I$28"",IF(((LEFT('[Jobs Bills & Due Dates.xlsx]Billing'!$B$20:$I$28,10)+45)-TODAY())>30, SUM(IFERROR(SUBSTITUTE('[Jobs Bills & Due Dates.xlsx]Billing'!$B$20:$I$28,LEFT('[Jobs Bills & Due Dates.xlsx]Billing'!$B$20:$I$28,14),"")*1,0)),),)}
It involves the values of an array form another Worksheet.
In each cell of the given array, the values we input are always "10-characters long date(i.e. 12/10/2015), "space dash space", "$(money symbol)" and the amount for that bill". (ie. 12/10/2015 - $1000)
On that formula, I want to add all the money values (hence the whole IFERROR formula) that have the "due date" above 30 days left (hence the +45 - TODAY() formula).
But right now it's returning a value of 0.
Please help?!
i have many cell and all have different values like 33.3,35.8,ets.
i want that in the lower cell of all those cell to be written as available or not available.
If( C8=35.8, C8=33.3, ......, "avail")
Need help if(A1="number","Yes",if(A1="text","No","wrong"))
Thanx your support
I need a formula...This is what I tried (I have also tried adding "and" and "or" in there, but keep getting a False....I'm Stuck!
=IF(B2="Male", IF(B6="Very",X20,IF(B2="Female",IF(B6="Very",X14,IF(B2="Male", IF(B6="Light",X18,IF(B2="Female",IF(B6="Light",X12))))))))
I have a drop down list in B2 (Female, Male)
I also have a drop down list in B6 (Light, Very)
I have numbers for a male light and male active (X18, X20) and female light and female active (X12, X14).
In Cell C2, I want it to populate the number from X18 if I choose Male, Light....or populate the number from X12 if I chose Female Light. I can get it to work separately (selecting Male, Light - I will get the correct number, however if I select Female, Light - I will get a "false"). Any help would be greatly appreciated.
hi team,
how can I get the total number of "yes" and "no" in excel sheet ?
For eg:- I have used Column B3 to B35, this can be Yes and No according to jobs closed.
Hello Kullan,
You can use the following COUNTIF formulas:
=COUNTIF(B3:B35, "yes")
=COUNTIF(B3:B35, "no")
i need a formula for finding same/duplicate nums in a column
Hi everybody,
I'm working on science project concerning development of some drug formulation, we created an excel sheet where each formula is in new tab and each tab contains table with the following row names (Ingredients & qty). Also, there is a tab which we sum all those formulas together. the problem is we may insert or delete ingredients and we want to write an "IF" function (for example Tab1 Cell A1 = Cell A1 in Tab2 and if not equal insert new row containing new data.
thanks
Hello can you please help me.
I have a bunch of sections (100,101,102...) and dollar amount for those section it is sorted by date so the sections repeat constanly and I need to get all the totals for each section.
On this case Column A is the section(100), column B is the dollar amount for that section. there are multiple columns for section 100 how do I add them without having to do =IF(A1="100",B1,0)+IF(A3="100",B3,0)...
=IF(A1="100",B1,0)
=COUNTIF(A1:A16,"100")
I think it might be a combination of the two but with B1:B16.
Please help
Thank you
I am working on a project for me. I am currently copying specific fields from one sheet to another. But, I want the copy to be based on a past date. How do I go about doing that. So, I am think if Sheets1 (H2:H10) <Now then copy.
I am using a macro do all the copying..
A B C D E
1 yes 20 20 C1 =IF(A1=YES,B1)
2 no 20
3 yes 10
4 yes 8
5 yes 15
6 no 10
All yes total = How do I add all yes responses value of B to total?
I need to add all of the values for response yes to a total cell.
Please help
Hi,
Is it possible to return the values in specified cells when the condition is met. Please advise.
Thanks in advance
Hi,
I have been trying to use an IF formula to search whether a supplier is VAT registered or not where an equation would be done if True and if FALSE there would be a result of 0. All VAT registered suppliers have VAT alongside name.
=IF((SEARCH("VAT",J15,1)),(K15/6),0)
Used this equation and if TRUE it seems to work however if FALSE a "#VALUE" error shows.
Any idea whats going wrong.
If A1<=26 and b1<=270 than i should get 100%
and
if A1<=24 and b1<=250 than i should get 90%
which formula i should use?
Hi I am new to excel.
I would like to have a formula for USA taxation related works.
I have three types of taxations based on pay.
Less than $30/h the tax is 17.00%
$30 – $49.99/h the tax is 15.50%
$50 and Greater/h the tax is 14.85%
I would like to include all the above in one cell through if function or any suitable function.
Kindly give me a solution.
Best Regards,
Harish.
Hello,
I have a spreadsheet layout as follows:
Inv date
Hi I run a works lotto syndicate and I would like my winnings spreadsheet to add up the number of wins to total the amount in money ie Cell A1 is 1 win the total cell I1 is £3, the next week A1 is 2 wins so I1 = £6 and so on, is this possible?
Thank you
Michael
Hi all,
In the cells of column C I'd like to get the following numbers, based on the numbers in the cells of column B:
Bx = 0-14 -> Cx= 0; Bx = 15-30 -> Cx = 1; Bx = 30-60 -> Cx = 2; Bx > 60 -> Cx = 3
I used the following formula in the cells of column C:
=IF(B2>=60,3,IF=(B2>=30,2,IF=(B2>=15,1,0)))
However, Excel does not recognise the final 'B2' as a cell in the formula (e.g. it does not get coloured and it returns a message that there is an error in the formula).
Could you please tell me what I'm doing wrong?
Thanks in advance!
Hi
I have a problem in DVI/o, How I can remove this error from Excel. the formula is ('S'!C2-'Dry-Phase'!C2)/('Sat-Phase'!C2-'Dry-Phase'!C2. How I can use IF formula to eliminate this error and used o instead of it?
hey i need help for this, im making kind of a game in excel, like rock paper scissors and i need help.i have put in result if function and all is done but if i input something other than "scissors" "rock"or"paper" ,says false,so i put in if(...,"you win",c3"doesnt exist") /c3 is cell where i put user choice and i need help if it is possible to write whatever is written in user choice + "doesnt exist.".Example:
C D E
3 User choice Result
4 Dog Dog doesnt exit! /so c3+"doesnt exit"
if anyone knows please help, only that i need to finish
Hi, I've looked through and couldn't find the answer to my particular question.
I have four columns with 0/1/blank in them. Based on if they have 1 in it I'd like my new column to say International", Regional, National... HOWEVER, some countries have 1 in more than one column.
This is what I've got so far, which is OK if they have one answer, but how do I get to an answer like, "International, National"?
=IF(CB5=1,"International",IF(CC5=1,"Regional",IF(CD5=1,"National",IF(CE5=1,"Intermediate"))))
Many thanks in advance
J
i need the person to make 10.19, but if he does how can i get the IF function to work ?
i want to know the below formula :
if value is 10000>="200" and 10000< value "150"
kindly show the formula with"and"...
Hello
I Hope you can help me with this,
I want to create a formula where I can say this cell is = to a cell in another sheet, but if its blank, leave it blank, otherwise place the information
example
=IF(MASTER!D60,"","???") WHAT I WANT IS TO SAY THAT THIS CELL IS = TO THE OTHER CELL AND IF THE CELL IS BLANK, LEAVE IT BLANK DONT PLACE ANY NUMBER OR FORMULA OR ANYTHING
thank you in advance
if i got it right, i think it goes like this:
=if(D60="","",D60)
/this says if the cell d60 is empty(""),leave it empty(""),and if not input the text from it here.
Good Day
Thanks for the above answer
if i got it right, i think it goes like this:
=if(D60="","",D60)
/this says if the cell d60 is empty(""),leave it empty(""),and if not input the text from it here.
So I have a situation whereby I have 4 columns (A,B,C,D), I have information in either of the columns. I want the information to be populated in column E.
I found the above if function don't work for multiple column ranges or maybe I just get it wrong. Please assist
Need an IF THEN formula that covers multiple worksheets for a Quote template that users will be entering part numbers in to return certain prices.
SHEETS - 1.Intro - where promo code is selected from drop down cell,2.Pricing - where the user enters the part number and the desc & price auto-populates, 3. - Data Sheet)
I want the formula to look at a cell in the Intro Sheet and IF it contains data (a promo code) THEN return the price associated with the part number, If there the promo Code cell is empty then return the non-discounted price.
In my data sheet I have columns that contain part numbers and non-disc price and columns that have the promo code, part number and price associated with that code.
Easy right?
Basically If PROMO CODE is entered THEN apply promo pricing for material entered IF not THEN use normal pricing for material entered.