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 16. Total comments: 656
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)
please send me the file my email id because i am able see your share file
Can we change case of text in excel without use change case formula (Uppercase, lower case, proper case)
You need a macro to do so. A function can only return a value in excel.
I can share the Macro file! Share your mail id.
By this you only need to select the range and Alt+F8.
i need help for below :
If forth character of cell A1 is C and forth character of cell b1 is C then i need reply 2 in cell C1, if forth character of cell A1 is P and forth character of cell b1 is C then i need reply 1 in cell C1, if forth character of cell A1 is P or C and forth character of cell b1 is H then i need reply 5 in cell C1, please help
Thanks
Sanjay Goyal
=IF(E18>TIME(9,10,0),"A",IF(E18>TIME(15,10,0),"A",IF(E18>TIME(21,10,0),"A","P")))
whats wrong in this formula
my calculation attendance time such as 9:10>Late, 15:10>Late, 21:10 Late,or <less then Present
plz help me formula
Hi
I wanna to add time condition with stock price
Like
Open Ltp Time
223 223 9:15
Now i need if open=ltp at 9:15 then it print good to enter else blank
as Ltp is dynamic so i wanna to capture values at 9:15 only.
Hope for early and quick response
Thanks in advance
I need to create an IF..AND formula for these conditions:
calculate the total cost of the car rental (#days * cost)
if the transaction is eligible, give a 20% discount on #days * cost
if the transaction chose to add gas,add $65
So the possible outcomes are:
days * cost only
days * cost minus discount
days * cost plus gas
days * cost minus discount plus gas.
I have been banging my head for too long. I know it needs to be nested, but...
Thank you
This formula returns #VALUE.
=IF(AND('Maint Pricing'!$B2="Flat Rate",'Monthly Calculation'!$D4="Yes"),('Maint Pricing'!$X2+'Maint Pricing'!$Q2),'Maint Pricing'!$X2), IF(AND('Maint Pricing'!$B2="Area Rate",'Monthly Calculation'!$D4="Yes"),('Maint Pricing'!$V2+'Maint Pricing'!$Q2),'Maint Pricing'!$V2)
Can someone help me with this?
Need your help with a formula.
I need to subtract the percentage of a value based on the number of items selected.
The percentages need to change based on the number of items selected.
Exeample> one item costs 10 usd.
take 1 item 0% take 2 items 15%bonus, take 3to5 items 30% bonus take 6to10 50% bonus.
I want to be able to select the number of items in a cell, and in another cell show the value according to the number of items selected.
Can someone help me?
Hello,
I'm bit confuse in applying "If" formula to my data, where I want to get data by applying specific condition;
I want data like, "If Employee X has completed any Job in Task1 then he will get XYZ Units, same way, if Employee X has completed Job in Task2 than he will get ABC Units.
So I'm bit confused what formula to use here, could you please guide me here?
Thanks,
Milan
I am trying to set up a formula were New=New, Used_Like_New=Like New, Used_Very_Good=Very Good, Used_Good=Good, & Used_Acceptable=Acceptable.
The formula I tried was =IF(AND(G2>=New), "New", "" & IF(AND(G2>=Used_Like_New), "Like New", "" & IF(AND(G2>=Used_Very_Good), "Very Good", "" & IF(AND(G2>=Used_Good), "Good ", "" & IF(AND(G2>=Used_Acceptable), "Acceptable", ""))))). I also tried =IF(AND(G2=New), "New", "" & IF(AND(G2=Used_Like_New), "Like New", "" & IF(AND(G2=Used_Very_Good), "Very Good", "" & IF(AND(G2=Used_Good), "Good ", "" & IF(AND(G2=Used_Acceptable), "Acceptable", ""))))).
I have had no luck. This is my first attempt at an If formula. Can you help me out here?
Hi Chris,
Here's the correct syntax:
=IF(G2="New", "New", IF(G2="Used_Like_New", "Like New", IF(G2="Used_Very_Good", "Very Good", IF(G2="Used_Good", "Good ", IF(G2="Used_Acceptable", "Acceptable", "")))))
Thank you!!!
Not sure why my last post didnt include my actual formula but since its not working its not a biggy :)
Hi Milli,
Our blog engine occasionally mangles formulas in comments, sorry for that.
As for your formula, please try this one:
=IF(E3="", "", IF(E3<=1989, 1, IF(E3<=2013, 2, "")))
If the list separator in your Regional Settings is set to semicolon, then it should be written like this:
=IF(E3=""; ""; IF(E3<=1989; 1; IF(E3<=2013; 2; "")))
Please note that the formula will return nothing (an empty string) if E3 is greater than 2013.
Hello!
Not sure why excel hates my If formula...
Point is- if a cell value (let's say "E3") is missing, do nothing. if it's smaller than 1989, write 1, if its between 1990 and 2013, write 2.
I wrote : if ((0>E3E3<2013);2))
but its not working :-(
Would be grateful for your advice!
M.
Hi, in column B i have date & column C other commodity and I want to calculate on basis of date can any one help.
Hi, i have one question plz guide me, i have tow columns with same values, i used if I5 is less than one get H5 value, but the result is not comimg what i want
=if(I5<1,"=H5")
Can you help me.
Thanks
I want to convert grades in marks like for A its 5 marks, B its 4 marks , C its 3 marks, D its 2 marks and for E its 1 mark. please suggest formula.
If you want to substitute the grades in the same table they are arranged in, use Find and Replace.
However, if you want to transfer the converted data to another table, try entering this simple formula:
=70-code(A2)
where A2 is the cell with the grade.
Sir/Madam,
I want to format a account sheet in excel. Here I need to make a account of around 25 projects. Here I create 3 columns (let’s say R1, R2,R3) only for project code, amount and the respective project’s balance amount.
Means, firstly I will enter the project code let’s say AB01, next column I will enter the amount to be updated and last, the total balance amount must updated automatically in the last column. [r3 should update automatically]. I,e when I enter the project code, R3 should go to the cell where current balance entered of that particular project.
If possible with anyone, can you give me the VB in excel, also the formulae code( =xxxxx, Rxx)
R1 R2 R3
ABO1 140 2200
AB01 100 2100
AB02 100 1340
AB02 200 1140
ABO2 140 1000
AB01 100 2000
AB02 100 900
Thanks in advance.
Hi,
I have this problem with my syntax, after hit 'enter' button, no error pops up, but then, the excel only operate my 3 first condition, the remaining condition were disregard (I assumed). any chance anyone can correct my syntax?
=IF(Q12="Done","No Action Require",IF(Q12<-5,"-5,"=-3,"0,"Due","")))))
Thanks.
=IF(Q12="Done","No Action Require",IF(Q12<-5,"-5,"=-3,"0,"Due","")))))
I have already copy and paste my syntax, but when it posted, it does not show the full syntax?
Hi there can you help me with please one?
how to make a formula with this
If A2 is 0-1= Current
A2 is 1.1-2= curring
A2 is 2.1-3= mid-range
A2 is 3.1-4= delinquent
A2 is 4.1 above= recovery
Thanks in advance
Guys I have a problem to solve as follows:
Column A is weight as 1,2, 3..n & column B is rate as €1, 2,3.
To look for a value upto 25 kg I can use vlookup. But the problem is above 25 kg the rate is calculated as follows: upto 25 kg €100 and for next 20 kg € 2 per kg and for next 40 or more €4 per kg. I want a formula by which entering a particular weight in a cell the total rate is found. Please help me with this. TIA
18.49,18.50,18.51,19.00,18.54,18.52,19.00,18.52,18.53,18.59,18.57,18.57, 18.53,18.53,19.01,18.51,18.56,18.49,18.49,18.53,18.49,18.50
I can find duplicate values but cant replace it with another value.
can u pls help me on this
or better yet lets put it this way:
"if a1=1 and b1=6 then 7 otherwise 14 and if a1=1 and b1=7 then 8 otherwise 16 and if a1=1 and b1=8 then 9 otherwise 18."
this is the formula that I'm trying to use:
=if((and(a1=1,b1=6)),”7”,”14”),if((and(a1=1,b1=7)),”8”,”16”),if((and(a1=1,b1=8)),”9”,18”)))
Hi, I need help in making multiple arguments using if function. I would like to make something like this IF(A1=6 AND B2=SS THEN 7 OTHERWISE 14, AND IF A1=7 AND B2=SS THEN 8 OTHERWISE 16 AND IF A1=8 AND B2=SS THEN 9 OTHERWISE 18)
=IF(D3<VALUE("0:05"),0,IF(D3<VALUE("0:15"),1,IF(D3<VALUE("0:30"),2,IF(D3<VALUE("0:60"),3,IF(D3<VALUE("4:00"),4,15)))))
I have tried the above formula and got the following:
Assign Points Based on Late Time
Start Actual Late By Late Points
8:00:00 AM 7:55:00 AM 0:05 15.00
8:00:00 AM 8:05:00 AM 0:05 15.00
8:00:00 AM 8:07:00 AM 0:07 15.00
8:00:00 AM 8:35:00 AM 0:35 15.00
8:00:00 AM 9:35:00 AM 1:35 15.00
8:00:00 AM 12:15:00 PM 4:15 15.00
8:00:00 AM 2:45:00 PM 6:45 15.00
8:00:00 AM 10:00:00 AM 2:00 15.00
8:00:00 AM 9:20:00 AM 1:20 15.00
8:00:00 AM 7:45:00 AM 0:15 15.00
8:00:00 AM 12:20:00 PM 4:20 15.00
8:00:00 AM 7:15:00 AM 0:45 15.00
what is wrong with this?
Hi
I have 1,2,3,4,5 numbers in 5 different cells and i need to put one number in cell at one time, if i put 2 different number i need to mark with message, pls help me in this regard
HI...
Need help for..
If some value has decimal number then I need the next round number.
i.e:- 1.2=2 (1.2 should be shown me by rounding up 2)
4.9=5 (4.9 should be shown me by rounding up 5)
Thanks in advance....
Hi,
try using ROUNDUP function:
for example, if A1 contains '1.2':
=ROUNDUP(A1,0)
hi, if statement e value 0.61 same cell tee value 1.58 below mentioned formula false showing =IF(K91="E",IF(L91=25,0.61,IF(K91="T",IF(L91="25",1.58))))
How to add calendar date and time in excel pzl help me
i want time calculate help as iam not able to get exact time
Hi, post cut off. Here is the formula I am trying to fix.
=IF(and(P2>=60,=98,=123,=148,=175,<=198),"Varsity")))))
Thanks!
Hi, came across this great resource and got partly through problem but not all the way. Trying to find a value based on multiple conditions in a chart.
Here is what I have so far.
=IF(and(P2>=60,=98,=123,=148,=175,<=198),"Varsity")))))
Basically looking at a cell value and determining which group if fits in. based on the value input. The input values could be anything between 60 to 200.
Thank-you!
Hi, Tim,
if you want to return 'Varsity' when the number in the cell falls between 60-200, you can try this:
=IF(AND(P2>=60, P2<=200), "Varsity", "")
If not, please send us a sample workbook with your data and the result you expect to get to support@ablebits.com. Also, mention this article and your comment.
I am trying to get actual budget variance percentage but with an if statement. If actual amount is less than budget then do budget amount minus flex amount divided budget amount and if actual amount is greater than budget amount then do flex amount minus budget amount then divided budget amount. hope this makes sense.
thank you.
Hi, Erly,
Assuming thatC1,(B1-C1)/C1,""))
A1 – actual amount, B1 – flex amount, C1 – budget, and you want to see the result in E1, type the next formula into E1:
=IF(A1
Note, that it misses the condition when the actual amount is equal to budget amount, and in this case the function leaves the cell blank.
Hi,
I want formula that can identify a first 3 or 4 numbers and automatically associate them with location. e.g
809 to Scotland
779 to London
If I put a customer order numbers in Column A : It should automatically show their location in column B by identifying 1st 3 numbers
Column A Column B
8095625 Scotland
8096524 Scotland
7796532 London
8096524 Scotland
Conditions with Multiple Cells, is there a way to clean this up a bit. I'm new to Excel and used your concept to create this monstrosity.
=IF(IF(H352=J352,(IF(J352=L352,(IF(L352=N352,"Valid","Invalid")),"Invalid")),"Invalid")="Not In SAP","Invalid","Valid")
The concept is using 4 cells that have returned a specific value and if they have all returned a specific value and are all the same = "Valid", if one cells is different than the rest = "Invalid".
Thank you
I need to write a "what if" statement for a column that has both numbers & text. For example 79953A, 81012B, 85023C
I want the numbers ending with A to read A Crew in a new column, B to read B Crew and C Crew.
Can I do a "what if" statement to figure out how many A's, B's & C's?
Any information you can give me would be greatly appreciated. Thank you.
Hi, Felicia,
you can try the following:
if your data starts in A1, then to return "A/B/C Crew" to B column use the formula below:
=IF(RIGHT(A1,1)="A", "A Crew", IF(RIGHT(A1,1)="B", "B Crew", IF(RIGHT(A1,1)="C", "C Crew", "")))
To count their amount use COUNTIF in column C:
=COUNTIF(B:B,"A Crew")
where B:B is a column with returned values and "A Crew" counts A appearances. To count "B Crew" and "C Crew" copy and change COUNTIF formula respectively.
if formula with 3 conditions
1- Below Rs,15000 - Rs 0/-
2- 15001 TO 19999 - Rs.150/-
3- Rs20000 - Rs.200/-
Hi there! I'm not sure if this is the correct formula for what I need, but I need a formula that will return a number based on text conditions. For example, if cell A1 reads "Y" or "N/A" I would like the formula to return a 0 value in cell B1. If neither of those conditions are true, I would like B1 to return the numerical value of cell C1.
For context, I am using this to calculate how much use tax I owe. If I paid sales tax on an item or the transaction was not subject to sales tax, then I do not owe additional use tax on it. However, if I did not pay sales tax on the item, I now owe use tax on the full amount of the transaction.
Thanks!
Hi Christina,
You can use the following formula for B1:
=IF(OR(A1="Y", A1="N/A"), 0, C1)
hello,
thank you for all of the input on this site. Very helpful. I am trying to analyze a series of cells and determine the average of those cells. There are only (4) cells in total, but they only show a value higher than zero once a full week has been completed.
i.e.
cell b34 week 1 65%
cell b97 week 2 45%
cell b160 week 3 0% (week not completed yet)
cell b223 week 4 0%,(week not completed yet)
this statement will not work due to too many arguments, but this is what i'd like to achieve.
=IF(B97>0,AVERAGE(B34,B97),B34,IF(B160>0,(AVERAGE(B34,B97,B160)),AVERAGE(B34,B97),IF(B223>0,(AVERAGE(B34,B97,B160,B223,B34)),AVERAGE(B34,B97,B160)))))
Anytime it sees a zero value, skip the rest of the weeks and only use the weeks with % already calculated as part of the monthly average. The trouble i'm having is that if I use a nested if statement, it seems to only function when referencing a single cell. does anyone have any suggestions please?
Hi, i have the following task: This sheet lists items of clothing and accessories, whether or not it is on clearance, and whether or not it is on sale. Items with a “Sales Discount” greater than zero are “on sale”. Items that are both on clearance and on sale get a total discount of 50%. Otherwise, the sale discount is the total discount. Have Excel calculate the total discount for each item.
The data provided for this is:
Clearance Sale Discount
yes 25%
yes 10%
no 10%
no 0%
no 0%
yes 15%
no 5%
yes 0%
no 20%
yes 5%
I need a formula that will provide an answer in % in a 3rd column. I believe it should show either 0%, 50% or the percent in the Sale Discount column. The answer has to take into consideration 4 criteria:
1. Clearance "yes", Sale Discount >0%
2. Clearance "yes", Sale Discount =0%
3. Clearance "no", Sale Discount >0%
4. Clearance "no", Sale Discount =0%
I'm struggling with the IF function as i keep getting errors, or not displaying a %. I'm also struggling with criteria #3, how to make the Sale Discount % appear in column 3.
Can you please help me?
solve my this problam IF TIME IS GRATER THEN AND LESS THEN
=IF(D14-B14>TIME(6,0,0),IF(D5>=10000,"120/-250/-",IF(D5>=6600,"96/-200/-",IF(D5>=5000,"84/-180/-",IF(D5>=3000,"72/-160/-",IF(D5>=1300,"60/-130/-",IF(D14-B14=10000,"250",IF(D5>=6600,"200",IF(D5>=5000,"180",IF(D5>=3000,"160",IF(D5>=1300,"130"))))))))))))
=IF(AND(G4="A",G5="Below 75"),C4*1.708%,IF(AND(G4="A",G5="76-150"),C4*1.708%),IF(AND(G4="A",G5="151-350"),C4*1.793%))
This formula showing "Too many Arguments"
Plz help