Many tasks you perform in Excel involve comparing data in different cells. For this, Microsoft Excel provides six logical operators, which are also called comparison operators. This tutorial aims to help you understand the insight of Excel logical operators and write the most efficient formulas for your data analysis. Continue reading
Comments page 23. Total comments: 1256
Hi if I want a cell to display zero or - if the value is equal to or less than lets say 150, how do I do that?
If the numerical value of G4 is between 0-30,then in cell I4,it should show the value of D4,or 0.How to put the formula in I4.
Thanks
Hi i have the follwoing excel exercise and i need assistance;
1.Number Student passes B5=40,B6=25,B7=32,B8=48
2.Life guards allocations are as follows;
Student pass ranges: 0-30 = 2 life guards, 31-60= 4 life guards,61-90= 6 life guards,150+ = 12 life guards
Assume the Number of Lifeguards needed in a day depends on the number of Student passes for that day as given above. Use an appropriate formula to determine the expected number of lifeguards for each day to go into a separate column called Number of lifeguards. Hint: Vlookup formula.
Please provide the Vlookup formula or some formula i can use in my excel.Thanks a lot in advance.
----------------------- | Student |No of life|
|Number of | Guards| |pass range| guards |
|student passes| | ----------------------
-----------------------| | 0-30 | 2 |
| 40 | ? | | 31-60 | 4 |
| 25 | ? | | 91-120 | 6 |
| 32 | ? | | 150+ | 8 |
| 98 | ? | | | |
Table 2:
Hi please assist;
i have the following question pertaining to the above;
Assume the Number of Lifeguards needed in a day depends on the number of Student passes for that day as given in Table 2 above. Use an appropriate formula to determine the expected number of lifeguards for each day to go into Column G. Hint: Vlookup formula.
Please provide the Vlookup formula i can use in my excel.Thanks a lot in advance.
I have 6 columns in Excel (A, B, C, D, E, F). In column A and B containing source of number. And in column C,D,E,F i want formula that comparing column A and B that is containing smaller number,Can you help me please?
A B C D E F
"Permissible
10% payable "Permissible
5% payable
1963 -651.291 0 0 98.15 553.141
1963 -449.040 0 0 98.15 350.89
1963 -336.882 0 0 98.15 238.732
1963 144.131 144.131 0 0 0
1963 467.218 196.300 270.92 0 0
1963 888.713 196.300 692.41 0 0
1963 830.873 196.300 634.57 0 0
1963 824.150 196.300 627.85 0 0
1963 762.288 196.300 565.99 0 0
1963 698.961 196.300 502.66 0 0
a*10%(Positive) (B-C) prositive a*5%(Negitive) (B-E) Negitive
Hi,
I have 3 columns in Excel (A, B and C). In column A and B containing number. And in column C i want formula that comparing column A and B that is containing smaller number and then stating in what column that smaller number. Can you help me please?
A | B | C
------------
3 | 2 | .....
Good afternoon!
I have two columns (M & N) containing dollars. I need to compare the two columns and highlight at least one of them when the difference between the two columns is greater than 25%. Can you please help with a formula for this?
Thanks!
Hello I have a condition where SLA will b written as Meet o Not Meet
And i wan a formula where i can get 95% automatically if that cell contains Meet and 0% if Not meet...
Do we have any way to make e happen?
Hi,
If a cell is having some text & some country name then how can i get only country names in a second cell. I know the exact spell of the country name.
Hello Vaibhav,
The formula depends on your data pattern. For example, i.e. all cells contain some text, followed by a single space, followed by a country name (like text USA, then you can use the following formula:
=RIGHT(A1,LEN(A1)-LEN(LEFT(A1,FIND(" ",A1))))
If your data has some other pattern, please provide a few examples, and we will try to work out a proper formula.
Hi Svetlana;
i have the following excel exercise and i need your assistance;
1.Number Student passes B5=40,B6=25,B7=32,B8=48
2.Life guards allocations are as follows;
Student pass ranges: 0-30 = 2 life guards, 31-60= 4 life guards,61-90= 6 life guards,150+ = 12 life guards
Assume the Number of Lifeguards needed in a day depends on the number of Student passes for that day as given above. Use an appropriate formula to determine the expected number of lifeguards for each day to go into a separate column called Number of lifeguards. Hint: Vlookup formula.
Please provide the Vlookup formula or some formula i can use in my excel.Thanks a lot in advance.
Hi, comparision of more than 2 value, with shows lowest value as L1, 2nd lowest as L2 & as so on. e.g.
A B C D
25000 35000 24000 38000
A L1 24000
B L2 25000
C L3 35000
D L4 38000
Hi. Is it possible for the value of cell a2 to equal 1 if the value of cell a1 is greater than zero but less than or equal to 50 and the same cell (a2) to equal 2 if the value of cell a1 is greater than 50 but less than or equal to 250, and so on? Thanks
I need help on comparing two dates and giving a value. I am currently using =IF(AND(N2>=$B2,N2<=$C2),"1H","1E") where N2(a date) has to be greater that equal to and less than equal to dates B2 and C2.
Please help!
If Cells have a number >0 i want to equal today's date...is that possible?
For example:-
Apr May Jun Jul short / Excess
100 0 100 100 -120
If manual are doing then come the below value
Apr May Jun Jul
100 0 80 0
I have above sheet in excel i want to use the formula in another column
can you please provide the correct formula for using in that sheet
also i have 12/13 column for the same, so please help and resolve
Hi All,
I had a question about whether it is possible to create an If-Then formula if the value has a "<" sign in it? What I would like is any value with a "<" to be be rid of the "<" and divided in half. For example, if the cell has "<0.05", I would like it to be "0.025". I'm dealing with values below detection limits and have a lot of them and would like to be able to do this for all 2000 cells! Any advice would be great. Thanks!
can you create a formula in order to find the difference between 2 cells with only subtracting whatever is above a certain limit for once cell?
Ex: cell 1 is 4500. Cell 2 is 1320. I want to subtract anything above 1000 (in this case it would be 320). is this possible to make a standard formula to subtract any limit that goes over 1000?
Thanks!
I need help, I have a formula that I need to figure is out - it goes like this:
If cell B7 is 90%-94.99% then B11 should be multiplied by .25%, if cell B7 is 95%-99.99% then B11 should be multiplied by .5%, or if B7 is 100% or greater then B11 should be multiplied by .75%
How do I write this formula?
How can I make a cell blank if the succeeding date would be of the next month on an auto-compute date cell?
Example: Last cell id February 29, 2016, the next row cell would contain March 1, 2016, and I would like to automatically make the cell for march 1 blank? What would be the formula for the March 1 cell?
Thank you.
I've been working on this problem for two days now, and I can't seem to be able to solve this problem; enter a formula in B8 to return a value of 15% if the cell B6 is greater or equal to 20,000 or 3% if it is not. What formula can I use to solve this?
Dear Svetlana,
I am trying to check the task type and if it is Admin, I want to calculate and return the rate as the number of hours multiplied by 5 and if it is not (for other tasks) I want to multiply the number of hours by 6 and return it as the rate. I wrote the following formula, by excel calls it an error:
=if(C12=''General_Admin'', E12*5, E12*6)
Could you please let me know what is the mistake I have made?
Thank You in anticipation!
I wrote this formula =IF(OR(F2>=3,F2<=17),H34*E34,0) I am trying to get H34*E34 to calculate if F2 is between 3 and 17 and if not to put 0 in the cell. What did I do wrong?
I want to get a value greater than or equal to certain CELL VALUE from a column in form of a numeric value as added already in that cell of a column.
Ex:
A B C
1 456 250 Want a only 1st value greater than 250 from A in no ?
2 789
3 121
4 89
Hi,
I am trying to use the IF function to validate a number in a cell which is a calculated field. Example:
Function within G2 field: =E2-F2
If function: =IF(G2=0,"VALID","INVALID").
For some reason this IF function is returning VALID no matter what the calculated value in cell G2 is.
Additionally, the E2 and F2 fields are calculated (but working correctly), one is a VLOOKUP function returning a number, and the other returns a number based on a mathematical calculation.
Can you please help?
Hi Svetlana,
Can you please help in creating a formula as below:
suppose 154 days, a formula to classify 0-60, 61-120, 121-180, 181-360.
I'm unable to create the formula =If(154>60,61120,121180,181360,"<60","61-120","121-180","181-360")
it should be 154days 121-180
Thanks
Hello,
I have rows of numbers, some negative some positive. I need a formula to count the value of only the negative cells and sum them up at the end of the row. Please help -thank you
Have the >= and =0.93,"A",=90,"A-",=87,"B+",= 83, "B",=80,"B-",=77,"C+",=73,"C",=72, "C-", <70,"YOU FAILED")
It's for a grade calculator, in which E24 is the grade as calculated by points earned divided by possible points. Anyone see my error? Psyched about this new SWITCH function.
Okay, that didn't post right...What I meant is have the = functions been incorporated into the SWITCH function yet? That formula is NOT what I had. It was a lot more complicated than that and had a lot of operators in it. Oh, well! Cest la Vie!
I want to return a True or False answer if Week 4 team selection has already been selected in another Week.
Week 1 Week 2 Week 3 Week 4 Week 5
Liverpool Arsenal Arsenal Liverpool
hello
I need help with a formula please:
I use a formula to calculate how much I pay for an item, that is: =(91.2/2)*2*b12*4.3. Depending on what the figure in b12 is the sum can be very high and I want to cap the result at a dollar figure of 1200. What can I use to show a result of 1200 if the sum of the formula exceeds 1200?
How to find the text greater than 40 char.
Like:-
Shop No 01 Shree Shankar Sadan Chawdi Naka, Samelpada, Nallasopara (w) Mumbai
I want to split it into two cells first 40 char in one cell and greater than 40 in another cell.
what is the formula for "condition if F4 IS EQUAL TO OR MORE THAN 100 USE 70 OTHERWISE USE THE SAME VALUE IN F4
Hello Belal,
Use this formula:
=IF(F4>=100, 70, F4)
what is the formula for "condition if Column A is more than Column B, use Column A-Column B*0.40"
Hello Mahesh,
Here you go:
=IF(A1>B1, A1-B1*0.40, "")
a1,50
Tyre code Tyre desc C1 C2 C3 C4 C5 Total STK 01-02-2016 02-02-2016 03-02-2016 04-02-2016
3IND5050810810 5.00 - 8 IT 30 8 PR TT TVS 40 20 60 80 200 22 0 0 15 35
3IND5650810810 5.00 - 8 8PR TT MARANGONI 55 65 75 195 10
3IND5050821010 5.00 - 8 IT 45 10 PR TT TVS 60 32 42 134 30
what is the formula for "condition if Column A is more than Column B, use Column B"
Hi Charlie,
You can use a formula similar to this:
=IF(A1>B1, B1, "")
HELP!!
I am trying to find what formula I should use.
IE:
A B
1 john Paris
2 smith London
3 rose Milan
Hello friends,
I am struggling with a formula. please help me out.
If a cell value is greater and less then a given value then "OK" and "Not ok"
for Example. IF cell A2 is greater then 12 but less then 22.8 . If cell A2 meet this criteria then "Ok" otherwise "Not Ok".
Thanks
Hi Sumit,
You can use the following formula:
=IF(AND(A2>12, A2<22.8), "OK", "Not OK")
HELP!!
I am trying to find what formula I should use.
IE:
1-9 multiply by .07
10-19 multiply by .08
20-29 multiply .10
30-39 multiply .12
40 or greater multiply .14
IF cell A=Apples and cell B10 but 20 but <30, then return cell C=500.
IF cell A=Grapes and cell B10 but 20 but <30, then return cell C=300.
Trying again...
IF cell A=Apples and cell B10 but 20 but <30, then return cell C=500.
IF cell A=Grapes and cell B10 but 20 but <30, then return cell C=300.
IF Cell A=Apples and cell B10 but 20 but <30, then return cell C=500. IF cell A=Grapes and cell B10 but 20 but <30, then return cell C=300.
I don't know why I'm not able to publish my complete question. there is more to the above logic that I'm looking to add.
For some reason, it didn't post my complete question.
IF Cell A=Apples and cell B10 but 20 but <30, then return cell C=500. IF cell A=Grapes and cell B10 but 20 but <30, then return cell C=300.
I meant,
IF Cell A=Apples and cell B10 but 20 but <30, then return cell C=500.
IF cell A=Grapes and cell B10 but 20 but <30, then return cell C=300.
Hello, looking for formula for the below logical statement,
IF cell A=Apples and cell B10 but 20 but <30, then return cell C=500.
IF cell A=Grapes and cell B10 but 20 but <30, then return cell C=300.
Appreciate your help!!
cell A1=K, cell A2=L, Cell A3=K
Cell B1=10-Feb-2016, Cell B2=02-Feb-2016, cell B3=15-Feb-2016.
I need equation at cell A4 to show the maximum date relevant to item K (In column A) from the dates in column B, which is 15-Feb-2016.
Please advise me which formula should I use.
Thank you in advance.
iN ONE CELL"32*34*36" ,WANT TO MULTIPLY IN ANOTHER CELL WITHOUT RETYPING .iS IT POSSIBLE?
***HELP!!***
I need a formula for the following. It's kind of a multi-step process:
1. If A1=A2 and B1=B2, then return value TRUE.
2. If A1=A2 and B1B2, then return value FALSE.
3. But if A1A2, then disregard formula/leave blank.
I meant to say:
1. If A1=A2 and B1=B2, then return value TRUE.
2. If A1=A2 and B1 doesn't equal B2, then return FALSE.
3. But if A1 doesn't equal A2, then disregard formula/leave blank.
I know it's confusing, but I ONLY want the B values to equal each other if the A values are equal... If the A values aren't equal, then I want the B values to forget that command and revert to only like values...Here's an example of what I mean:
A1:A7 all have the same value. If B1=B2=B3...=B7 then great! If B1:B7 DON'T have equal values, then I need an error notice. After A1:A7, there is another group of DIFFERENT like-values...A8:A15. For all of these, I need B8=B9=B10...=B15. If they don't, I need an error. Hope that helps.
Cameron,
My previous formula works for 2 cells only (A1 and A2). To compare groups of 7 cells, try the following one:
=IF(AND(COUNTIF($A$1:$A$7, $A1)=7, COUNTIF($B$1:$B$7, $B1)=7), TRUE, IF(AND(COUNTIF($A$1:$A$7, $A1)=7, COUNTIF($B$1:$B$7, $B1)<>7), FALSE, ""))
If cells A1:A7 have the same values and B1:B7 have the same values, the formula returns TRUE.
If cells A1:A7 have the same values but B1:B7 have different values, the formula returns FALSE. You can change this to any error message you want.
Otherwise, the formula returns an empty string.
Hi Svetlana!
Thank you so much for your quick replies. When I tried to enter this last formula, it gave me a notice for a circular reference? I clicked ok, and the formula returned a zero. Any ideas what this means/how to fix?
Secondly, I have an even more complex question for you (if that wasn't already hard enough). What if my first group is A1:A7 but the next grouping is A8:A18? What if it isn't always groups of 7, but it varies group size randomly down column A? Is there any way I can enter a formula to predict this, and always have the corresponding B values equal? (Where B1:B7 are equal and then B8:B18 would be equal, etc.) Again, I just need the formula to return True or False for these groupings. Thanks!!
Hi Cameron,
Try the following formula:
=IF(AND(A1=A2, B1=B2), TRUE, IF(AND(A1=A2, B1<>B2), FALSE, ""))
If one date is greater than another date I need a return value of true and a count of the difference. Example if 02/01/2016 thru 02/06/2016 equals 5 days then true if not false. Also how many day greater or less? I will need the formula to continue throughout the year.
hi,
i want the cell to compare a number with another cell and copy the cell with greater value
I am struggling with this simple task .. can you pls help ?
I have an excel sheet with over 20,000 products with weight in decimals. I am trying to do this :
if weight is greater than 0.00 and/equal 1.0 then "0-1 lbs"
If weight is greater than 1.10 and/equal 2.00 then "1 and 2 lbs"
I am using =IF(AND(A2>0,A2<1),"0-1 lbs","") but this is not working for decimals
examples :
Weight (lbs)
0.10
0.01
0.02
0.03
0.04
0.05
0.06
0.07
0.08
0.09
0.10
0.11
0.12
0.13
Hi Vinay,
Try this one:
=IF(AND(A2>1.1,A2<=2),"1 and 2 lbs", IF(A2>0,"0-1 lbs",""))
Hello I have a weird request. So here is what I can tell you about this problem we have a system that if we reach 10.00 that is 100% if it falls below that then it is greater than 100% if it is greater than 10.00 then it would be lower than 100%. Is there a formula to do in excel that can figure this out or not really?